From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: org-set-property does not leave the point still [8.1.1 (release_8.1.1-29-gc5f2ae @ /home/mboes/.emacs.d/lisp/org/lisp/)] Date: Mon, 16 Sep 2013 08:23:28 +0200 Message-ID: <15E73120-49DB-462E-B64F-6BD34914F823@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_8FC6E001-B317-448B-BC05-04FAA9F42029"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLSv6-0002PD-HI for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 03:08:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLSv0-0006yV-Vq for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 03:08:28 -0400 Received: from mail-ee0-x231.google.com ([2a00:1450:4013:c00::231]:51602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLSv0-0006yJ-OK for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 03:08:22 -0400 Received: by mail-ee0-f49.google.com with SMTP id d41so1761927eek.8 for ; Mon, 16 Sep 2013 00:08:21 -0700 (PDT) In-Reply-To: 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: Mathieu Boespflug Cc: emacs-orgmode@gnu.org --Apple-Mail=_8FC6E001-B317-448B-BC05-04FAA9F42029 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hi Mathieu, thank you for your report, this is now fixed. - Carsten On 16.9.2013, at 00:16, Mathieu Boespflug wrote: > Hi, > > consider the following very simple org file: > > * TODO Thing1[] > > where "[]" marks where the point is. Now if I C-S-RET to insert a new > TODO heading, I get > > * TODO Thing1 > * TODO [] > > Note that there is a trailing space at the end of the last line, as > expected. The problem is that if I now press C-c C-x p to set > a property (any property), then I end up with the following situation: > > * TODO Thing1 > * TODO > :PROPERTIES: > :PROP: val > :END: [] > > The point is now at the end of the property drawer, rather than where it > was before. Notice how the trailing whitespace in the heading has > moreover been moved to after the property drawer. > > Expected behaviour: > > After C-c C-x p, I expect to get: > > * TODO Thing1 > * TODO [] > :PROPERTIES: > :PROP: val > :END: > > This is exactly what I get if there is *no trailing whitespace* in the > TODO heading before hitting C-c C-x p. So it seems that the bug is that > org-set-property does not deal well with trailing whitespace. > > This is a problem because it messes up setting properties by advising > org-insert-todo-heading, say to set a CREATED property automatically for > new TODO items. > > Emacs : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.2) > of 2013-08-07 on -mnt-storage-buildroots-staging-x86_64-eric > Package: Org-mode version 8.1.1 (release_8.1.1-29-gc5f2ae @ > /home/mboes/.emacs.d/lisp/org/lisp/) > --Apple-Mail=_8FC6E001-B317-448B-BC05-04FAA9F42029 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSNqPgAAoJEO+gg/nAZuwMDo8IAKmWTieP8gh/ZlOgZshFtnXL D0xPmWYdAcPvPpM9G9ZfABuxVKrMZ0EtytKTDa/147Cf9xpPKxbHu0237xG3fKTb 4L7xBfgPKAr4ixdIxq2cANB7YrBPBrXk9Sl/RosRxPWH2xkD9PVocETk4vIIuUIP 0wtrNmgJLM7C91Z1mHNrd+Y5+XyMP42N1mdzZQLKn6U3FasNfd+yjD0Rw/+UPGKb ZZeTZHddyEmtv8oLekuExssGFeB/nxTNsodNpFqdqSHZ3o8RlpPZXn+r/IXXacDs Etgo98k18boEUod2aFgoX76GUB9lobbC7tWH9cZBmgShfLC1n72UUMjmlcS82xE= =TtXL -----END PGP SIGNATURE----- --Apple-Mail=_8FC6E001-B317-448B-BC05-04FAA9F42029--