From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
Newsgroups: gmane.emacs.devel
Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode
Date: Tue, 06 Jun 2017 10:45:20 -0400
Message-ID: <jwvlgp5goy7.fsf-monnier+emacs@gnu.org>
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>
	<83y3tw63ap.fsf@gnu.org>
	<1494961376.1006215.978713264.44871586@webmail.messagingengine.com>
	<1495615846.16883.986870960.75A217AB@webmail.messagingengine.com>
	<1496131500.1757184.992543904.7F3B36E0@webmail.messagingengine.com>
	<1496406872.1818733.996544288.4194749A@webmail.messagingengine.com>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: blaine.gmane.org 1496760391 1723 195.159.176.226 (6 Jun 2017 14:46:31 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 6 Jun 2017 14:46:31 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
Cc: jostein@kjonigsen.net, emacs-devel@gnu.org
To: Jostein =?windows-1252?Q?Kj=F8nigsen?= <jostein@secure.kjonigsen.net>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 06 16:46:25 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 1dIFkV-0008Kw-Hf
	for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2017 16:46:23 +0200
Original-Received: from localhost ([::1]:38680 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 1dIFkX-0000m2-UX
	for ged-emacs-devel@m.gmane.org; Tue, 06 Jun 2017 10:46:25 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37460)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <monnier@iro.umontreal.ca>) id 1dIFje-0000Kl-Dg
	for emacs-devel@gnu.org; Tue, 06 Jun 2017 10:45:34 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <monnier@iro.umontreal.ca>) id 1dIFjZ-0006kn-Ii
	for emacs-devel@gnu.org; Tue, 06 Jun 2017 10:45:30 -0400
Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:41391)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <monnier@iro.umontreal.ca>) id 1dIFjZ-0006kL-BH
	for emacs-devel@gnu.org; Tue, 06 Jun 2017 10:45:25 -0400
Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242])
	by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v56EjKYq003832;
	Tue, 6 Jun 2017 10:45:20 -0400
Original-Received: by pastel.home (Postfix, from userid 20848)
	id B450F6017E; Tue,  6 Jun 2017 10:45:20 -0400 (EDT)
In-Reply-To: <1496406872.1818733.996544288.4194749A@webmail.messagingengine.com>
	("Jostein =?windows-1252?Q?Kj=F8nigsen=22's?= message of "Fri,
	02 Jun 2017 14:34:32 +0200")
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 2 Rules triggered
	EDT_SA_DN_PASS=0, RV6039=0
X-NAI-Spam-Version: 2.3.0.9418 : core <6039> : inlines <5908> : streams
	<1748760> : uri <2439157>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 132.204.246.22
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:215472
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/215472>

> One type of conflict is mode-state: For text-based modes I want to
> flyspell enabled, but for programming-related modes I want it disabled.
>
> Another type of conflict is keybindings: I like to plug in languagetool-
> related functionality on keys consistent with what I typically have in
> programming-modes. That means that targets of these bindings for these
> keys differ in text-mode and prog-mode.

It seems to me that those conflicts aren't a real problem for the
combined text+prog mode: the same problems exist with the current setup
when you want prog-mode and you get text-mode (or vice versa), so using
a combined text+prog mode wouldn't make things really worse.

And I don't think there's a really better solution to this problem: you
currently want A for text-modes and B for prog-modes, so for modes which
sit halfway you're going to have to tweak your ~/.emacs to tell Emacs
which of A or B (or yet something else, maybe) you want, no matter how
we make these halfway modes behave.


        Stefan