From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Is the "No comment syntax is defined" problem fixed? Date: Sat, 8 May 2010 17:11:56 +0200 Message-ID: <657E262C-E2B5-407B-902D-24CC66E9E1A3@gmail.com> References: <267FA12A-BE3D-41A8-9A16-D4D7FD34C947@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAlhD-0004e2-Ar for emacs-orgmode@gnu.org; Sat, 08 May 2010 11:12:03 -0400 Received: from [140.186.70.92] (port=33020 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAlhB-0004du-7r for emacs-orgmode@gnu.org; Sat, 08 May 2010 11:12:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAlh9-0001cD-Kv for emacs-orgmode@gnu.org; Sat, 08 May 2010 11:12:01 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:42393) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAlh9-0001c1-EN for emacs-orgmode@gnu.org; Sat, 08 May 2010 11:11:59 -0400 Received: by ewy6 with SMTP id 6so705343ewy.32 for ; Sat, 08 May 2010 08:11:58 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Leo Cc: emacs-orgmode@gnu.org 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