aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-07-16 16:59:58 +0000
committerThien-Thi Nguyen2007-07-16 16:59:58 +0000
commit1de49d4e219d9f817dc5bac5fbb8cd1a4197e02b (patch)
tree392f6039452a71fbcc5236db10f0cbd909b9d680
parente58914d089a2918f052e1a87c761199aa24945ac (diff)
downloademacs-1de49d4e219d9f817dc5bac5fbb8cd1a4197e02b.tar.gz
emacs-1de49d4e219d9f817dc5bac5fbb8cd1a4197e02b.zip
(bookmark-maybe-sort-alist): Don't modify bookmark-alist.
Instead, if not sorting, simply return it. (bookmark-bmenu-list): Call bookmark-maybe-sort-alist for its return value, not for its side effect.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/bookmark.el11
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 973e5eeaee5..31c25511d5d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -6,11 +6,16 @@
6 6
72007-07-16 Thien-Thi Nguyen <ttn@gnuvola.org> 72007-07-16 Thien-Thi Nguyen <ttn@gnuvola.org>
8 8
9 * bookmark.el (bookmark-maybe-sort-alist): Don't modify
10 bookmark-alist. Instead, if not sorting, simply return it.
11 (bookmark-bmenu-list): Call bookmark-maybe-sort-alist
12 for its return value, not for its side effect.
13
9 * emacs-lisp/lisp-mode.el (calculate-lisp-indent): In the 14 * emacs-lisp/lisp-mode.el (calculate-lisp-indent): In the
10 case of alignment under a constant symbol, find and consider 15 case of alignment under a constant symbol, find and consider
11 the sexp actually at indentation to be the "last sexp". 16 the sexp actually at indentation to be the "last sexp".
12 17
132007-07-13 Drew Adams <drew.adams@oracle.com> 182007-07-16 Drew Adams <drew.adams@oracle.com>
14 19
15 * mouse.el (mouse-yank-secondary): Better error message if no 20 * mouse.el (mouse-yank-secondary): Better error message if no
16 secondary selection. 21 secondary selection.
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 5dc783d13d9..f8440731419 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1045,10 +1045,10 @@ For example, if this is a Info buffer, return the Info file's name."
1045 ;;Return the bookmark-alist for display. If the bookmark-sort-flag 1045 ;;Return the bookmark-alist for display. If the bookmark-sort-flag
1046 ;;is non-nil, then return a sorted copy of the alist. 1046 ;;is non-nil, then return a sorted copy of the alist.
1047 (if bookmark-sort-flag 1047 (if bookmark-sort-flag
1048 (setq bookmark-alist 1048 (sort (copy-alist bookmark-alist)
1049 (sort (copy-alist bookmark-alist) 1049 (function
1050 (function 1050 (lambda (x y) (string-lessp (car x) (car y)))))
1051 (lambda (x y) (string-lessp (car x) (car y)))))))) 1051 bookmark-alist))
1052 1052
1053 1053
1054(defvar bookmark-after-jump-hook nil 1054(defvar bookmark-after-jump-hook nil
@@ -1590,7 +1590,6 @@ deletion, or > if it is flagged for displaying."
1590 (insert "% Bookmark\n- --------\n") 1590 (insert "% Bookmark\n- --------\n")
1591 (add-text-properties (point-min) (point) 1591 (add-text-properties (point-min) (point)
1592 '(font-lock-face bookmark-menu-heading)) 1592 '(font-lock-face bookmark-menu-heading))
1593 (bookmark-maybe-sort-alist)
1594 (mapcar 1593 (mapcar
1595 (lambda (full-record) 1594 (lambda (full-record)
1596 ;; if a bookmark has an annotation, prepend a "*" 1595 ;; if a bookmark has an annotation, prepend a "*"
@@ -1613,7 +1612,7 @@ deletion, or > if it is flagged for displaying."
1613 help-echo "mouse-2: go to this bookmark in other window"))) 1612 help-echo "mouse-2: go to this bookmark in other window")))
1614 (insert "\n") 1613 (insert "\n")
1615 ))) 1614 )))
1616 bookmark-alist)) 1615 (bookmark-maybe-sort-alist)))
1617 (goto-char (point-min)) 1616 (goto-char (point-min))
1618 (forward-line 2) 1617 (forward-line 2)
1619 (bookmark-bmenu-mode) 1618 (bookmark-bmenu-mode)