From ecb8fbd7d58d690f17c24c3ae6ab88e7685db26a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 19 Aug 2012 11:07:50 +0200 Subject: [PATCH] Line with a single hash sign on it is a comment * lisp/org.el (org-mode): Line with a single hash sign on it is a comment. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index cf69b83af..3bf338d69 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5091,7 +5091,7 @@ The following commands are available: ;; Comments (org-set-local 'comment-use-syntax nil) (org-set-local 'comment-start "# ") - (org-set-local 'comment-start-skip "# ?") + (org-set-local 'comment-start-skip "#\\(?:[ \t]\\|$\\)") (org-set-local 'comment-insert-comment-function 'org-insert-comment) (org-set-local 'comment-region-function 'org-comment-or-uncomment-region) (org-set-local 'uncomment-region-function 'org-comment-or-uncomment-region)