emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with org-capture
@ 2011-02-16  9:25 Chris Lowis
  2011-02-16 14:20 ` Bastien
  0 siblings, 1 reply; 18+ messages in thread
From: Chris Lowis @ 2011-02-16  9:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I'm having a problem with org-capture. When I M-x org-capture and then
choose a template I get:

   condition-case: Capture abort: (wrong-type-argument number-or-marker-p nil)

This is with a recent checkout of org-mode, further details below.

Any thoughts?

Chris



Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin10.5.0, NS apple-appkit-1038.35)
 of 2011-01-31 on rd00051.local
Package: Org-mode version 7.4 (release_7.4.396.g4db5)

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook
                          org-babel-speed-command-hook)
 org-agenda-custom-commands '(("d" "Deferred tasks" todo "DEFERRED" nil)
                              ("u" "Unscheduled TODO items" alltodo ""
                               ((org-agenda-skip-function
                                 (quote
                                  (org-agenda-skip-entry-if (quote deadline)
                                   (quote scheduled))
                                  )
                                 )
                                (org-agenda-overriding-header
                                 "Unscheduled TODO items:")
                                )
                               )
                              )
 org-agenda-files '("~/org/journal.org" "~/Projects/music_report/report.org")
 org-agenda-show-inherited-tags nil
 org-drill-add-random-noise-to-intervals-p t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-capture-templates '(("d" "Done" entry
                          (file+headline "~/org/todo.org" "Tasks")
                          "* DONE %?\nSCHEDULED: %t CLOSED: %U")
                         ("t" "Todo" entry (file+datetree "~/org/journal.org")
                          "* TODO %?\n  %i\n%u")
                         ("j" "Journal" entry
                          (file+datetree "~/org/journal.org")
                          "* %U %?\n\n  %i\n")
                         ("v" "Vocab" entry
                          (file+headline "~/org/spanish.org" "")
                          "* Noun
:drill:\n\n:PROPERTIES:\n:DRILL_CARD_TYPE: twosided\n:END:\n\n
Translate this word\n\n** Spanish\n %^{Spanish}\n** English\n
%^{English} ")
                         )
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("ruby" . "rb") ("emacs-lisp" . "el"))
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-drill-maximum-items-per-session 20
 org-tab-first-hook '(org-hide-block-toggle-maybe
                      org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-learn-always-reschedule t
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-todo-keywords '((type "TODO" "WAITING" "" "DONE" "CANCELED"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file "~/org//journal.org"
 org-directory "~/org/"
 org-capture-mode-hook '(delete-other-windows)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("org-crl" :base-directory "~/blog/org/"
                              :base-extension "org" :publishing-directory
                              "~/blog/jekyll/" :recursive t :publishing-function
                              org-publish-org-to-html :headline-levels 4
                              :html-extension "html" :body-only t)
                             )
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-drill-maximum-duration 10
 org-replace-disputed-keys t
 org-mode-hook '((lambda nil
                  (if org-drill-use-visible-cloze-face-p
                   (font-lock-add-keywords (quote org-mode)
                    org-drill-cloze-keywords t)
                   )
                  )
                 (lambda nil
                  (org-add-hook (quote change-major-mode-hook)
                   (quote org-show-block-all) (quote append) (quote local))
                  )
                 (lambda nil
                  (org-add-hook (quote change-major-mode-hook)
                   (quote org-babel-show-result-all) (quote append)
                   (quote local))
                  )
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((org-agenda-files :tag . "project")
                      (org-agenda-files :level . 1))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
                          (src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\<Chris Lowis\\>"
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
                               org-beamer-auto-fragile-frames
                               org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-abbrev-alist '(("jira" . "https://jira.dev.bbc.co.uk/browse/")
                         ("google" . "http://www.google.com/search?q="))
 org-export-blocks '((src org-babel-exp-src-block nil)
                     (comment org-export-blocks-format-comment t)
                     (ditaa org-export-blocks-format-ditaa nil)
                     (dot org-export-blocks-format-dot nil))
 )

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Problem with org-capture
  2011-02-16  9:25 Problem with org-capture Chris Lowis
@ 2011-02-16 14:20 ` Bastien
  0 siblings, 0 replies; 18+ messages in thread
