From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: PATCH Make org-open-at-point only ask once Date: Thu, 6 Oct 2011 10:00:38 +0200 Message-ID: References: <20110828200542.GS5700@0x63.nu> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBisk-0000uC-ND for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 04:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBisj-000823-Eq for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 04:00:42 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:52892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBisj-00081z-9a for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 04:00:41 -0400 Received: by eye13 with SMTP id 13so2718224eye.0 for ; Thu, 06 Oct 2011 01:00:40 -0700 (PDT) In-Reply-To: <20110828200542.GS5700@0x63.nu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Anders Waldenborg Cc: Nicolas Goaziou , Org mode mailing list Hi Anders, Nicolas I am wondering what the status of this patch is. There was a = discussion, but I am not sure about the conclusion... - Carsten On Aug 28, 2011, at 10:05 PM, Anders Waldenborg wrote: > Hi! >=20 > If an org buffer is narrowed, and one tries to do org-open-at-point on > a link that points to outside of the restriction it asks: "No match - > create this as a new heading?". When answering no the buffer is > widened and the reseach is done, and if the link still can't be > resolved the question is asked again. >=20 > For nonexistant links this happens even if the buffer isn't narrowed - > one needs to answer "n" twice. >=20 > I also attached an alternate patch which (IMHO) simplifies the > implementation by hiding the hard work in a macro, and as a bonus it > only calls org-link-search once. But it is much more intrusive. >=20 > anders >=20 > ;; simple testcase to show the bug > (progn > (insert "* A\n\n* B\n\n[[A]]") > (org-narrow-to-subtree) > (org-open-at-point)) > - Carsten