mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-12 08:39:56 +00:00
This commit fixes the bug discussed in: http://thread.gmane.org/gmane.emacs.orgmode/11106 The reason for the empty line being inserted is subtle: The function `org-add-planning-info' is used to add and remove planning info time stamps (deadline, scheduled, closed) from the second line in an entry. Usually, the function is called to add something, with an optional argument to also remove something. In doing so, it assumes that the second line must be there, and if it is not there, it creates it. Now, sometimes `org-add-planning-info' is called only to remove a time stamp. In this particular case it was to remove the CLOSED time stamp. This happens when the state is changed from a DONE or nil state to a not-done state. The idea behind this is that maybe to entry was marked earlier as DONE, but the user has changed his mind, so the timestamp recording when it was finished should be removed. So in this case, an empty line was created, assuming that there would be something to add - only nothing was added. This commit arranges for checking if there is something to add before creating an empty line. |
||
---|---|---|
BUGFIXING | ||
contrib | ||
doc | ||
EXPERIMENTAL | ||
lisp | ||
ORGWEBPAGE | ||
UTILITIES | ||
xemacs | ||
.dir-settings.el | ||
.gitignore | ||
ChangeLog | ||
Makefile | ||
README | ||
README_DIST | ||
README_GIT | ||
request-assign-future.txt |
This is the Emacs Org project, an emacs subsystem for organizing your life The homepage of Org is at http://orgmode.org This distribution contains: README This file. README_DIST The README file for the distribution (zip and tar files) README_GIT Information about the git repository and how to contribute to Org-mode development. 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. xemacs/ The xemacs directory contains special code for XEmacs users, in particular a port of the GNU Emacs outline.el to XEmacs. Org-mode does not work under XEmacs without this file installed. It did until version 4.37, but no longer. CONTRIB/ A diretory with third-party additions for Org. Some really cool stuff is in there. ORGWEBPAGE/ Directory with the source files for the orgmode.org web page. ChangeLog The standard ChangeLog file. Makefile The makefile to compile and install Org, and also for maintenance tasks. 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. EXPERIMENTAL Experimental code, not necessarily FSF copyright.