 | I reported this as a bug and got a message back that it can't be recreated. Am I describing it clearly enough? Or maybe someone can suggest what I could have wrong on my own system that might cause this problem. Note I have no site-start files so -q is good enough isn't it?
which-function-mode doesn't work when imenu--sort-by-name is used. To demonstrate the problem:
runemacs.exe -q C-x b test Now paste the following 5 lines into the new buffer. (defcustom any ) (defcustom text ) (defcustom line ) (defcustom Here ) (defcustom There )
Issue these commands: M-x emacs-lisp-mode M-x which-function-mode Notice which-function operates correctly. Now issue these commands M-: (setq imenu-sort-function 'imenu--sort-by-name) M-: (imenu-add-menubar-index) which-function no longer displays the correct function. Specifically, `'text', `Here' and `There' are not shown.
This problem seems only to occur when named imenu expressions are used. That is, changing defcustom to defun in the example above results in the problem appearing not to exist. The difference is that defun is covered by an unnamed imenu regexp while defcustom is covered by the regexp named "Variables".
|
|