emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [PATCH] Imenu Integration


From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH] Imenu Integration
Date: Wed, 16 Jul 2008 07:06:06 -0700

Applied, thanks.

- Carsten

On Jul 16, 2008, at 3:36 AM, Piotr Mieszkowski wrote:

Dear Org-Mode Developers and Users,

In the Imenu-integration code, there is a hook (imenu-after-jump-hook)
that doesn't check whether we are in org-mode or not. Speedbar seems
to use a similar hook, so it may need a fix too.

===== PATCH BLOCK BEGIN =====
--- org.el.orig 2008-07-16 12:14:46.000000000 +0200
+++ org.el      2008-07-16 12:15:05.000000000 +0200
@@ -14212,7 +14212,9 @@
(eval-after-load "imenu"
  '(progn
     (add-hook 'imenu-after-jump-hook
-              (lambda () (org-show-context 'org-goto)))))
+              (lambda ()
+                (if (eq major-mode 'org-mode)
+                    (org-show-context 'org-goto))))))

;; Speedbar support

===== PATCH BLOCK END =====

Regards,
pfm


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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