emacs-devel
[Top][All Lists]
Advanced

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

Re: with a fresh emacs "(buffer-local-value fundamental-mode (current-b


From: MON KEY
Subject: Re: with a fresh emacs "(buffer-local-value fundamental-mode (current-buffer))" error.
Date: Wed, 8 Apr 2009 22:22:28 -0400

>
> Not a bug, there is no variable by that name.
>

Why not?

(local-variable-if-set-p 'major-mode) => t
(eq major-mode 'fundamental-mode) => t
(equal major-mode 'fundamental-mode) => t
(symbol-value 'major-mode) => fundamental-mode
(assoc-default 'major-mode (buffer-local-variables)) => fundamental-mode



On Wed, Apr 8, 2009 at 6:15 PM, Jason Rumney <address@hidden> wrote:
> MON KEY wrote:
>>
>> Is this a bug, or am I missing something?
>>
>> (buffer-local-value fundamental-mode (current-buffer))
>>
>> throws an error
>
> Not a bug, there is no variable by that name.
>
>> This behavior happens with minor and major modes.
>>
>
> As you observed with longlines-mode, it does not happen with minor-mode
> variables once they have been loaded and the variable is known to Emacs.
>
>




reply via email to

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