emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: The org-entry-put add extra space after each invoking [7.5 (rel


From: wujun zhou
Subject: [O] Bug: The org-entry-put add extra space after each invoking [7.5 (release_7.5.260.geb2a)]
Date: Sun, 8 May 2011 23:02:30 +0800

Each time I invoke the org-entry-put, I will get an extra space before
the value, like this:
<----before
:prop: 1
<----after (org-entry-put pom prop 2)
:prop:  2
<----and after invoking servel times:
:prop:                    3
----------------
It's harmless to org-property API, but somewhat annoying.

I think, this is introduced by commit
92b603c8920623d9c581e2c58809ad2c73fcd475.

It changed the regex from

(concat "^[ \t]*:" property ":\\(.*\\)") (cdr range) t)

to

(concat "^[ \t]*:" (regexp-quote property) ":[ \t]*\\(\\S-.*\\)"))

Thus, the following
(goto-char (match-beginning 1))
will be after instead of before the spaces.

And the
(and value (insert " " value))
will add the extra space.


Emacs  : GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4)
 of 2011-05-04 on zwj-ubuntu
Package: Org-mode version 7.5 (release_7.5.260.geb2a)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]