[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `comment-start' is nil
From: |
Juanma Barranquero |
Subject: |
Re: `comment-start' is nil |
Date: |
Wed, 12 Mar 2014 22:56:25 +0100 |
On Wed, Mar 12, 2014 at 10:37 PM, lee <lee@yun.yagibdah.de> wrote:
> 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
> lsl-hi-lock-patterns-end-marker)))
> (message "comment-start with %s is %s"
> (buffer-name)
> 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.
We'll need more information. It is a major mode or a minor mode? If a
minor, which major mode are these buffers? How it is your function run
during the startup? How does the function get the buffer to run into?
Etc, etc.
J