From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-link-search: Augment signature? Date: Fri, 20 Aug 2010 08:44:39 +0200 Message-ID: References: <817hjm94ta.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=40920 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmLrt-0004fk-D4 for emacs-orgmode@gnu.org; Fri, 20 Aug 2010 03:18:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmLrs-0007dV-GU for emacs-orgmode@gnu.org; Fri, 20 Aug 2010 03:18:25 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:46614) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmLrs-0007bM-A4 for emacs-orgmode@gnu.org; Fri, 20 Aug 2010 03:18:24 -0400 Received: by mail-ew0-f41.google.com with SMTP id 28so2014034ewy.0 for ; Fri, 20 Aug 2010 00:18:24 -0700 (PDT) In-Reply-To: <817hjm94ta.fsf@gmail.com> 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: Jambunathan K Cc: emacs-orgmode@gnu.org 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