From: Bastien @ 2011-02-16 14:20 UTC (permalink / raw)
  To: Chris Lowis; +Cc: emacs-orgmode

Hi Chris,

Chris Lowis <chris.lowis@gmail.com> writes:

> I'm having a problem with org-capture. When I M-x org-capture and then
> choose a template I get:
>
>    condition-case: Capture abort: (wrong-type-argument
>    number-or-marker-p nil)

Can you provide a minimal org file where is happens, and tell which
template you used?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 18+ messages in thread

* problem with org-capture
@ 2015-12-01  8:20 Eric S Fraga
  2015-12-01 20:51 ` Matt Lundin
  2015-12-01 22:22 ` Nicolas Goaziou
  0 siblings, 2 replies; 18+ messages in thread
From: Eric S Fraga @ 2015-12-01  8:20 UTC (permalink / raw)
  To: emacs-orgmode

Hello again,

at the risk of again raising an issue that is actually my fault :-(, I
am having a problem with org-capture.  I have been using the same
templates for yonks but, all of a sudden, my templates don't work.  For
instance,

#+begin_src emacs-lisp
  (setq org-capture-templates
        '(("t" "todo" entry (file+datetree "~/s/notes/tasks.org")
           "* TODO %^{Task} %^G\nSCHEDULED: %t\n%i%?")))
#+end_src

I do not get prompted for the task nor asked for tags.

I do see that there have been changes recently to org-capture and a few
emails flying by regarding recursive captures but I didn't think they
applied to my use cases...  I could be wrong.

Any pointers to what I need to change to get things working again would
be most welcome!

thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-355-g18f083

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-01  8:20 problem " Eric S Fraga
@ 2015-12-01 20:51 ` Matt Lundin
  2015-12-01 21:35   ` Eric S Fraga
  2015-12-01 22:22 ` Nicolas Goaziou
  1 sibling, 1 reply; 18+ messages in thread
From: Matt Lundin @ 2015-12-01 20:51 UTC (permalink / raw)
  To: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Hello again,
>
> at the risk of again raising an issue that is actually my fault :-(, I
> am having a problem with org-capture.  I have been using the same
> templates for yonks but, all of a sudden, my templates don't work.  For
> instance,
>
> #+begin_src emacs-lisp
>   (setq org-capture-templates
>         '(("t" "todo" entry (file+datetree "~/s/notes/tasks.org")
>            "* TODO %^{Task} %^G\nSCHEDULED: %t\n%i%?")))
> #+end_src
>
> I do not get prompted for the task nor asked for tags.
>
> I do see that there have been changes recently to org-capture and a few
> emails flying by regarding recursive captures but I didn't think they
> applied to my use cases...  I could be wrong.
>
> Any pointers to what I need to change to get things working again would
> be most welcome!

I can confirm this bug. None of the prompt shortcuts work in capture
templates. For instance, the following capture template...

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

...simply inserts the following in a buffer without any prompts or
expansion...

* %^{Appt}
 %^t
 [2015-12-01 Tue 14:51]

The problematic commit is the one having to do with recursive todos:

bd3a2cbf2f69d4de5ad7d41893bf418e91c23fb2

Best,
Matt

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-01 20:51 ` Matt Lundin
@ 2015-12-01 21:35   ` Eric S Fraga
  0 siblings, 0 replies; 18+ messages in thread
From: Eric S Fraga @ 2015-12-01 21:35 UTC (permalink / raw)
  To: Matt Lundin; +Cc: emacs-orgmode

On Tuesday,  1 Dec 2015 at 14:51, Matt Lundin wrote:

[...]

> I can confirm this bug. None of the prompt shortcuts work in capture
> templates. For instance, the following capture template...

Whew!  I was really worried I'd done some silly again... :-)

And I did check with emacs -Q for once!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-355-g18f083

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-01  8:20 problem " Eric S Fraga
  2015-12-01 20:51 ` Matt Lundin
@ 2015-12-01 22:22 ` Nicolas Goaziou
  2015-12-02 12:26   ` Eric S Fraga
  1 sibling, 1 reply; 18+ messages in thread
