emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Roland Everaert <reveatwork@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: 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/)]
Date: Fri, 27 Jan 2017 14:16:06 +0100	[thread overview]
Message-ID: <CACdPZ9Lpgc1hXEDfBmR13CenMkEBWZVN_vgGqi99xd7Qc-Rb2g@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2017-01-27 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-27 13:16 Roland Everaert [this message]
2017-01-30 22:43 ` 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/)] Nicolas Goaziou

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=CACdPZ9Lpgc1hXEDfBmR13CenMkEBWZVN_vgGqi99xd7Qc-Rb2g@mail.gmail.com \
    --to=reveatwork@gmail.com \
    --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 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).