all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: org-caputure fails, sometimes [9.3.7 (release_9.3.7-705-gea9463 @ /home/oub/emacs/site-lisp/packages/org/)]
Date: Sun, 25 Apr 2021 19:29:43 +0200	[thread overview]
Message-ID: <87eeeys260.fsf@mat.ucm.es> (raw)
In-Reply-To: 87h7jwgxul.fsf@kyleam.com

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


   > Uwe Brauer writes:

   > With this backtrace alone (which involves org-capture catching the
   > internal error), I think it's going to be hard for anyone to guess
   > what's going on here.  It sounds like once you encounter this error,
   > subsequent calls reliably trigger it.  Next time you run into it, I'd
   > suggest re-evaluating org-capture to something like below to hopefully
   > see a more informative backtrace.

   > diff --git a/lisp/org-capture.el b/lisp/org-capture.el
   > index 831c3e1f4..b20124ced 100644
   > --- a/lisp/org-capture.el
   > +++ b/lisp/org-capture.el
   > @@ -693,9 +693,7 @@ (defun org-capture (&optional goto keys)
   >  		      (string-prefix-p "CAPTURE-" (buffer-name)))
   >  	     (kill-buffer (current-buffer)))
   >  	   (set-window-configuration (org-capture-get :return-to-wconf))
   > -	   (error "Capture template `%s': %s"
   > -		  (org-capture-get :key)
   > -		  (error-message-string error))))
   > +	   (signal (car error) (cdr error))))
   >  	(when (and (derived-mode-p 'org-mode) (org-capture-get :clock-in))
   >  	  (condition-case nil
   >  	      (progn



I debugged the function, the error appears in that line
 (signal (car error) (cdr error))))

Which is not useful. 

The funny thing is that the capture is saved correctly in the file 
here is the template

("mu" "Stat+Num:Exercises English"
         table-line (file+headline "~/ALLES/HGs/tex/vorlesungen/HGQuim-Num-Estad/Lista-Alumnos/2021/GroupE/exercises-groupE-21.org" "Exercise Group-E")
         "| %:fromname|%:fromaddress  |%^{Sheet|1|2|3|4|5|6}|%^{Exercise|1|} |  %a|%:date | "  :prepend t 
         )

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

      parent reply	other threads:[~2021-04-25 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 10:30 Bug: org-caputure fails, sometimes [9.3.7 (release_9.3.7-705-gea9463 @ /home/oub/emacs/site-lisp/packages/org/)] Uwe Brauer
2021-04-24  3:33 ` Kyle Meyer
2021-04-24  7:34   ` Uwe Brauer
2021-04-25 17:12   ` Uwe Brauer
2021-04-25 17:29   ` Uwe Brauer [this message]

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

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

  git send-email \
    --in-reply-to=87eeeys260.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.