emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#33695: closed (27.0.50; which-function reports wro


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#33695: closed (27.0.50; which-function reports wrong imenu information)
Date: Fri, 22 Feb 2019 21:29:02 +0000

Your message dated Fri, 22 Feb 2019 15:28:25 -0600
with message-id <address@hidden>
and subject line Re: [PATCH] Fix which-function reporting outdated information
has caused the debbugs.gnu.org bug report #33695,
regarding 27.0.50; which-function reports wrong imenu information
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
33695: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33695
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 27.0.50; which-function reports wrong imenu information Date: Mon, 10 Dec 2018 12:58:25 -0600 User-agent: mu4e 1.1.0; emacs 27.0.50
(which-function) can report outdated information because it relies on
imenu--index-alist. To see what I'm talking about, from emacs -q:

M-x which-function-mode RET

type:
    (defun test () "foo" (ignore))

M-x imenu *Rescan* RET C-g

type:
    (defun test2 () "bar" (ignore))

With point inside test2, (which-function) reports test (you'll see this
in the modeline) because it uses the (outdated) information in
`imenu--index-alist'.

I see a few potential fixes:

- Check `add-log-current-defun' before checking `imenu--index-alist' in
  `which-function' (easy, but falling back on imenu--index-alist could
  still report old info)

- Have `which-function' update `imenu--index-alist' before checking it
  (also easy to implement, but updating the index could be slow in large
  buffers)

- Something else

I'm happy to write up a patch, just let me know what solution is best.

Thanks,
Alex



--- End Message ---
--- Begin Message --- Subject: Re: [PATCH] Fix which-function reporting outdated information Date: Fri, 22 Feb 2019 15:28:25 -0600 User-agent: mu4e 1.1.0; emacs 27.0.50
Committed as 0613e7a38efc3b0534e0ca5c5fa401e2a3bda906 in what will be Emacs 27



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]