[Top][All Lists]

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

`comment-start' is nil

From: lee
Subject: `comment-start' is nil
Date: Wed, 12 Mar 2014 22:37:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)


I´m using desktop-mode to restore the previous session when starting
emacs.  For some buffers that are restored this way, I´m using a mode
I´m working on.  This mode employs a function to search for a regex in
particular buffers.  The regex involves `comment-start'.

Unfortunately, at the time the function is running during start-up, the
value of `comment-start' is nil.

    (let ((end-marker (concat "^" comment-start 
        (message "comment-start with %s is %s"
           comment-start) ...)

gives me messages like "comment-start with test-plane.fontify is nil".
Calling the same function later works fine because `comment-start' isn´t
nil anymore.

Is it supposed to be like this, or is it a bug that `comment-start' is

I could work around it by setting `comment-start' to "# ", or by
omitting it, when it´s nil, but if it´s a bug, it should rather be
fixed ...

Knowledge is volatile and fluid.  Software is power.

reply via email to

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