org.el: Only skip comments starting with "# " when storing a note.

* org.el (org-store-log-note): Only skip comments starting
with "# " when storing a note.

Thanks to Thomas Wallrafen for reporting this bug.
This commit is contained in:
Bastien Guerry 2012-08-14 13:09:56 +02:00
parent 570e30b5dd
commit 922772e012
1 changed files with 1 additions and 1 deletions

View File

@ -12642,7 +12642,7 @@ EXTRA is additional text that will be inserted into the notes buffer."
(note (cdr (assq org-log-note-purpose org-log-note-headings))) (note (cdr (assq org-log-note-purpose org-log-note-headings)))
lines ind bul) lines ind bul)
(kill-buffer (current-buffer)) (kill-buffer (current-buffer))
(while (string-match "\\`#.*\n[ \t\n]*" txt) (while (string-match "\\`# .*\n[ \t\n]*" txt)
(setq txt (replace-match "" t t txt))) (setq txt (replace-match "" t t txt)))
(if (string-match "\\s-+\\'" txt) (if (string-match "\\s-+\\'" txt)
(setq txt (replace-match "" t t txt))) (setq txt (replace-match "" t t txt)))