From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode Date: Tue, 16 May 2017 17:50:57 -0400 Message-ID: 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> <87r2zqvmy9.fsf@pokyo> <1494930855.4131543.978121176.7BB5246B@webmail.messagingengine.com> <83y3tw63ap.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494980402 15997 195.159.176.226 (17 May 2017 00:20:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 May 2017 00:20:02 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 17 02:19:58 2017 Return-path: 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 ) id 1dAmh4-0003xt-82 for ged-emacs-devel@m.gmane.org; Wed, 17 May 2017 02:19:58 +0200 Original-Received: from localhost ([::1]:44672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAmh6-00056P-Hi for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 20:20:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAmgn-00055v-Gl for emacs-devel@gnu.org; Tue, 16 May 2017 20:19:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAmgl-0006dC-4X for emacs-devel@gnu.org; Tue, 16 May 2017 20:19:41 -0400 Original-Received: from [195.159.176.226] (port=60205 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAmgk-0006cR-Ty for emacs-devel@gnu.org; Tue, 16 May 2017 20:19:39 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dAkQq-0000zG-KJ for emacs-devel@gnu.org; Tue, 16 May 2017 23:55:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:1Z+wu++u9+2lRi7PBqkp99/Ff98= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214896 Archived-At: > Beware: you are shifting the focus of this discussion from nxml-mode > and its ilk, which was the original issue, to an almost completely > unrelated one. There be a lot of unrelated bikeshedding (which > actually already began). I think the best option is to create a new structured-text-mode which inherits from both text-mode and prog-mode (and then have nxml-mode inherit from that mode). Those users who want to enable some functionality in text-mode but not in structured-text-mode can always use (derived-mode-p 'structured-text-mode) in the hook function. Stefan