emacs-devel
[Top][All Lists]
Advanced

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

Re: Problem with doc-view-previous-major-mode


From: Stefan Monnier
Subject: Re: Problem with doc-view-previous-major-mode
Date: Fri, 12 Apr 2013 12:24:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>>> what happens with -Q.  But I have customized the global value of
>>> major-mode to text-mode,
>> Why?
> Because I found that I often wanted to do quick tests in text-mode by
> typing `C-x b a'.

I see.

> Your question suggests suggests that this customization is
> ill-advised;

No.  Customizing default-major-mode has been supported "for ever" and
your use case makes sense, but the way it works makes for some annoying
corner cases, such as the one you've bumped into.

So I'd like to use another mechanism, such that you could still
configure the mode to use for a new buffer created via C-x b, but
without it affecting things like your doc-view case.

> And if it is ill-advised, then major-mode shouldn't be customizable,
> should it?

If I could rewrite history, indeed the default value of major-mode would
not be customizable.


        Stefan



reply via email to

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