On Aug 19, 2010, at 2:15 PM, Jambunathan K wrote:


I have a small utility routine that depends on org-link-search to throw
an error. It knew how to create the missing headline on it's own.

A recent change and the default settings breaks the original behaviour.

Using this as pretext, may I suggest that signature of org-link-search
be changed from

(org-link-search S &optional TYPE AVOID-POS)

to

(org-link-search S &optional TYPE AVOID-POS NOERROR)

or an equivalent one.

I think a good solution for your utility would be to bind

(let ((org-link-search-must-match-exact-headline t))

around the body of the function.


ps: A cursory look suggests that the above change would also obviate the
need for dynamically binding org-link-search-inhibit-query.

I am not sure if I understand this part.

- Carsten


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to