From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#10650: view-mode inconsistencies wrt special mode-class Date: Wed, 01 Feb 2012 16:32:23 +0800 Message-ID: <87wr877y3s.fsf@gnu.org> References: <9vehugoa9d.fsf@fencepost.gnu.org> <87pqe08kgs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328085177 9334 80.91.229.3 (1 Feb 2012 08:32:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2012 08:32:57 +0000 (UTC) Cc: 10650@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 01 09:32:56 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RsVcd-0007LE-KB for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2012 09:32:55 +0100 Original-Received: from localhost ([::1]:59808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsVcd-0007su-2j for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2012 03:32:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsVcZ-0007s2-GH for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2012 03:32:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsVcQ-0003d7-Kv for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2012 03:32:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsVcQ-0003cl-EG for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2012 03:32:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RsVcj-0006LU-LH for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2012 03:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Feb 2012 08:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10650 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10650-submit@debbugs.gnu.org id=B10650.132808518024383 (code B ref 10650); Wed, 01 Feb 2012 08:33:01 +0000 Original-Received: (at 10650) by debbugs.gnu.org; 1 Feb 2012 08:33:00 +0000 Original-Received: from localhost ([127.0.0.1]:48126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsVch-0006LD-8k for submit@debbugs.gnu.org; Wed, 01 Feb 2012 03:32:59 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:39446 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsVce-0006L4-DL for 10650@debbugs.gnu.org; Wed, 01 Feb 2012 03:32:57 -0500 Original-Received: from [155.69.17.225] (port=40800 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RsVcH-0004X8-Ae; Wed, 01 Feb 2012 03:32:34 -0500 In-Reply-To: (Glenn Morris's message of "Wed, 01 Feb 2012 02:38:05 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56340 Archived-At: Glenn Morris writes: > Stefan Monnier wrote: > >>> 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. >> >> Then again, doc-view-mode is a special mode even though the PDF code is >> rarely if ever generated by Emacs. > > I interpret special modes as being applicable to stuff where you won't > ever want to create an empty buffer and just start writing said stuff. > That covers PDFs, tar files, dired buffers, etc. > > Personally I think a separate variable controlling which modes are > incompatible with view-mode would be better, but I'm not going to > complain if the definition of special modes is extended to cover this. I changed view-buffer-other-* to behave like view-buffer. (Could have changed view-mode-enter instead, but that is called from other placed in Emacs so it didn't seem worth the risk.)