1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

Make `bookmark-file' variable obsolete

* lisp/bookmark.el (bookmark-file): Redefine as obsolete variable
alias for `bookmark-default-file'.  (Bug#35917)
This commit is contained in:
Stefan Kangas 2019-06-09 16:26:55 -07:00 committed by Paul Eggert
parent 3a29764d91
commit 9816aba518
2 changed files with 8 additions and 8 deletions

View File

@ -1507,6 +1507,12 @@ the new variable 'buffer-auto-revert-by-notification' to a non-nil
value. Auto Revert mode can use this information to avoid polling the
buffer periodically when 'auto-revert-avoid-polling' is non-nil.
** Bookmarks
+++
*** 'bookmark-file' is now an obsolete alias of
'bookmark-default-file'.
* New Modes and Packages in Emacs 27.1

View File

@ -82,15 +82,9 @@ To specify the file in which to save them, modify the variable
"The `.emacs.bmk' file used to be called this name.")
;; defvared to avoid a compilation warning:
(defvar bookmark-file nil
"Old name for `bookmark-default-file'.")
(define-obsolete-variable-alias 'bookmark-file 'bookmark-default-file "27.1")
(defcustom bookmark-default-file
(if bookmark-file
;; In case user set `bookmark-file' in her .emacs:
bookmark-file
(locate-user-emacs-file "bookmarks" ".emacs.bmk"))
(locate-user-emacs-file "bookmarks" ".emacs.bmk")
"File in which to save bookmarks by default."
:type 'file
:group 'bookmark)