unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10650: view-mode inconsistencies wrt special mode-class
@ 2012-01-30  9:05 Glenn Morris
  2012-01-30 20:10 ` Glenn Morris
  2012-01-31  1:49 ` Stefan Monnier
  0 siblings, 2 replies; 17+ messages in thread
From: Glenn Morris @ 2012-01-30  9:05 UTC (permalink / raw)
  To: 10650

Package: emacs
Version: 24.0.93
Severity: minor

emacs -Q
M-x view-file RET /path/to/old/rmail/BABYL/file RET
-> "Not using View mode because the major mode is special"

but:
emacs -Q
M-x view-file-other-window RET /path/to/old/rmail/BABYL/file/RET
-> buffer opened in view mode.

This is a silly inconsistency. The test for special mode class was
already generalized (bug#5513) from view-file to view-buffer, but none
of the other view-mode commands (view-file-other-window,
view-file-other-frame, view-buffer-other-window,
view-buffer-other-frame) use view-buffer, so this doesn't affect them.

The check should probably be moved to view-mode-enter. This is used in a
handful of places outside view.el, so maybe an optional argument to
control the check will be needed.

When this is done, view-mode will treat special mode class consistently,
so it can be documented in the manual (the relation between view-mode
and special modes does not seem to documented at present). See the Emacs
24 etc/NEWS entry for view buffer.





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-02-02 21:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30  9:05 bug#10650: view-mode inconsistencies wrt special mode-class Glenn Morris
2012-01-30 20:10 ` Glenn Morris
2012-01-30 23:29   ` Juri Linkov
2012-01-31  0:38     ` Glenn Morris
2012-01-31  1:49 ` Stefan Monnier
2012-01-31  2:50   ` Glenn Morris
2012-01-31  6:17     ` Chong Yidong
2012-01-31 17:37       ` Stefan Monnier
2012-02-01  7:38         ` Glenn Morris
2012-02-01  8:32           ` Chong Yidong
2012-02-01 17:15             ` Glenn Morris
2012-02-01 14:31           ` Stefan Monnier
2012-02-01 17:12             ` Glenn Morris
2012-02-02  0:40             ` Juri Linkov
2012-02-02 18:49               ` Stefan Monnier
2012-02-02 20:03                 ` Glenn Morris
2012-02-02 21:11                   ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).