emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [PATCH] Imenu Integration


From: Piotr Mieszkowski
Subject: [Orgmode] [PATCH] Imenu Integration
Date: Wed, 16 Jul 2008 12:36:08 +0200

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




reply via email to

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