* Bug: Emacs hangs with badly defined multi characters key hierarchy in org-capture-templates [9.0 (9.0-dist @ /cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0/lisp/)]
@ 2017-01-27 13:16 Roland Everaert
2017-01-30 22:43 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Roland Everaert @ 2017-01-27 13:16 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]
Hi,
When using multicharacters keys, if a key definition entry is missing,
emacs hangs and must be killed.
Example of an offending org-capture-templates definition:
(setq org-capture-templates
'(("t" "Todo" entry (file+headline "~/somefile.org" "Tâches")
"* TODO %?\n %i\n" :clock-in t :clock-resume t)
("l" "Mail" entry (file+datetree "~/somefile.org" "Divers")
"* EMAIL %?\n %i\n" :clock-in t :clock-resume t)
("fm" "some Menu - level 2")
("fmm" "template defintion - level 3 " entry (file+olp "~/somefile.org"
"Level 1" "level 2")
"* MEETING %?\n %i\n" :clock-in t :clock-resume t)
("fmt" "another template definition - level 3" entry (file+olp "~/
somefile.org" "Level 1" "level 2")
"*** TODO %?\n %i\n" :clock-in t :clock-resume t)))
The definition of the "f" key is missing.
In such case, org-mode should display a message and, do nothing or ignore
the offending tree.
Emacs : GNU Emacs 25.1.1 (x86_64-unknown-cygwin)
of 2016-09-17
Package: Org mode version 9.0 (9.0-dist @
/cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0/lisp/)
Regards,
[-- Attachment #2: Type: text/html, Size: 1649 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug: Emacs hangs with badly defined multi characters key hierarchy in org-capture-templates [9.0 (9.0-dist @ /cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0/lisp/)]
2017-01-27 13:16 Bug: Emacs hangs with badly defined multi characters key hierarchy in org-capture-templates [9.0 (9.0-dist @ /cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0/lisp/)] Roland Everaert
@ 2017-01-30 22:43 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-01-30 22:43 UTC (permalink / raw)
To: Roland Everaert; +Cc: emacs-orgmode
Hello,
Roland Everaert <reveatwork@gmail.com> writes:
> When using multicharacters keys, if a key definition entry is missing,
> emacs hangs and must be killed.
>
> Example of an offending org-capture-templates definition:
>
> (setq org-capture-templates
> '(("t" "Todo" entry (file+headline "~/somefile.org" "Tâches")
> "* TODO %?\n %i\n" :clock-in t :clock-resume t)
> ("l" "Mail" entry (file+datetree "~/somefile.org" "Divers")
> "* EMAIL %?\n %i\n" :clock-in t :clock-resume t)
> ("fm" "some Menu - level 2")
> ("fmm" "template defintion - level 3 " entry (file+olp "~/somefile.org"
> "Level 1" "level 2")
> "* MEETING %?\n %i\n" :clock-in t :clock-resume t)
> ("fmt" "another template definition - level 3" entry (file+olp "~/
> somefile.org" "Level 1" "level 2")
> "*** TODO %?\n %i\n" :clock-in t :clock-resume t)))
>
> The definition of the "f" key is missing.
Fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-30 22:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 13:16 Bug: Emacs hangs with badly defined multi characters key hierarchy in org-capture-templates [9.0 (9.0-dist @ /cygdrive/c/Users/re/.emacs.d/site-lisp/org-9.0/lisp/)] Roland Everaert
2017-01-30 22:43 ` Nicolas Goaziou
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).