[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r108836: Cleanup basic buffer man
From: |
Dmitry Antipov |
Subject: |
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r108836: Cleanup basic buffer management. |
Date: |
Wed, 04 Jul 2012 15:39:59 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
On 07/03/2012 07:35 PM, Juanma Barranquero wrote:
Before 108836, this worked:
(setq-default major-mode (lambda () ...))
(find-file ...)
Now it fails; major-mode gets assigned some bogus value.
This is what I was using, BTW:
(setq-default major-mode
(lambda ()
(if buffer-file-name
(fundamental-mode)
(let ((buffer-file-name (buffer-name)))
(set-auto-mode)))))
but just
(setq-default major-mode (lambda () (fundamental-mode)))
is enough to show the problem.
I tried both 24.1 and trunk revision 108858, and both behaves identically:
1) Start a fresh instance
2) Staying in *scratch*, eval:
(setq-default major-mode (lambda () (fundamental-mode))) => (lambda (nil)
(fundamental-mode))
3) M-x describe-variable, enter 'major mode' =>
major-mode is a variable defined in `C source code'.
Its value is lisp-interaction-mode
Original value was fundamental-mode
Local in buffer *scratch*; global value is
(lambda nil
(fundamental-mode))
[etc...]
Dmitry