Fix `org-store-log-note'
* lisp/org.el (org-store-log-note): Ignore empty log buffers.
The regression was introduced in
f776e65373
. From then, (org-split-string
"") no longer returns nil.
Suggested-by: Dale Sedivec <dale@codefu.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00013.html>
This commit is contained in:
parent
1cf48fc2e7
commit
80d7025770
|
@ -13640,7 +13640,7 @@ EXTRA is additional text that will be inserted into the notes buffer."
|
|||
(setq txt (replace-match "" t t txt)))
|
||||
(when (string-match "\\s-+\\'" txt)
|
||||
(setq txt (replace-match "" t t txt)))
|
||||
(setq lines (org-split-string txt "\n"))
|
||||
(setq lines (and (not (equal "" txt)) (org-split-string txt "\n")))
|
||||
(when (org-string-nw-p note)
|
||||
(setq note
|
||||
(org-replace-escapes
|
||||
|
|
Loading…
Reference in New Issue