emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: [error] Capture template `m': number-or-marker-p
Date: Thu, 18 Aug 2011 23:26:47 +0200	[thread overview]
Message-ID: <80r54ipg14.fsf@somewhere.org> (raw)

Hello,

With the update of 20 mins ago or so, that is [2011-08-18 Thu 23:00] (CET),
I've got the following error when trying to use a capture template I use many
times every day.

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "Capture template `m': number-or-marker-p")
  signal(error ("Capture template `m': number-or-marker-p"))
  error("Capture template `%s': %s" "m" number-or-marker-p)
  (condition-case error (org-capture-place-template) ((error quit) (if ... ...) (set-window-configuration ...) (error "Capture template `%s': %s" ... ...)))
  (if (equal goto 0) (org-capture-insert-template-here) (condition-case error (org-capture-place-template) (... ... ... ...)) (if (and ... ...) (condition-case nil ... ...)) (if (org-capture-get :immediate-finish) (org-capture-finalize nil)))
  (cond ((equal entry "C") (customize-variable ...)) ((equal entry "q") (error "Abort")) (t (org-capture-set-plist entry) (org-capture-get-template) (org-capture-put :original-buffer orig-buf :original-file ... :original-file-nondirectory ... :annotation annotation :initial initial) (org-capture-put :default-time ...) (org-capture-set-target-location) (condition-case error ... ...) (setq org-capture-clock-keep ...) (if ... ... ... ... ...)))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when (stringp initial) (remove-text-properties 0 ... ... initial)) (when (stringp annotation) (remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... ... ... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)
--8<---------------cut here---------------end--------------->8---

FYI, the capture template in question:

#+begin_src emacs-lisp
          (setq org-capture-templates
                `(("m" "Mail" entry
                   (file+headline ,org-default-notes-file "Tasks")
                   "* TODO %:subject%? (from %:fromname) :mail:
   SCHEDULED: %t
   %:date-timestamp-inactive

#+begin_verse
%i
#+end_verse

From %a"
                   :empty-lines 1 :immediate-finish)))
#+end_src

Best regards,
  Seb

PS- BTW, I still don't understand how to get real data instead of those
    useless ellipses in the above stack trace.

    I've the following in my .emacs file, but it clearly seems without any
    effect!??

    #+begin_src emacs-lisp
          ;; maximum depth of lists to print in the result of the evaluation commands
          ;; before abbreviating them: no limit
          (setq eval-expression-print-level nil)

          ;; maximum length of lists to print in the result of the evaluation commands
          ;; before abbreviating them: no limit
          (setq eval-expression-print-length nil)
    #+end_src

-- 
Sebastien Vauban

             reply	other threads:[~2011-08-18 21:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-18 21:26 Sebastien Vauban [this message]
2011-08-19  8:36 ` [error] Capture template `m': number-or-marker-p Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80r54ipg14.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).