From: Juanma Barranquero <lekktu@gmail.com>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r108836: Cleanup basic buffer management.
Date: Tue, 3 Jul 2012 17:35:07 +0200 [thread overview]
Message-ID: <CAAeL0SREVrPgbwK25Bs26tCK_1wm1MH=U1Lyu5eKK+PWXqaY_g@mail.gmail.com> (raw)
In-Reply-To: <E1SluYA-0006Vd-1m@vcs.savannah.gnu.org>
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
next parent reply other threads:[~2012-07-03 15:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1SluYA-0006Vd-1m@vcs.savannah.gnu.org>
2012-07-03 15:35 ` Juanma Barranquero [this message]
2012-07-04 11:39 ` [Emacs-diffs] /srv/bzr/emacs/trunk r108836: Cleanup basic buffer management Dmitry Antipov
2012-07-04 11:45 ` Juanma Barranquero
2012-07-04 15:51 ` Dmitry Antipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAeL0SREVrPgbwK25Bs26tCK_1wm1MH=U1Lyu5eKK+PWXqaY_g@mail.gmail.com' \
--to=lekktu@gmail.com \
--cc=dmantipov@yandex.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.