GNU bug report logs -
#10650
view-mode inconsistencies wrt special mode-class
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Mon, 30 Jan 2012 09:06:01 UTC
Severity: minor
Found in version 24.0.93
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Glenn Morris <rgm <at> gnu.org> writes:
> AFAIK, the only documented meaning of special mode-class is:
>
> If the default-value of major-mode is nil, then creating a new buffer
> inherits the major-mode of the previously current buffer UNLESS that
> buffer has a special mode-class, in which case the new buffer gets
> fundamental mode. (Doesn't seem a very useful feature to me.)
The Lisp manual (node Basic Major Modes) says:
Special mode is a basic major mode for buffers containing text
that is produced specially by Emacs, rather than from a file.
That's the reason that special modes are never inherited when you make a
new buffer, even if major-mode has a nil default value. The major mode
itself is not useful without other special "stuff" done by Emacs to
populate or process the buffer.
Unfortunately, this meaning tends to get obscured by the contents of
special-mode-map, where we've tried to "helpfully" set up keybindings
like "q" for quit-window. But this is mostly tolerable.
I think view-file is right not to enable View mode for special mode, and
view-file-other-window/view-file-other-frame should be fixed up
similarly. As for view-buffer, it is OK as is.
This bug report was last modified 13 years and 108 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.