Make org-open-at-point only ask once whether new header should be created
commit5147f6b00856edc026f873feb3dbe500fde25741
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 6 Oct 2011 08:53:31 +0000 (6 10:53 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 6 Oct 2011 08:53:31 +0000 (6 10:53 +0200)
tree3296a734741d1460763237895cad42599474ebc1
parent384c50238549aee95e9e3a8ac6b1a3e085e8d7e2
Make org-open-at-point only ask once whether new header should be created

* lisp/org.el (org-open-at-point): Make org-open-at-point only ask once
about creating a new headline

When following "thisfile" links org-open-at-point is kind enough to
retry org-link-search again after widening the buffer it can't be
found. However org-link-search also asks the question "No match -
create this as a new heading? (y or n)" when target can't be
found. This means that the question is asked twice when following a
nonexistent link and answering no.

This is fixed by setting org-link-search-inhibit-query in first try,
so only second invocation asks the question.

TINYCHANGE

Patch by Anders Waldenborg
lisp/org.el