aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Fogel2009-10-09 06:44:40 +0000
committerKarl Fogel2009-10-09 06:44:40 +0000
commit33e97a284ffbcfb4b200e4bdb427faf5d48f9a63 (patch)
tree33f73593c32c7b119b23a96c1ca4338b521054fc
parent9656d87b30a34bce0f126735ed302f1035cc9248 (diff)
downloademacs-33e97a284ffbcfb4b200e4bdb427faf5d48f9a63.tar.gz
emacs-33e97a284ffbcfb4b200e4bdb427faf5d48f9a63.zip
* lisp/bookmark.el (bookmark-delete): Don't let batch arg prevent saving.
(bookmark-bmenu-execute-deletions): Don't save here, as bookmark-delete will now do so if necessary. Suggested by: Thierry Volpiatto <thierry.volpiatto {_AT_} gmail.com> (Bug#4348)
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/bookmark.el18
2 files changed, 15 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cb393b306ae..4a40500b77a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12009-10-09 Karl Fogel <kfogel@red-bean.com>
2
3 * lisp/bookmark.el (bookmark-delete): Don't let batch arg prevent
4 saving.
5 (bookmark-bmenu-execute-deletions): Don't save here, as
6 bookmark-delete will now do so if necessary.
7 Suggested by: Thierry Volpiatto <thierry.volpiatto {_AT_} gmail.com>
8 (Bug#4348)
9
12009-10-09 Glenn Morris <rgm@gnu.org> 102009-10-09 Glenn Morris <rgm@gnu.org>
2 11
3 * mail/emacsbug.el (report-emacs-bug): Also print `features'. 12 * mail/emacsbug.el (report-emacs-bug): Also print `features'.
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 300e8b8e2c8..094e3bb8836 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1261,14 +1261,12 @@ probably because we were called from there."
1261 ;; occurrence has been deleted 1261 ;; occurrence has been deleted
1262 (or (bookmark-get-bookmark bookmark-current-bookmark 'noerror) 1262 (or (bookmark-get-bookmark bookmark-current-bookmark 'noerror)
1263 (setq bookmark-current-bookmark nil))) 1263 (setq bookmark-current-bookmark nil)))
1264 ;; Don't rebuild the list 1264 (unless batch
1265 (if batch 1265 (bookmark-bmenu-surreptitiously-rebuild-list))
1266 nil 1266 (setq bookmark-alist-modification-count
1267 (bookmark-bmenu-surreptitiously-rebuild-list) 1267 (1+ bookmark-alist-modification-count))
1268 (setq bookmark-alist-modification-count 1268 (when (bookmark-time-to-save-p)
1269 (1+ bookmark-alist-modification-count)) 1269 (bookmark-save)))
1270 (if (bookmark-time-to-save-p)
1271 (bookmark-save))))
1272 1270
1273 1271
1274(defun bookmark-time-to-save-p (&optional final-time) 1272(defun bookmark-time-to-save-p (&optional final-time)
@@ -2018,10 +2016,6 @@ To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\
2018 (forward-char o-col)) 2016 (forward-char o-col))
2019 (goto-char o-point)) 2017 (goto-char o-point))
2020 (beginning-of-line) 2018 (beginning-of-line)
2021 (setq bookmark-alist-modification-count
2022 (1+ bookmark-alist-modification-count))
2023 (if (bookmark-time-to-save-p)
2024 (bookmark-save))
2025 (message "Deleting bookmarks...done") 2019 (message "Deleting bookmarks...done")
2026 )) 2020 ))
2027 2021