From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Everaert 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 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045efcbebf4db205471344e2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cX6Nu-00061f-EN for emacs-orgmode@gnu.org; Fri, 27 Jan 2017 08:16:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cX6Nt-0002lE-9z for emacs-orgmode@gnu.org; Fri, 27 Jan 2017 08:16:10 -0500 Received: from mail-yw0-x236.google.com ([2607:f8b0:4002:c05::236]:35475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cX6Nt-0002ks-4L for emacs-orgmode@gnu.org; Fri, 27 Jan 2017 08:16:09 -0500 Received: by mail-yw0-x236.google.com with SMTP id l19so188176398ywc.2 for ; Fri, 27 Jan 2017 05:16:07 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --f403045efcbebf4db205471344e2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=A2ches") "* 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, --f403045efcbebf4db205471344e2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '(("t" "Tod= o" entry (file+headline "~/somefi= le.org" "T=C3=A2ches")
=C2=A0=C2=A0=C2=A0 =C2=A0"= ;* TODO %?\n=C2=A0 %i\n"=C2=A0 :clock-in t :clock-resume t)
=C2=A0= =C2=A0=C2=A0 ("l" "Mail" entry (file+datetree "~/<= a href=3D"http://somefile.org">somefile.org" "Divers")=C2=A0=C2=A0=C2=A0 =C2=A0"* EMAIL %?\n=C2=A0 %i\n" :clock-in t = :clock-resume t)
=C2=A0=C2=A0=C2=A0 ("fm" "some Menu - le= vel 2")
=C2=A0=C2=A0=C2=A0 ("fmm" "template defintio= n - level 3 " entry (file+olp "~/= somefile.org" "Level 1" "level 2")
=C2=A0= =C2=A0=C2=A0 =C2=A0"* MEETING %?\n=C2=A0 %i\n" :clock-in t :clock= -resume t)
=C2=A0=C2=A0=C2=A0 ("fmt" "another template de= finition - level 3" entry (file+olp "~/somefile.org" "Level 1" "level 2")
= =C2=A0=C2=A0=C2=A0 =C2=A0"*** TODO %?\n=C2=A0 %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=C2=A0 : GNU Emacs 25.1.1 (x86_6= 4-unknown-cygwin)
=C2=A0of 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,
--f403045efcbebf4db205471344e2--