[Fix #580] Preserve symbols order in prelude-ido-goto-symbol

This commit is contained in:
Bozhidar Batsov 2014-09-14 09:45:10 +03:00
parent 5644022e06
commit 8f06d26de2

View file

@ -496,7 +496,7 @@ With a prefix argument ARG, find the `user-init-file' instead."
(setq imenu--index-alist nil) (setq imenu--index-alist nil)
(prelude-ido-goto-symbol (imenu--make-index-alist)) (prelude-ido-goto-symbol (imenu--make-index-alist))
(setq selected-symbol (setq selected-symbol
(ido-completing-read "Symbol? " symbol-names)) (ido-completing-read "Symbol? " (reverse symbol-names)))
(string= (car imenu--rescan-item) selected-symbol))) (string= (car imenu--rescan-item) selected-symbol)))
(unless (and (boundp 'mark-active) mark-active) (unless (and (boundp 'mark-active) mark-active)
(push-mark nil t nil)) (push-mark nil t nil))