From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Piotr Mieszkowski" Subject: [PATCH] Imenu Integration Date: Wed, 16 Jul 2008 12:36:08 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJ4Mo-0001g2-Pl for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 06:36:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJ4Mm-0001bb-Ej for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 06:36:13 -0400 Received: from [199.232.76.173] (port=41331 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ4Mm-0001b8-3J for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 06:36:12 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]:13138) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJ4Ml-0003si-8a for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 06:36:12 -0400 Received: by ug-out-1314.google.com with SMTP id l31so567702ugc.48 for ; Wed, 16 Jul 2008 03:36:08 -0700 (PDT) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs Org-Mode 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