emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG? - Capture escape %n not working
@ 2011-01-07  8:28 Rainer M Krug
  2011-01-07 14:15 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Rainer M Krug @ 2011-01-07  8:28 UTC (permalink / raw)
  To: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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)

Cheers,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0mzpYACgkQoYgNqgF2egpDYgCfdhwTTZ+yHK5NqidbcaNQ2h2p
jwsAmwREFjnqSMUavfrIKjV2dH9oEis6
=GmNX
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG? - Capture escape %n not working
  2011-01-07  8:28 BUG? - Capture escape %n not working Rainer M Krug
@ 2011-01-07 14:15 ` Nick Dokos
  2011-01-07 14:29   ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2011-01-07 14:15 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: nicholas.dokos, emacs-orgmode

Rainer M Krug <r.m.krug@gmail.com> 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: BUG? - Capture escape %n not working
  2011-01-07 14:15 ` Nick Dokos
@ 2011-01-07 14:29   ` Carsten Dominik
  2011-01-07 14:29     ` Rainer M Krug
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2011-01-07 14:29 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, Rainer M Krug

Applied, thanks.

- Carsten

On Jan 7, 2011, at 3:15 PM, Nick Dokos wrote:

> Rainer M Krug <r.m.krug@gmail.com> 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
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG? - Capture escape %n not working
  2011-01-07 14:29   ` Carsten Dominik
@ 2011-01-07 14:29     ` Rainer M Krug
  0 siblings, 0 replies; 4+ messages in thread
From: Rainer M Krug @ 2011-01-07 14:29 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: nicholas.dokos, emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/07/2011 03:29 PM, Carsten Dominik wrote:
> Applied, thanks.

Thanks a lot,

Rainer

> 
> - Carsten
> 
> On Jan 7, 2011, at 3:15 PM, Nick Dokos wrote:
> 
>> Rainer M Krug <r.m.krug@gmail.com> 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
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> - Carsten
> 
> 
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0nI1oACgkQoYgNqgF2ego7HwCfd3dtbG/nqZqDfKB2XpW/EKMG
ywIAn3mj/V+Tqg8QwTvttR9ICudi9/r1
=xsLC
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-07 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07  8:28 BUG? - Capture escape %n not working Rainer M Krug
2011-01-07 14:15 ` Nick Dokos
2011-01-07 14:29   ` Carsten Dominik
2011-01-07 14:29     ` Rainer M Krug

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).