* [PATCH 1/2] bibtex.el: Fix imenu support.
@ 2013-06-11 22:41 Rüdiger Sonderfeld
2013-06-25 9:20 ` Roland Winkler
0 siblings, 1 reply; 2+ messages in thread
From: Rüdiger Sonderfeld @ 2013-06-11 22:41 UTC (permalink / raw)
To: emacs-devel; +Cc: winkler
The bug was introduced in revision 104969.
* lisp/textmodes/bibtex.el (bibtex-mode, bibtex-set-dialect): Update
imenu-support when dialect changes.
Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
---
lisp/textmodes/bibtex.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index 01a126e..6280e19 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -3400,9 +3400,6 @@ (define-derived-mode bibtex-mode nil "BibTeX"
(set (make-local-variable 'syntax-propertize-function)
(syntax-propertize-via-font-lock
bibtex-font-lock-syntactic-keywords))
- (setq imenu-generic-expression
- (list (list nil bibtex-entry-head bibtex-key-in-head))
- imenu-case-fold-search t)
;; Allow `bibtex-dialect' as a file-local variable.
(add-hook 'hack-local-variables-hook 'bibtex-set-dialect nil t))
@@ -3479,7 +3476,10 @@ (defun bibtex-set-dialect (&optional dialect local)
(concat "^[ \t]*@[ \t]*\\(?:"
(regexp-opt
(append '("String" "Preamble")
- (mapcar 'car bibtex-entry-alist))) "\\)"))))
+ (mapcar 'car bibtex-entry-alist))) "\\)"))
+ (setq imenu-generic-expression
+ (list (list nil bibtex-entry-head bibtex-key-in-head))
+ imenu-case-fold-search t)))
;; Entry commands and menus for BibTeX dialects
;; We do not use `easy-menu-define' here because this gets confused
--
1.8.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] bibtex.el: Fix imenu support.
2013-06-11 22:41 [PATCH 1/2] bibtex.el: Fix imenu support Rüdiger Sonderfeld
@ 2013-06-25 9:20 ` Roland Winkler
0 siblings, 0 replies; 2+ messages in thread
From: Roland Winkler @ 2013-06-25 9:20 UTC (permalink / raw)
To: Rüdiger Sonderfeld; +Cc: emacs-devel
On Wed Jun 12 2013 Rüdiger Sonderfeld wrote:
> * lisp/textmodes/bibtex.el (bibtex-mode, bibtex-set-dialect): Update
> imenu-support when dialect changes.
>
> Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Thanks, done.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-25 9:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 22:41 [PATCH 1/2] bibtex.el: Fix imenu support Rüdiger Sonderfeld
2013-06-25 9:20 ` Roland Winkler
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.