]> git.eshelyaron.com Git - emacs.git/commitdiff
Make bookmark-old-default-file variable obsolete
authorStefan Kangas <stefankangas@gmail.com>
Sun, 9 Jun 2019 23:47:16 +0000 (16:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 9 Jun 2019 23:47:59 +0000 (16:47 -0700)
* lisp/bookmark.el (bookmark-old-default-file):
Redefine as obsolete variable alias for 'bookmark-default-file'.
(bookmark-maybe-load-default-file): Don't try to rename file
'bookmark-old-default-file' (~/.emacs-bkmrks) to new name (Bug#35940).

etc/NEWS
lisp/bookmark.el

index 22b86b50130ff616106b9f9a1d2749fd94089568..c9da98b0adcaea98f54a12ef71f28b108c95be11 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1513,6 +1513,12 @@ buffer periodically when 'auto-revert-avoid-polling' is non-nil.
 *** 'bookmark-file' is now an obsolete alias of
 'bookmark-default-file'.
 
+** Bookmarks
+
+---
+*** 'bookmark-old-default-file' is now an obsolete alias of
+'bookmark-default-file'.
+
 \f
 * New Modes and Packages in Emacs 27.1
 
index 00884506e4dd2217fb128c2aa9d8db5f4f3a3215..5a9859d83df342cd7a32d4aad31bf01fe7fbccd2 100644 (file)
@@ -78,8 +78,8 @@ To specify the file in which to save them, modify the variable
   :group 'bookmark)
 
 
-(defconst bookmark-old-default-file "~/.emacs-bkmrks"
-  "The `.emacs.bmk' file used to be called this name.")
+(define-obsolete-variable-alias 'bookmark-old-default-file
+  'bookmark-default-file "27.1")
 
 
 (define-obsolete-variable-alias 'bookmark-file 'bookmark-default-file "27.1")
@@ -1024,17 +1024,6 @@ it to the name of the bookmark currently being set, advancing
   "If bookmarks have not been loaded from the default place, load them."
   (and (not bookmarks-already-loaded)
        (null bookmark-alist)
-       (prog2
-           (and
-            ;; Possibly the old bookmark file, "~/.emacs-bkmrks", needs
-            ;; to be renamed.
-            (file-exists-p bookmark-old-default-file)
-            (not (file-exists-p bookmark-default-file))
-            (rename-file bookmark-old-default-file
-                         bookmark-default-file))
-           ;; return t so the `and' will continue...
-           t)
-
        (file-readable-p bookmark-default-file)
        (bookmark-load bookmark-default-file t t)
        (setq bookmarks-already-loaded t)))