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:08:22 +0800 Message-ID: <87h8vxvd95.fsf@gmail.com> References: <87ingf874w.fsf@gmail.com> <871sn1acna.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dufJa-0001n2-1a for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:45:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dufJU-0000Qq-Kv for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:45:22 -0400 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:56667) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dufJU-0000Px-F9 for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:45:16 -0400 Received: by mail-pf0-x233.google.com with SMTP id g65so1540481pfe.13 for ; Wed, 20 Sep 2017 06:45:16 -0700 (PDT) In-reply-to: <871sn1acna.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 --=-=-= Content-Type: text/plain #+OPTIONS: latex:t toc:nil H:3 Hi Nicolas, when in a file backed buffer, doing org capture with %A generates #+BEGIN_EXAMPLE [[some link][some description]] #+END_EXAMPLE and if the buffer has no file associated with it, I'd like %A to generate #+BEGIN_EXAMPLE some description #+END_EXAMPLE the above "some description" is inputed via prompting user. regards, Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >> I'm currently using this template, >> #+BEGINEXAMPLE >> >> 1 %A [/] >> >> * [ ] %? >> >> #+ENDEXAMPLE >> >> However when capturing in a non-file buffer, %A generates nothing. I'd like to have a plain text inserted instead. What can I do? > > What do you mean by "a plain text inserted"? Could you give an example? > > Thank you. > > Regards, -- Amos Bird amosbird@gmail.com --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

Hi Nicolas,

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.

regards,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Amos Bird <amosbird@gmail.com> writes:
>
>> I'm currently using this template,
>> #+BEGINEXAMPLE
>>
>> 1 %A [/]
>>
>> * [ ] %?
>>
>> #+ENDEXAMPLE
>>
>> However when capturing in a non-file buffer, %A generates nothing. I'd like to have a plain text inserted instead. What can I do?
>
> What do you mean by "a plain text inserted"? Could you give an example?
>
> Thank you.
>
> Regards,


Amos Bird
amosbird@gmail.com

--==-=-=-- --=-=-=--