From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: =?UTF-8?B?QnVnOiBPcmcgY2FwdHVyZTogSW52YWxpZCB1c2Ugb2Yg4oCYXA==?= =?UTF-8?B?4oCZIGluIHJlcGxhY2VtZW50IHRleHQgWzkuMS4xNCAoOS4xLjE0LTEwNDkt?= =?UTF-8?B?ZzA0NjQxYy1lbHBhcGx1cyBAIC9ob21lL2lvbmFzYWwvLmVtYWNzLmQvZWxw?= =?UTF-8?B?YS9vcmctcGx1cy1jb250cmliLTIwMTgxMjAzLyld?= Date: Fri, 7 Dec 2018 18:12:30 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVS6l-0003hH-RE for emacs-orgmode@gnu.org; Fri, 07 Dec 2018 21:12:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVS6l-0003qU-5B for emacs-orgmode@gnu.org; Fri, 07 Dec 2018 21:12:43 -0500 Received: from mail-it1-x141.google.com ([2607:f8b0:4864:20::141]:34604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVS6k-0003qB-UZ for emacs-orgmode@gnu.org; Fri, 07 Dec 2018 21:12:43 -0500 Received: by mail-it1-x141.google.com with SMTP id x124so2941474itd.1 for ; Fri, 07 Dec 2018 18:12:42 -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: Org Mode List There's an escaping bug in Org capture: 1. emacs -Q 2. Evaluate: (setq org-capture-templates '(("Z" "org-protocol capture" entry (file "/tmp/tmp") "* %? %(let ((x \"%:annotation\")) (if (string=3D x \"\") \"\" (concat x \"\\n\")))%i"))) 3. Evaluate (require 'org-protocol) 4. Evaluate to simulate org protocol capture: (org-protocol-capture '(:template "Z" :body "foo\nbar\n")) Causes error: (error "Capture abort: (error Invalid use of =E2=80=98\\=E2=80=99 in replac= ement text)") org-protocol is used in the example as that's where I encountered it, but the bug is in org-capture proper. Note that this works: (org-protocol-capture '(:template "Z" :body "foo")) Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30= ) of 2018-07-05 Package: Org mode version 9.1.14 (9.1.14-1049-g04641c-elpaplus @ /home/ionasal/.emacs.d/elpa/org-plus-contrib-20181203/)