From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amos Bird Subject: Re: use %A to prompt for plain text when there is not file Date: Wed, 20 Sep 2017 19:17:06 +0800 Message-ID: <87fubhvcul.fsf@gmail.com> References: <87ingf874w.fsf@gmail.com> <871sn1acna.fsf@nicolasgoaziou.fr> <87h8vxvd95.fsf@gmail.com> <87h8vx62ta.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dueuo-0005WH-Q1 for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:21:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duetx-0002wj-N8 for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:19:45 -0400 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:38546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duetx-0002uw-IZ for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:18:53 -0400 Received: by mail-pg0-x242.google.com with SMTP id m30so1628601pgn.5 for ; Wed, 20 Sep 2017 06:18:52 -0700 (PDT) In-reply-to: <87h8vx62ta.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Org Mode Mailing List Um, but I'd like to use this template for both cases. When inside a temporary, don't generate a link, but plain text instead, while in a file buffer, generate the link as usual. regards, Nicolas Goaziou writes: > Amos Bird writes: > >> when in a file backed buffer, doing org capture with %A generates >> >> >> [[some link][some description]] >> >> and if the buffer has no file associated with it, I'd like %A to generate >> >> >> some description >> >> the above "some description" is inputed via prompting user. > > It sounds wrong to link to a temporary buffer, i.e., to volatile > contents. It may be more appropriate to use > > %^{prompt} > > in your template instead of > > %A > > when capturing from there. > > WDYT? > > Regards, -- Amos Bird amosbird@gmail.com