From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: use %A to prompt for plain text when there is not file Date: Wed, 20 Sep 2017 13:13:05 +0200 Message-ID: <87h8vx62ta.fsf@nicolasgoaziou.fr> References: <87ingf874w.fsf@gmail.com> <871sn1acna.fsf@nicolasgoaziou.fr> <87h8vxvd95.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dufKy-0002yM-6D for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:46:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dufKv-0001j1-2Z for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:46:48 -0400 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:36713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dufKu-0001ic-Sl for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:46:45 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 075E95352AB for ; Wed, 20 Sep 2017 13:13:06 +0200 (CEST) In-Reply-To: <87h8vxvd95.fsf@gmail.com> (Amos Bird's message of "Wed, 20 Sep 2017 19:08:22 +0800") 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: Amos Bird Cc: Org Mode Mailing List 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,