From: Nicolas Goaziou @ 2015-12-01 22:22 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> at the risk of again raising an issue that is actually my fault :-(, I
> am having a problem with org-capture.  I have been using the same
> templates for yonks but, all of a sudden, my templates don't work.  For
> instance,
>
> #+begin_src emacs-lisp
>   (setq org-capture-templates
>         '(("t" "todo" entry (file+datetree "~/s/notes/tasks.org")
>            "* TODO %^{Task} %^G\nSCHEDULED: %t\n%i%?")))
> #+end_src
>
> I do not get prompted for the task nor asked for tags.

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-01 22:22 ` Nicolas Goaziou
@ 2015-12-02 12:26   ` Eric S Fraga
  2015-12-02 21:24     ` Nicolas Goaziou
  0 siblings, 1 reply; 18+ messages in thread
From: Eric S Fraga @ 2015-12-02 12:26 UTC (permalink / raw)
  To: emacs-orgmode

On Tuesday,  1 Dec 2015 at 23:22, Nicolas Goaziou wrote:
> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> at the risk of again raising an issue that is actually my fault :-(, I
>> am having a problem with org-capture.  I have been using the same
>> templates for yonks but, all of a sudden, my templates don't work.  For
>> instance,
>>
>> #+begin_src emacs-lisp
>>   (setq org-capture-templates
>>         '(("t" "todo" entry (file+datetree "~/s/notes/tasks.org")
>>            "* TODO %^{Task} %^G\nSCHEDULED: %t\n%i%?")))
>> #+end_src
>>
>> I do not get prompted for the task nor asked for tags.
>
> Fixed. Thank you.

Thanks Nicolas,

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 free
form?

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-359-g6b2c38

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-02 12:26   ` Eric S Fraga
@ 2015-12-02 21:24     ` Nicolas Goaziou
  2015-12-02 22:57       ` Charles Millar
                         ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Nicolas Goaziou @ 2015-12-02 21:24 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> 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 free
> form?

Fixed (again). Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-02 21:24     ` Nicolas Goaziou
@ 2015-12-02 22:57       ` Charles Millar
  2015-12-03  9:02         ` Nicolas Goaziou
  2015-12-03 10:02       ` Eric S Fraga
  2015-12-03 17:05       ` Matt Lundin
  2 siblings, 1 reply; 18+ messages in thread
From: Charles Millar @ 2015-12-02 22:57 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

On 12/02/2015 04:24 PM, Nicolas Goaziou wrote:
> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> 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 free
>> form?
> Fixed (again). Thank you.
>
>
> Regards,
>
I think it is still broken in another way

my template for capturing time as I work on a files -

             ("s" "timeslip" table-line
              (file "/mnt/Data/ActiveFiles/EmacsFiles/timeslips.org")
              "\| %(org-read-date)\| %^{FileName} %i\| %^{Narrative} 
%i\| %^{Time} %i\| %^{Expense} %i"

Last week the prompt org-read-date would pull up the calendar first; now 
the template jumps first to FileName, then Narrative,then Time, then 
Expense, then back to org-read-date.  After C-c C-c there is anywhere 5 
to 20 second delay.

Charlie Millar

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-02 22:57       ` Charles Millar
@ 2015-12-03  9:02         ` Nicolas Goaziou
  2015-12-03 12:12           ` Charles Millar
  0 siblings, 1 reply; 18+ messages in thread
From: Nicolas Goaziou @ 2015-12-03  9:02 UTC (permalink / raw)
  To: Charles Millar; +Cc: emacs-orgmode

Hello,

Charles Millar <millarc@verizon.net> writes:

