* 'comment-search-forward' fails when 'comment-use-global-state' is nil
@ 2013-05-14 11:40 Thorsten Jolitz
0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2013-05-14 11:40 UTC (permalink / raw)
To: help-gnu-emacs
Hi List,
this is a valid comment in message-mode
,------------
| > * comment
`------------
and with point at the beginning of this line,
,---------------------------------------------
| M-: (comment-search-forward (line-end-position))
`---------------------------------------------
should do this
,------------------------------------------------------------------
| Find a comment start between point and LIMIT.
| Moves point to inside the comment and returns the position of the
| comment-starter.
`------------------------------------------------------------------
This works for me in this buffer while I'm writing this email, but does
not work anymore if I copy the content of this buffer to a temporary
edit-buffer and set that buffer to message-mode.
Some debugging revealed that the difference between the two (apparently
equal) situations is that in the message buffer I write this email in,
'comment-use-global-state' is 't', while in the temporary edit-buffer in
message-mode the variable's value is 'nil', and the comment line is not
recognized any more by 'comment-search-forward'.
Now I wonder how this difference can be explained, and how I can work
around it. I did not encounter this problem with temporary edit buffers
set to emacs-lisp-mode or picolisp-mode e.g., in that cases
'comment-search-forward' worked as expected.
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-14 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 11:40 'comment-search-forward' fails when 'comment-use-global-state' is nil Thorsten Jolitz
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).