Преглед на файлове

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.
Bastien Guerry преди 13 години
родител
ревизия
922772e012
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -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)))
 	lines ind bul)
     (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)))
     (if (string-match "\\s-+\\'" txt)
 	(setq txt (replace-match "" t t txt)))