From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: BUG? - Capture escape %n not working Date: Fri, 07 Jan 2011 09:15:28 -0500 Message-ID: <12644.1294409728@gamaville.dokosmarshall.org> References: <4D26CE96.4090408@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=37018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbD6i-00042r-9W for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:15:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbD6e-00017I-FM for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:15:56 -0500 Received: from vms173003pub.verizon.net ([206.46.173.3]:48052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbD6e-00016s-Br for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 09:15:52 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LEN00HPTOXSH5B0@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 08:15:29 -0600 (CST) In-reply-to: Message from Rainer M Krug of "Fri, 07 Jan 2011 09:28:06 +0100." <4D26CE96.4090408@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: nicholas.dokos@hp.com, emacs-orgmode Rainer M Krug wrote: > Hi > > I am not sure if it is a bug, or a configuration issue, but %n (user > name (taken from `user-full-name')) is not working - it is not expanded > and displayed as %n > > Emacs : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) > of 2010-07-05 on ecolmod > Package: Org-mode version 7.4 (release_7.4.100.gdf7d) > It's a bug - there is an "n" missing from the regexp: diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 85747ee..2076f68 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1213,7 +1213,7 @@ The template may still contain \"%?\" for cursor positioning." ;; Simple %-escapes (goto-char (point-min)) - (while (re-search-forward "%\\([tTuUaiAcxkKI]\\)" nil t) + (while (re-search-forward "%\\([tTuUaiAcxkKIn]\\)" nil t) (unless (org-capture-escaped-%) (when (and initial (equal (match-string 0) "%i")) (save-match-data Nick