From: "Stephan Stahl" <stahl@eos.franken.de>
Subject: empty .emacs disables which-func-mode
Date: Wed, 2 Mar 2005 13:11:07 +0100 (CET) [thread overview]
Message-ID: <53109.217.194.34.123.1109765467.squirrel@wwws.franken.de> (raw)
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
next reply other threads:[~2005-03-02 12:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-02 12:11 Stephan Stahl [this message]
2005-03-03 12:42 ` empty .emacs disables which-func-mode Stephan Stahl
2005-03-03 20:57 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53109.217.194.34.123.1109765467.squirrel@wwws.franken.de \
--to=stahl@eos.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.