emacs-orgmode
[Top][All Lists]
Advanced

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

[O] PATCH Make org-open-at-point only ask once


From: Anders Waldenborg
Subject: [O] PATCH Make org-open-at-point only ask once
Date: Sun, 28 Aug 2011 22:05:42 +0200
User-agent: Mutt/1.5.19 (2009-01-05)

Hi!

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.

For nonexistant links this happens even if the buffer isn't narrowed -
one needs to answer "n" twice.

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.

 anders

;; simple testcase to show the bug
(progn
  (insert "* A\n\n* B\n\n[[A]]")
  (org-narrow-to-subtree)
  (org-open-at-point))

Attachment: org-open-at-point.patch
Description: Text Data

Attachment: org-open-at-point-alternate.patch
Description: Text Data


reply via email to

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