Mercurial > emacs
changeset 105920:0a019b48e945
* bookmark.el (bookmark-completing-read): Sort bookmark names if
bookmark-sort-flag is non-nil (Bug#4653).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sun, 08 Nov 2009 23:01:45 +0000 |
parents | 32e202ebbfda |
children | b3189a049bbf |
files | lisp/ChangeLog lisp/bookmark.el |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sun Nov 08 22:53:30 2009 +0000 +++ b/lisp/ChangeLog Sun Nov 08 23:01:45 2009 +0000 @@ -1,3 +1,8 @@ +2009-11-08 Markus Rost <rost@math.uni-bielefeld.de> + + * bookmark.el (bookmark-completing-read): Sort bookmark names if + bookmark-sort-flag is non-nil (Bug#4653). + 2009-11-08 Chong Yidong <cyd@stupidchicken.com> * cedet/semantic/ctxt.el (semantic-get-local-variables): Disable
--- a/lisp/bookmark.el Sun Nov 08 22:53:30 2009 +0000 +++ b/lisp/bookmark.el Sun Nov 08 23:01:45 2009 +0000 @@ -459,7 +459,11 @@ the empty string." (bookmark-maybe-load-default-file) ; paranoia (if (listp last-nonmenu-event) - (bookmark-menu-popup-paned-menu t prompt (bookmark-all-names)) + (bookmark-menu-popup-paned-menu t prompt + (if bookmark-sort-flag + (sort (bookmark-all-names) + 'string-lessp) + (bookmark-all-names))) (let* ((completion-ignore-case bookmark-completion-ignore-case) (default default) (prompt (concat prompt (if default