From 922772e01217cabeaa5b206cd476492b66aa28f3 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 14 Aug 2012 13:09:56 +0200 Subject: [PATCH] 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. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 64e04d46c..f60544390 100644 --- a/lisp/org.el +++ b/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)))