[Top][All Lists]

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

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

From: Kevin Rodgers
Subject: Re: with a fresh emacs "(buffer-local-value fundamental-mode (current-buffer))" error.
Date: Wed, 08 Apr 2009 23:12:51 -0600
User-agent: Thunderbird (Macintosh/20090302)

MON KEY wrote:
Not a bug, there is no variable by that name.

Why not?

The error was not thrown by the buffer-local-value function.  It was
thrown by eval, trying to (recursively) evaluate the fundamental-mode
form, whose result it would then pass as the first argument

(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

You have demonstrated that the major-mode symbol has its value cell set
to the fundamental-mode symbol, and several other facts about the
major-mode symbol.  You have not demonstrated any facts about the
fundamental-mode symbol.

Kevin Rodgers
Denver, Colorado, USA

reply via email to

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