From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hohmuth Subject: Bug in org-find-entry-with-id Date: Fri, 19 Jun 2009 12:08:21 +0200 Message-ID: <3yztz2cbkoa.fsf@sieglinde.amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHb1Z-00014V-FQ for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 06:08:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHb1U-00013r-QS for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 06:08:45 -0400 Received: from [199.232.76.173] (port=46189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHb1U-00013o-Kc for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 06:08:40 -0400 Received: from main.gmane.org ([80.91.229.2]:44555 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHb1U-0000FP-4e for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 06:08:40 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MHb1P-0005qH-D4 for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 10:08:35 +0000 Received: from 217.9.48.20 ([217.9.48.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jun 2009 10:08:35 +0000 Received: from Michael.Hohmuth by 217.9.48.20 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jun 2009 10:08:35 +0000 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-orgmode@gnu.org --=-=-= Hi there, I've attached a critical bug fix for org-find-entry-with-id (relative to org.el in org-6.27a). Without this fix, following ID links to hidden headlines is impossible because org-back-to-heading always jumps back to the last visible headline. This breaks many things, including org-depend.el. Kind regards, Michael -- Michael Hohmuth, AMD Operating System Research Center, Dresden, Germany michael.hohmuth@amd.com, www.amd64.org --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- org.el 2009/06/19 10:04:48 1.1 +++ org.el 2009/06/19 10:05:13 @@ -12027,7 +12027,7 @@ (when (re-search-forward (concat "^[ \t]*:ID:[ \t]+" (regexp-quote id) "[ \t]*$") nil t) - (org-back-to-heading) + (org-back-to-heading t) (point)))))) ;;;; Timestamps --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--