From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug: org-store-link only works interactively [7.4] Date: Fri, 11 Feb 2011 10:57:47 +0100 Message-ID: <8762sqzyec.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=49018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnpl2-0003ZX-T9 for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 04:57:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pnpl1-0007FY-W4 for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 04:57:44 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:47447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pnpl1-0007FU-S2 for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 04:57:43 -0500 Received: by ywj3 with SMTP id 3so1090337ywj.0 for ; Fri, 11 Feb 2011 01:57:43 -0800 (PST) In-Reply-To: (Dave Abrahams's message of "Sun, 19 Dec 2010 23:51:59 -0900") 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: Dave Abrahams Cc: emacs-orgmode@gnu.org Hi Dave, Dave Abrahams writes: > org-stored-links will only be updated if the function is called > interactively. I'm not sure why you would want to neuter > org-store-link otherwise, but the docs for interactive-p say: > > The only known proper use of `interactive-p' is in deciding whether to > display a helpful message, or how to display it. If you're thinking > of using it for any other purpose, it is quite likely that you're > making a mistake. True, thanks for pointing at this. I agree the user should be able to call org-store-link non-interactively (programmatically). Carsten, I see no possible side-effects, but perhaps you had a good reason for preventing non-interactive calls to `org-store-link'? Thanks, -- Bastien