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

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

bug#11476: 23.1; which-func-cleanup-function call and documentation mism


From: Glenn Morris
Subject: bug#11476: 23.1; which-func-cleanup-function call and documentation mismatch
Date: Tue, 26 Jun 2012 17:45:09 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Jack Duthen wrote:

> emacs -Q
> open any emacs-lisp file and move point inside any function
> M-x imenu-add-menubar-index
> M-x which-func-mode
> M-:
> (defun jd-test-which-func-cleanup-function (fun-name)
>   (message "Type of fun-name '%s' is %s" fun-name (type-of fun-name))
>   (when (consp fun-name)
>     (message "Type of (car fun-name) '%s' is %s" (car fun-name)
> (type-of (car fun-name))))
>   (setq jd-ielm-fun-name fun-name)          ; to explore it using ielm
>   fun-name)
> M-: (setq which-func-cleanup-function 'jd-test-which-func-cleanup-function)

I cannot reproduce a problem with this, in either 23.1 or current trunk.
The type remains resolutely a string, never a cons. If it were not a
string, I would think that the which-function mode line would break.





reply via email to

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