emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is the "No comment syntax is defined" problem fixed?
@ 2010-04-29 14:16 Leo
  2010-05-01 12:03 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Leo @ 2010-04-29 14:16 UTC (permalink / raw)
  To: emacs-orgmode

Hello Carsten,

I remember occasionally org mode asked about "No comment syntax is
defined; use: ". Has this been fixed? I have found that whenever a
function calls comment-indent (directly or indirectly), this question
will be asked. To see it, in an org buffer, eval (comment-indent).

Thanks.

Leo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is the "No comment syntax is defined" problem fixed?
  2010-04-29 14:16 Is the "No comment syntax is defined" problem fixed? Leo
@ 2010-05-01 12:03 ` Carsten Dominik
  2010-05-01 16:08   ` Leo
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2010-05-01 12:03 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


On Apr 29, 2010, at 4:16 PM, Leo wrote:

> Hello Carsten,
>
> I remember occasionally org mode asked about "No comment syntax is
> defined; use: ". Has this been fixed? I have found that whenever a
> function calls comment-indent (directly or indirectly), this question
> will be asked. To see it, in an org buffer, eval (comment-indent).

I have not fixed it - so it probably still is a problem.

>
> Thanks.
>
> Leo
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is the "No comment syntax is defined" problem fixed?
  2010-05-01 12:03 ` Carsten Dominik
@ 2010-05-01 16:08   ` Leo
  2010-05-01 17:19     ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Leo @ 2010-05-01 16:08 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

On 2010-05-01 13:03 +0100, Carsten Dominik wrote:
>> I remember occasionally org mode asked about "No comment syntax is
>> defined; use: ". Has this been fixed? I have found that whenever a
>> function calls comment-indent (directly or indirectly), this question
>> will be asked. To see it, in an org buffer, eval (comment-indent).
>
> I have not fixed it - so it probably still is a problem.

I will keep an eye on it. I haven't seen this issue for a long time. If
this happens again I will see if setting comment-start to "# " helps.

Leo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is the "No comment syntax is defined" problem fixed?
  2010-05-01 16:08   ` Leo
@ 2010-05-01 17:19     ` Carsten Dominik
  2010-05-01 21:08       ` Leo
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2010-05-01 17:19 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


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

> On 2010-05-01 13:03 +0100, Carsten Dominik wrote:
>>> I remember occasionally org mode asked about "No comment syntax is
>>> defined; use: ". Has this been fixed? I have found that whenever a
>>> function calls comment-indent (directly or indirectly), this  
>>> question
>>> will be asked. To see it, in an org buffer, eval (comment-indent).
>>
>> I have not fixed it - so it probably still is a problem.
>
> I will keep an eye on it. I haven't seen this issue for a long time.  
> If
> this happens again I will see if setting comment-start to "# " helps.

That is known to cause problems in Org-mode:

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

>
> Leo

- Carsten

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is the "No comment syntax is defined" problem fixed?
  2010-05-01 17:19     ` Carsten Dominik
@ 2010-05-01 21:08       ` Leo
  2010-05-08 15:11         ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Leo @ 2010-05-01 21:08 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: Is the "No comment syntax is defined" problem fixed?
  2010-05-01 21:08       ` Leo
@ 2010-05-08 15:11         ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-05-08 15:11 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-08 15:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 14:16 Is the "No comment syntax is defined" problem fixed? Leo
2010-05-01 12:03 ` Carsten Dominik
2010-05-01 16:08   ` Leo
2010-05-01 17:19     ` Carsten Dominik
2010-05-01 21:08       ` Leo
2010-05-08 15:11         ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).