emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Is the "No comment syntax is defined" problem fixed?


From: Carsten Dominik
Subject: [Orgmode] Re: Is the "No comment syntax is defined" problem fixed?
Date: Sat, 8 May 2010 17:11:56 +0200

Applied, thanks.

- Carsten

On May 1, 2010, at 11:08 PM, Leo wrote:

On 2010-05-01 18:19 +0100, Carsten Dominik wrote:
That is known to cause problems in Org-mode:

http://thread.gmane.org/gmane.emacs.orgmode/5518/focus=6033

Org mode syntax table doesn't specify a comment end syntax which causes
the said problem. Could you try the attached patch and see if it works
for you too? I guess if it works then we have both issue fixed ;)

Best wishes,
Leo


diff --git a/lisp/org/org.el b/lisp/org/org.el
index f55cacc..25d5ea9 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -4209,6 +4209,7 @@ The following commands are available:
  ;; Calc embedded
  (org-set-local 'calc-embedded-open-mode "# ")
  (modify-syntax-entry ?# "<")
+  (modify-syntax-entry ?\n ">")
  (modify-syntax-entry ?@ "w")
  (if org-startup-truncated (setq truncate-lines t))
  (org-set-local 'font-lock-unfontify-region-function
@@ -4237,7 +4238,7 @@ 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 " ")

  ;; Align options lines

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]