From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Drew Adams <drew.adams@oracle.com>
Newsgroups: gmane.emacs.devel
Subject: RE: nxml-mode: Derive from prog-mode instead of text-mode
Date: Tue, 16 May 2017 11:19:18 -0700 (PDT)
Message-ID: <93458087-0860-4fcd-9628-dfcf2b231a69@default>
References: <1494412509.2069441.971865104.0646ACD6@webmail.messagingengine.com>
	<8337ccbrar.fsf@gnu.org>
	<1494439153.1311720.972341016.7C2EC66A@webmail.messagingengine.com>
	<83o9v0a66q.fsf@gnu.org>
	<1494487799.3240345.972964808.43DA610E@webmail.messagingengine.com>
	<CAArVCkR+jKEu49=H9CQ6jfhV890DQGfZgdVw9=R0KuDfEc_zVw@mail.gmail.com>
	<87r2zqvmy9.fsf@pokyo>
	<1494930855.4131543.978121176.7BB5246B@webmail.messagingengine.com>
	<CAP_d_8Wpgyp=3CHcQD36voYa7S-AqH6JAkN3ZXBFofitrQbuFA@mail.gmail.com>
	<jwvfug5dmri.fsf-monnier+gmane.emacs.devel@gnu.org>
	<4165ea59-dc7e-4112-95b8-10b766bf0d52@default>
	<877f1gx5b3.fsf@ericabrahamsen.net>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1494958830 19431 195.159.176.226 (16 May 2017 18:20:30 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 16 May 2017 18:20:30 +0000 (UTC)
To: Eric Abrahamsen <eric@ericabrahamsen.net>, emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 20:20:24 2017
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1dAh55-0004qJ-CP
	for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 20:20:23 +0200
Original-Received: from localhost ([::1]:43418 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1dAh5A-0003qC-Tu
	for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 14:20:28 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58107)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@oracle.com>) id 1dAh4K-0003pw-Af
	for emacs-devel@gnu.org; Tue, 16 May 2017 14:19:37 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@oracle.com>) id 1dAh4H-0005Ge-78
	for emacs-devel@gnu.org; Tue, 16 May 2017 14:19:36 -0400
Original-Received: from aserp1040.oracle.com ([141.146.126.69]:43963)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <drew.adams@oracle.com>)
	id 1dAh4G-0005Fr-U0
	for emacs-devel@gnu.org; Tue, 16 May 2017 14:19:33 -0400
Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
	by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with
	ESMTP id v4GIJKE7011173
	(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
	Tue, 16 May 2017 18:19:20 GMT
Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75])
	by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v4GIJJS7001836
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256
	verify=OK); Tue, 16 May 2017 18:19:19 GMT
Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24])
	by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v4GIJJhK027369;
	Tue, 16 May 2017 18:19:19 GMT
In-Reply-To: <877f1gx5b3.fsf@ericabrahamsen.net>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
	12.0.6767.5000 (x86)]
X-Source-IP: userv0022.oracle.com [156.151.31.74]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
	[fuzzy]
X-Received-From: 141.146.126.69
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.devel:214888
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/214888>

> >> > This probably could be unified, too. The big difference here is mode=
s
> >> > that are neither text nor programming =E2=80=94 I call them applicat=
ion modes
> >> > =E2=80=94 such as dired, calendar, or compilation =E2=80=94 because =
they don=E2=80=99t need
> >>
> >> These should supposedly derive from special-mode.
> >
> > Absolutely not, for Dired.  It should not derive from
> > special-mode, tabulated-list-mode, or anything else.
>=20
> I'm curious why not special-mode. My observation of special-mode is
> that it handles: 1) quit, 2) refresh, and 3) unbind everything else.

Quit (`q') and refresh (`g') - that's all.  Oh, and `h' too - but
not `?'.

Like `?', all of the `special-mode' keys besides `q', `g', and `h'
are inappropriate - Dired uses them for other things.

Sure, Dired could override those other bindings, but it makes no
sense to derive from special mode just to get the mundane bindings
for `q', `g', and `h' - providing just `quit-window', `revert-buffer',
and `describe-mode' hardly makes for a "special" mode.

And Dired has its own hooks.  I see no reason for Dired to
respect/use `special-mode-hook'.