mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-23 12:48:32 +00:00
* lisp/org.el (org-insert-property-drawer): Insert only after space in current line. This fixed a bug reported by Mathieu Boespflug, who writes: > 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. |
||
---|---|---|
contrib | ||
doc | ||
etc | ||
lisp | ||
mk | ||
testing | ||
.dir-locals.el | ||
.dir-settings.el | ||
.gitignore | ||
.gitmodules | ||
COPYING | ||
Makefile | ||
README | ||
README_contribute | ||
README_ELPA | ||
README_git | ||
README_maintainer | ||
request-assign-future.txt |
The is a distribution of Org, a plain text notes and project planning tool for Emacs. The homepage of Org is at: http://orgmode.org The installations instructions are at: http://orgmode.org/org.html#Installation This distribution contains: README This file. COPYING The GNU General Public License. Makefile The makefile to compile and install Org. For installation instructions, see the manual or the more detailed procedure on Worg: http://orgmode.org/worg/dev/org-build-system.html mk/ Files needed for building Org. lisp/ Directory with all the Emacs Lisp files that make up Org. doc/ The documentation files. org.texi is the source of the documentation, org.html and org.pdf are formatted versions of it. contrib/ A directory with third-party additions for Org. Some really cool stuff is in there. etc/ Files needed for the ODT exporter. testing/ Testing suite for Org. request-assign-future.txt The form that contributors have to sign and get processed with the FSF before contributed changes can be integrated into the Org core. All files in this distribution except the contrib/ directory have copyright assigned to the FSF.