From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey <tom@tromey.com> Newsgroups: gmane.emacs.devel Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode Date: Sun, 14 May 2017 21:05:50 -0600 Message-ID: <87r2zqvmy9.fsf@pokyo> 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> 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 1494817585 28716 195.159.176.226 (15 May 2017 03:06:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 May 2017 03:06:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Eli Zaretskii <eliz@gnu.org>, jostein@kjonigsen.net, emacs-devel@gnu.org To: Philipp Stephani <p.stephani2@gmail.com> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 15 05:06:21 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 1dA6Kz-0007Mx-1E for ged-emacs-devel@m.gmane.org; Mon, 15 May 2017 05:06:21 +0200 Original-Received: from localhost ([::1]:34581 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 1dA6L4-0003Tw-H0 for ged-emacs-devel@m.gmane.org; Sun, 14 May 2017 23:06:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <tom@tromey.com>) id 1dA6Ky-0003Te-2E for emacs-devel@gnu.org; Sun, 14 May 2017 23:06:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <tom@tromey.com>) id 1dA6Ku-0005O2-42 for emacs-devel@gnu.org; Sun, 14 May 2017 23:06:20 -0400 Original-Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:33585 helo=gproxy8.mail.unifiedlayer.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <tom@tromey.com>) id 1dA6Kt-0005Ld-Qy for emacs-devel@gnu.org; Sun, 14 May 2017 23:06:16 -0400 Original-Received: from cmgw2 (unknown [10.0.90.83]) by gproxy8.mail.unifiedlayer.com (Postfix) with ESMTP id BA6B51AB139 for <emacs-devel@gnu.org>; Sun, 14 May 2017 21:05:56 -0600 (MDT) Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id LT5s1v00M2f2jeq01T5vq9; Sun, 14 May 2017 21:05:56 -0600 X-Authority-Analysis: v=2.2 cv=Ibz3YSia c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=IkcTkHD0fZMA:10 a=tJ8p9aeEuA8A:10 a=pGLkceISAAAA:8 a=UBcaEof0NAMUJL8PYt0A:9 a=QEXdDO2ut3YA:10 a=6kGIvZw6iX1k4Y-7sg4_:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=GVYMP0iSotsc5NspslO7SlGu/y3fELBvq5hKOmqO0yI=; b=NtzTsIUR3fSD0RgYBBiriy+aCk IN8EmmmAytP+yxS3bbV/ZiyjKPRFWHg9IpM4EZiUU+uKu/eP8O/VHt1SaGoyal7trWyrdzDDnKQ9B G9DJ8J/GyVebsLe5kYWfrRmGP; Original-Received: from 75-166-63-71.hlrn.qwest.net ([75.166.63.71]:48656 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from <tom@tromey.com>) id 1dA6KW-0008BJ-7L; Sun, 14 May 2017 21:05:52 -0600 X-Attribution: Tom In-Reply-To: <CAArVCkR+jKEu49=H9CQ6jfhV890DQGfZgdVw9=R0KuDfEc_zVw@mail.gmail.com> (Philipp Stephani's message of "Sun, 14 May 2017 19:28:45 +0000") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.63.71 X-Exim-ID: 1dA6KW-0008BJ-7L X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-63-71.hlrn.qwest.net (pokyo) [75.166.63.71]:48656 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.222.33.93 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:214854 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/214854> >>>>> "Philipp" =3D=3D Philipp Stephani <p.stephani2@gmail.com> writes: Philipp> prog-mode is more of an implementation detail than an API. I don't think that's correct. For example, the emacs manual recommends it to users: In particular, if you want to apply a hook function to any programming language mode, add it to =E2=80=98prog-mode-hook=E2=80=99; = Prog mode is a major mode that does little else than to let other major modes inherit from it, exactly for this purpose. Tom