emacs-devel
[Top][All Lists]
Advanced

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

empty .emacs disables which-func-mode


From: Stephan Stahl
Subject: empty .emacs disables which-func-mode
Date: Wed, 2 Mar 2005 13:11:07 +0100 (CET)
User-agent: SquirrelMail/1.4.0

Hi.

Using CVS emacs, loading a empty .emacs disables which-func-mode:

emacs -Q
M-x which-func-mode
load empty .emacs
C-x C-f .emacs
now which-fund-mode is disabled.

The reason is that which-func-update catches an error from
imenu--make-index-alist and then disables which-func-mode.

This patch helps but i'm not sure it is the right thing.  Can someone
take a look and comment to this?

Thanks,
Stephan

*** which-func.el Wed Mar  2 12:49:37 2005
--- which-func.el.~1.7.~ Tue Jan 11 10:48:10 2005
***************
*** 251,257 ****
      (when (and (null name)
               (boundp 'imenu--index-alist) (null imenu--index-alist)
               (null which-function-imenu-failed))
!       (imenu--make-index-alist t)
        (unless imenu--index-alist
        (make-local-variable 'which-function-imenu-failed)
        (setq which-function-imenu-failed t)))
--- 251,257 ----
      (when (and (null name)
               (boundp 'imenu--index-alist) (null imenu--index-alist)
               (null which-function-imenu-failed))
!       (imenu--make-index-alist)
        (unless imenu--index-alist
        (make-local-variable 'which-function-imenu-failed)
        (setq which-function-imenu-failed t)))
-- 
Stephan Stahl




reply via email to

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