From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McLean Subject: Re: problem with org-capture Date: Thu, 3 Dec 2015 16:11:34 -0500 Message-ID: References: <87d1uq7f6e.fsf@ucl.ac.uk> <87r3j5kdvu.fsf@nicolasgoaziou.fr> <87zixtniiy.fsf@pinto.chemeng.ucl.ac.uk> <87fuzktugf.fsf@nicolasgoaziou.fr> <87io4fv5a2.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01160d4e2a92ff052604d795 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4bAY-0006Fv-V3 for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 16:12:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4bAV-0006y0-Lo for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 16:12:02 -0500 Received: from pb-sasl0.int.icgroup.com ([208.72.237.25]:57692 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4bAV-0006xc-H6 for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 16:11:59 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 5C6E430434 for ; Thu, 3 Dec 2015 16:11:57 -0500 (EST) Received: from pb-sasl0.int.icgroup.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 5310730433 for ; Thu, 3 Dec 2015 16:11:57 -0500 (EST) Received: from mail-lb0-f177.google.com (unknown [209.85.217.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-sasl0.pobox.com (Postfix) with ESMTPSA id B4CF930432 for ; Thu, 3 Dec 2015 16:11:56 -0500 (EST) Received: by lbbcs9 with SMTP id cs9so9378479lbb.1 for ; Thu, 03 Dec 2015 13:11:55 -0800 (PST) In-Reply-To: <87io4fv5a2.fsf@fastmail.fm> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --089e01160d4e2a92ff052604d795 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At the risk of piling on, I too am having problems with Org Capture templates that haven't changed in a long time. The sample below used to function like: 1. I would call it from org-capture, select the =E2=80=9Caf=E2=80=9D tem= plate 2. I would get prompted for a date from file+datetree+prompt and I would select the date 3. I would get prompted for the week number from the ~%^{prompt|%<%Y-W%V>}~ clause. This would default to the current week in ISO format (2015-W49). I would change it or not (usually not) 4. The ISO week entered from that prompt would get substituted into the AR_DATE property in multiple places. The two big differences with release_8.3.2-381-gb7ee96 are 1. The substitution for %Y and %V does not happen before the prompt in step 3; I get a default value of [%<%Y-W%V>] 2. Even if I manually type the ISO week string (2015-W09) it no longer gets substituted into the AR_DATE properties via %\1 I maintain some of my more complex capture templates in standalone files and reference the file in org-capture-templates (setq org-capture-templates (quote ( ("a" "Templates for Agile Results") ("af" "Friday Afternoon Weekly Close / Reflection" entry (file+datetree+prompt "~/Documents/OrgMaster/org/Agile_Results.org") (file "~/.init/emacs/org-capture-templates/friday.reflection.org_template") :jump-to-captured t :immediate-finish t)))) The file "~/.init/emacs/org-capture-templates/friday.reflection.org_template" contains: #+begin_example ,* Friday Reflection %^{prompt|%<%Y-W%V>} :PROPERTIES: :AR_DATE: %\1 :VISIBILITY: all :END: %u ,** Three Things Going Well + %? + + ,** Three Things to Improve + + + ,** Review Outcomes and Results Compared to the Monday Vision :Weekly_Win_Review: :PROPERTIES: :AR_DATE: %\1 :VISIBILITY: all :END: %<[%Y-%m-%d %a %H:%M]> - What got in my way? How might I do it differently? Review each of my target Monday Vision Outcomes; What did I get done or did not get done? + + + ,** Delta File: What will I change immediately or when my role or influence changes :NOTE:Delta_File: %<[%Y-%m-%d %a %H:%M]> #+end_example On Thu, Dec 3, 2015 at 12:05 PM, Matt Lundin wrote: > Nicolas Goaziou writes: > > > Hello, > > > > Eric S Fraga writes: > > > >> However, it only partially fixed. The system does now prompt as it > >> should but the mini-buffer input only allows single words. Hitting > >> space bar attempts to do completion. I believe the input should be fr= ee > >> form? > > > > Fixed (again). Thank you. > > Thanks Nicolas. One more issue. In the past, non-interactive escapes > were expanded when the capture buffer was displayed, which enabled me to > see what I had just clipped while entering the interactive data. Now > non-interactive escapes are expanded at the end of the capture process. > > Take the following template: > > (setq org-capture-templates > '(("a" "Appointment" entry > (file "~/org/inbox.org") > "* %^{Appt}\n %^t%?\n %U\n %a\n\n %i"))) > > In the past, if I called this from the org-mode website with a region of > text selected, I would get a buffer that looked like this before > completing the interactive prompts: > > --8<---------------cut here---------------start------------->8--- > * > %^t%? > [2015-12-03 Thu 11:02] > [[http://orgmode.org/][Org mode for Emacs =E2=80=93 Your Life in Plain T= ext]] > > Org mode is for keeping notes, maintaining TODO lists, planning > projects, and authoring documents with a fast and effective plain-text > system. > --8<---------------cut here---------------end--------------->8--- > > After the recent changes, the initial capture buffer looks like this: > > --8<---------------cut here---------------start------------->8--- > * > %^t%? > %U > %a > > %i > --8<---------------cut here---------------end--------------->8--- > > Thanks, > Matt > > --089e01160d4e2a92ff052604d795 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
At the risk of piling on, I too am having problems with Or= g Capture templates that haven't changed in a long time. The sample bel= ow used to function like:
  1. I would call it from org-capture, sel= ect the =E2=80=9Caf=E2=80=9D template
  2. I would get prompted for a da= te from file+datetree+prompt and I would select the date
  3. I would ge= t prompted for the week number from the ~%^{prompt|%<%Y-W%V>}~ clause= . This would default to the current week in ISO format (2015-W49). I would = change it or not (usually not)
  4. The ISO week entered from that promp= t would get substituted into the AR_DATE property in multiple places.
  5. <= /ol>
    The two big differences with=C2=A0release_8.3.2-381-gb7ee96 are
    1. The substitution for %Y and %V does not happen before the p= rompt in step 3; I get a default value of [%<%Y-W%V>]
    2. Even if= I manually type the ISO week string (2015-W09) it no longer gets substitut= ed into the AR_DATE properties via %\1=C2=A0
    I maintain= some of my more complex capture templates in standalone files and referenc= e the file in org-capture-templates

    (setq= org-capture-templates (quote (
    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ("a" "Templates for Agile Results"= )

    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ("af" "Friday Afternoon Weekly Close / Reflection"<= /div>
    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0entry<= /div>
    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file+= datetree+prompt "~/Documents/OrgMaster/org/Agile_Results.org")
    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file &qu= ot;~/.init/emacs/org-capture-templates/friday.reflection.org_template"= )
    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:jump-= to-captured t :immediate-finish t))))

    The file=C2= =A0"~/.init/emacs/org-capture-templates/friday.reflection.org_template= " contains:

    #+begin_example
    = =C2=A0 ,* Friday Reflection %^{prompt|%<%Y-W%V>}
    =C2=A0 :PR= OPERTIES:
    =C2=A0 :AR_DATE: =C2=A0%\1
    =C2=A0 :VISIBILITY= : all
    =C2=A0 :END:
    =C2=A0 %u
    =C2=A0 ,** Three= Things Going Well
    =C2=A0 + %?
    =C2=A0 +
    =C2= =A0 +
    =C2=A0 ,** Three Things to Improve
    =C2=A0 +
    =
    =C2=A0 +
    =C2=A0 +
    =C2=A0 ,** Review Outcomes and R= esults Compared to the Monday Vision =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:Wee= kly_Win_Review:
    =C2=A0 :PROPERTIES:
    =C2=A0 :AR_DATE: = =C2=A0%\1
    =C2=A0 :VISIBILITY: all
    =C2=A0 :END:
    =C2=A0 %<[%Y-%m-%d %a %H:%M]>
    =C2=A0 - What got in my way= ? How might I do it differently? Review each of my target Monday
    = =C2=A0 =C2=A0 Vision Outcomes; What did I get done or did not get done?
    =C2=A0 =C2=A0 =C2=A0+
    =C2=A0 =C2=A0 =C2=A0+
    =C2= =A0 =C2=A0 =C2=A0+
    =C2=A0 ,** Delta File: What will I change imme= diately or when my role or influence changes :NOTE:Delta_File:
    = =C2=A0 %<[%Y-%m-%d %a %H:%M]>

    #+end_example<= /div>




    On Thu, Dec 3, 2015 at 12:05 PM, Matt Lundin <mdl@imapmail= .org> wrote:
    Nicolas Goa= ziou <mail@nicolasgoaziou.fr> writes:

    > Hello,
    >
    > Eric S Fraga <
    e.fraga@ucl.ac.u= k> writes:
    >
    >> However, it only partially fixed.=C2=A0 The system does now prompt= as it
    >> should but the mini-buffer input only allows single words.=C2=A0 H= itting
    >> space bar attempts to do completion.=C2=A0 I believe the input sho= uld be free
    >> form?
    >
    > Fixed (again). Thank you.

    Thanks Nicolas. One more issue. In the past, non-interactive escapes=
    were expanded when the capture buffer was displayed, which enabled me to see what I had just clipped while entering the interactive data. Now
    non-interactive escapes are expanded at the end of the capture process.

    Take the following template:

    (setq org-capture-templates
    =C2=A0 =C2=A0 =C2=A0 '(("a" "Appointment" entry
    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file "~/org/inbox.org")
    =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"* %^{Appt}\n %^t%?\n %U\n %a= \n\n %i")))

    In the past, if I called this from the org-mode website with a region of text selected, I would get a buffer that looked like this before
    completing the interactive prompts:

    --8<---------------cut here---------------start------------->8---
    *
    =C2=A0%^t%?
    =C2=A0[2015-12-03 Thu 11:02]
    =C2=A0[[http://orgmode.org/][Org mode for Emacs =E2=80=93 Your Life in P= lain Text]]

    =C2=A0Org mode is for keeping notes, maintaining TODO lists, planning
    =C2=A0projects, and authoring documents with a fast and effective plain-tex= t
    =C2=A0system.
    --8<---------------cut here---------------end--------------->8---

    After the recent changes, the initial capture buffer looks like this:

    --8<---------------cut here---------------start------------->8---
    *
    =C2=A0%^t%?
    =C2=A0%U
    =C2=A0%a

    =C2=A0%i
    =C2=A0--8<---------------cut here---------------end--------------->8-= --

    Thanks,
    Matt


    --089e01160d4e2a92ff052604d795--