From 9e9f083aa921f1124e9d405ef560550702210633 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sat, 8 May 2010 17:10:14 +0200 Subject: [PATCH] Fix comment syntax in org-mode Patch by Leo. If this works, we have fixed an issue that has bugged me for several years. --- lisp/ChangeLog | 2 ++ lisp/org.el | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3da2bb621..92b1898b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2010-05-08 Carsten Dominik + * org.el (org-mode): Fix comment syntax settings. + * org-src.el (org-edit-src-allow-write-back-p): Define variable. diff --git a/lisp/org.el b/lisp/org.el index 546b37b59..c52aeb0c4 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4421,7 +4421,6 @@ The following commands are available: (org-set-tag-faces 'org-tag-faces org-tag-faces)) ;; Calc embedded (org-set-local 'calc-embedded-open-mode "# ") - (modify-syntax-entry ?# "<") (modify-syntax-entry ?@ "w") (if org-startup-truncated (setq truncate-lines t)) (org-set-local 'font-lock-unfontify-region-function @@ -4450,8 +4449,10 @@ The following commands are available: 'org-block-todo-from-checkboxes)) ;; Comment characters -; (org-set-local 'comment-start "#") ;; FIXME: this breaks wrapping + (org-set-local 'comment-start "#") (org-set-local 'comment-padding " ") + (modify-syntax-entry ?# "<") + (modify-syntax-entry ?\n ">") ;; Align options lines (org-set-local -- 2.11.4.GIT