> I think it is still broken in another way
>
> my template for capturing time as I work on a files -
>
>             ("s" "timeslip" table-line
>              (file "/mnt/Data/ActiveFiles/EmacsFiles/timeslips.org")
>              "\| %(org-read-date)\| %^{FileName} %i\| %^{Narrative}
> %i\| %^{Time} %i\| %^{Expense} %i"
>
> Last week the prompt org-read-date would pull up the calendar first;
> now the template jumps first to FileName, then Narrative,then Time,
> then Expense, then back to org-read-date.

Well, this one is to be expected. S-exp placeholders are evaluated only
once. This currently happens at the end of the process because some
users do

  %(do-stuff "%i")

Here you want it to happen at the beginning of the process, which is not
quite compatible with the behaviour above.

I guess we could check if the S-exp contains any placeholder to decide
if it should be evaluated at the beginning or the end of the process,
but that somehow sounds cheesy.

> After C-c C-c there is anywhere 5 to 20 second delay.

I'm not sure this is related to the change. Could you use
elp-intrument-package and post the details?


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-02 21:24     ` Nicolas Goaziou
  2015-12-02 22:57       ` Charles Millar
@ 2015-12-03 10:02       ` Eric S Fraga
  2015-12-03 17:05       ` Matt Lundin
  2 siblings, 0 replies; 18+ messages in thread
From: Eric S Fraga @ 2015-12-03 10:02 UTC (permalink / raw)
  To: emacs-orgmode

On Wednesday,  2 Dec 2015 at 22:24, Nicolas Goaziou wrote:
> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> 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 free
>> form?
>
> Fixed (again). Thank you.

Thanks (again :-).

Okay, this now works in that I can enter the text.  However, there seems
to be a very strange side effect: I get the error message

  Error running timer: `org-indent-initialize-agent': (error "Marker
  points into wrong buffer" #<marker at 1 in tasks.org)

when I type anything in the mini-buffer in response to queries from the
capture template.

The actual capture works just fine; I just cannot see the text I am
typing, at least for the first prompt.  The specific capture template is

("t" "todo" entry (file+datetree "~/s/notes/tasks.org") "* TODO %^{Task} %^G\nSCHEDULED: %t\n%i%?")

The can reproduce this with emacs -Q if I have

  (setq org-startup-indented t)

The error only happens in the first capture.  The problem appears to
have something to do with how the buffer is initialised.

I'm not sure how to go further on this.  I do have a working environment
so obviously this is not critical.

Thanks again,
eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-362-g11291f

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-03  9:02         ` Nicolas Goaziou
@ 2015-12-03 12:12           ` Charles Millar
  0 siblings, 0 replies; 18+ messages in thread
From: Charles Millar @ 2015-12-03 12:12 UTC (permalink / raw)
  To: emacs-orgmode



On 12/03/2015 04:02 AM, Nicolas Goaziou wrote:
> Hello,
>
> Charles Millar <millarc@verizon.net> writes:
>
>> I think it is still broken in another way
>>
>> my template for capturing time as I work on a files -
>>
>>              ("s" "timeslip" table-line
>>               (file "/mnt/Data/ActiveFiles/EmacsFiles/timeslips.org")
>>               "\| %(org-read-date)\| %^{FileName} %i\| %^{Narrative}
>> %i\| %^{Time} %i\| %^{Expense} %i"
>>
>> Last week the prompt org-read-date would pull up the calendar first;
>> now the template jumps first to FileName, then Narrative,then Time,
>> then Expense, then back to org-read-date.
> Well, this one is to be expected. S-exp placeholders are evaluated only
> once. This currently happens at the end of the process because some
> users do
>
>    %(do-stuff "%i")
>
> Here you want it to happen at the beginning of the process, which is not
> quite compatible with the behaviour above.
>
> I guess we could check if the S-exp contains any placeholder to decide
> if it should be evaluated at the beginning or the end of the process,
> but that somehow sounds cheesy.
OK; however, why should this change within the past few days (at least 
in my case)? I have been using this template for over three and I 
believe four years and the calendar prompt always started first, not last.
>> After C-c C-c there is anywhere 5 to 20 second delay.
> I'm not sure this is related to the change. Could you use
> elp-intrument-package and post the details?
>
>
You are right, it's not.

Charlie

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-02 21:24     ` Nicolas Goaziou
  2015-12-02 22:57       ` Charles Millar
  2015-12-03 10:02       ` Eric S Fraga
@ 2015-12-03 17:05       ` Matt Lundin
  2015-12-03 21:11         ` Mike McLean
  2 siblings, 1 reply; 18+ messages in thread
From: Matt Lundin @ 2015-12-03 17:05 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> 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 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
      '(("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 – Your Life in Plain Text]]

 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-03 17:05       ` Matt Lundin
@ 2015-12-03 21:11         ` Mike McLean
  2015-12-03 22:38           ` Nicolas Goaziou
  0 siblings, 1 reply; 18+ messages in thread
From: Mike McLean @ 2015-12-03 21:11 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 4326 bytes --]

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 “af” template
   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 <mdl@imapmail.org> wrote:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
> > Hello,
> >
> > Eric S Fraga <e.fraga@ucl.ac.uk> 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 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
>       '(("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 – Your Life in Plain Text]]
>
>  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
>
>

[-- Attachment #2: Type: text/html, Size: 5933 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-03 21:11         ` Mike McLean
@ 2015-12-03 22:38           ` Nicolas Goaziou
  2015-12-04  0:28             ` Charles Millar
                               ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Nicolas Goaziou @ 2015-12-03 22:38 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode

Hello,

Mike McLean <mike.mclean@pobox.com> writes:

> 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 “af” template
>    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 pushed a commit which should fix these issues and the others mentioned
in the thread. Thank you.

Let me know if something is still wrong.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-03 22:38           ` Nicolas Goaziou
@ 2015-12-04  0:28             ` Charles Millar
  2015-12-04  0:57             ` Mike McLean
  2015-12-04  8:55             ` Eric S Fraga
  2 siblings, 0 replies; 18+ messages in thread
From: Charles Millar @ 2015-12-04  0:28 UTC (permalink / raw)
  To: emacs-orgmode



On 12/03/2015 05:38 PM, Nicolas Goaziou wrote:
> Hello,
>
> Mike McLean <mike.mclean@pobox.com> writes:
>
>> 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 “af” template
>>     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 pushed a commit which should fix these issues and the others mentioned
> in the thread. Thank you.
>
> Let me know if something is still wrong.
>
> Regards,
>
Works for me. Thank you, Nicholas.

Regards,

Charlie Millar

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-03 22:38           ` Nicolas Goaziou
  2015-12-04  0:28             ` Charles Millar
@ 2015-12-04  0:57             ` Mike McLean
  2015-12-04  8:55             ` Eric S Fraga
  2 siblings, 0 replies; 18+ messages in thread
From: Mike McLean @ 2015-12-04  0:57 UTC (permalink / raw)
  To: Mike McLean, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

Great

Everything seems to(*) work again; thank you.

Mike

(*) I have another small issue that I think is ~helm~ related based on the
initial backtrace, I'll do full checks (tomorrow or weekend) with -Q and
report back if I think it is Org related. Gut feeling right no: not.


On Thu, Dec 3, 2015 at 5:38 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Mike McLean <mike.mclean@pobox.com> writes:
>
> > 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 “af” template
> >    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 pushed a commit which should fix these issues and the others mentioned
> in the thread. Thank you.
>
> Let me know if something is still wrong.
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 2488 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: problem with org-capture
  2015-12-03 22:38           ` Nicolas Goaziou
  2015-12-04  0:28             ` Charles Millar
  2015-12-04  0:57             ` Mike McLean
@ 2015-12-04  8:55             ` Eric S Fraga
  2 siblings, 0 replies; 18+ messages in thread
From: Eric S Fraga @ 2015-12-04  8:55 UTC (permalink / raw)
  To: emacs-orgmode

On Thursday,  3 Dec 2015 at 23:38, Nicolas Goaziou wrote:

[...]

> I pushed a commit which should fix these issues and the others mentioned
> in the thread. Thank you.

Hi Nicolas,

thank you very much for this.  The problems I was experiencing have all
gone away now!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-363-g5c13a6

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-12-04  8:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-16  9:25 Problem with org-capture Chris Lowis
2011-02-16 14:20 ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2015-12-01  8:20 problem " Eric S Fraga
2015-12-01 20:51 ` Matt Lundin
2015-12-01 21:35   ` Eric S Fraga
2015-12-01 22:22 ` Nicolas Goaziou
2015-12-02 12:26   ` Eric S Fraga
2015-12-02 21:24     ` Nicolas Goaziou
2015-12-02 22:57       ` Charles Millar
2015-12-03  9:02         ` Nicolas Goaziou
2015-12-03 12:12           ` Charles Millar
2015-12-03 10:02       ` Eric S Fraga
2015-12-03 17:05       ` Matt Lundin
2015-12-03 21:11         ` Mike McLean
2015-12-03 22:38           ` Nicolas Goaziou
2015-12-04  0:28             ` Charles Millar
2015-12-04  0:57             ` Mike McLean
2015-12-04  8:55             ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).