[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: |
Juanma Barranquero |
Subject: |
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r108836: Cleanup basic buffer management. |
Date: |
Tue, 3 Jul 2012 17:35:07 +0200 |
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.
Setting major-mode to a lambda expression is undocumented, and the
workaround for my problem is just adding a defun, so this is not
exactly a bug report. But perhaps you'll want to check whether the
change has other subtle implications.
Juanma
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r108836: Cleanup basic buffer management.,
Juanma Barranquero <=