From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Imenu Integration Date: Wed, 16 Jul 2008 07:06:06 -0700 Message-ID: <96AD0939-7432-484F-831A-CBE48C6354DB@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJ7e1-0000Tl-GB for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 10:06:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJ7e0-0000Rs-Kt for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 10:06:12 -0400 Received: from [199.232.76.173] (port=50702 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ7e0-0000Rk-A5 for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 10:06:12 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:54907) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJ7dz-0003Dp-Nr for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 10:06:11 -0400 In-Reply-To: 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: Piotr Mieszkowski Cc: Emacs Org-Mode 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. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode