From mboxrd@z Thu Jan 1 00:00:00 1970 From: wujun zhou Subject: 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 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ5VA-0005Ma-Jg for emacs-orgmode@gnu.org; Sun, 08 May 2011 11:02:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJ5V9-0003sq-Mx for emacs-orgmode@gnu.org; Sun, 08 May 2011 11:02:32 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:55113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ5V9-0003sj-Jn for emacs-orgmode@gnu.org; Sun, 08 May 2011 11:02:31 -0400 Received: by iyh42 with SMTP id 42so5139218iyh.0 for ; Sun, 08 May 2011 08:02:30 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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)