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: Jack Duthen
Subject: bug#11476: 23.1; which-func-cleanup-function call and documentation mismatch
Date: Wed, 16 May 2012 10:29:20 +0200

As I explained in my first mail, it always happens with imenu and which-func.
Here is a short recipe to get it:

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)

2012/5/15 Stefan Monnier <address@hidden>:
>>> It seems that the argument given to "which-func-cleanup-function"
>>> can also be a list with one string.
>> That is a bug.
>
> Can you give a recipe or at least describe a case where it happens?
>
>
>        Stefan





reply via email to

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