From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#68246: 30.0.50; Add non-TS mode as extra parent of TS modes Date: Sat, 20 Jan 2024 10:16:45 +0000 Message-ID: References: <83h6joqz0t.fsf@gnu.org> <834jfoq86m.fsf@gnu.org> <831qarrbjx.fsf@gnu.org> <87a5p84nlh.fsf@gmail.com> <83edekfldq.fsf@gnu.org> <8e6935bc-2a60-4a14-8e63-d6057a7e2af7@gutov.dev> <1a0802a1-7c25-4188-9984-f54b0e56ab5e@gutov.dev> <83bk9gv640.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68246@debbugs.gnu.org, Dmitry Gutov , Yuan Fu , Stefan Monnier , Stefan Kangas To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 20 11:18:16 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rR8QZ-0004QP-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jan 2024 11:18:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rR8QN-00066N-SN; Sat, 20 Jan 2024 05:18:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rR8QL-000668-UI for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 05:18:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rR8QJ-0001vH-IZ for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 05:18:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rR8QM-0002go-9R for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 05:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jan 2024 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68246 X-GNU-PR-Package: emacs Original-Received: via spool by 68246-submit@debbugs.gnu.org id=B68246.17057458299807 (code B ref 68246); Sat, 20 Jan 2024 10:18:02 +0000 Original-Received: (at 68246) by debbugs.gnu.org; 20 Jan 2024 10:17:09 +0000 Original-Received: from localhost ([127.0.0.1]:32916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR8PU-0002Xq-ES for submit@debbugs.gnu.org; Sat, 20 Jan 2024 05:17:08 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:60755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR8PR-0002Si-Rm for 68246@debbugs.gnu.org; Sat, 20 Jan 2024 05:17:06 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2cddb2c2b54so15986581fa.1 for <68246@debbugs.gnu.org>; Sat, 20 Jan 2024 02:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705745817; x=1706350617; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YZWyZAaWn0y6kxphM6J1NakFrgByWeF5NjheP1+kg2k=; b=OGlHEO6FdVQIoSIJQ6PckZa5ia7V96QsR78LWaxIwMDDSaxe2xCZhATksjX1LQbPvk uAzqSE0vH+3zZVo5O5GbIeddwKdVeFOS3aEvK9bG44kKvyHgxIeR/vI1HID2ha9pDNq/ NDvSa/NaRNaF7OAZ/FRS9G+4Zc+2ZguZP+BfVpyM3mLKsJAezUv4EttN08kHde7fZw4w 8Cs5mAqZcnRuIPmj3OcEIR2t29p4FkRgEiLfi8PJePXyunoBjYiO5zQfvz0GMp6utY0G fJPzRVLYNL+thAMX9/yZ447mbSm9t59i02S0Jf68FT7Le8l79M0xs6T8wT2dQRMS4Mcs TfgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705745817; x=1706350617; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YZWyZAaWn0y6kxphM6J1NakFrgByWeF5NjheP1+kg2k=; b=eVZZda12Eht6y1vSXuyjehAQ3qn5nfpx2L9j7k788uvXSeb6aOAGgxYb97407bN3fm vMY+pKSk691puALK6x2YWNSq1PCeEuOIUScTx5vH09H1fi1Uql8+KSgHRNS5doUFakRf ooFQwHWWCma4raP53dp7mIF03hH1PQSb5MJ7bS6auuLNa5tTaYUnzBttLne1Q2HMVmRd N8oJOPfdGc8xa6Uo2P01KGQgHuiQjwUB193qMC8lg1epaW3XDHVaugtzzzTN69Uvypj4 zJmVpt61710cyM2mKTdW4ein7qB4WzbLwpPNsJmadr+9sgA9tRU0R4B+zclP+UPqFUgv an2A== X-Gm-Message-State: AOJu0YwrVI5PT6SE+A7CwFaRR+0focL/gdJLHd7IfIxZTX0XS9v2sZNw 9qcZxxTL9mZOuR4W/QcsrRpFuqJVYrSGMYb0d+7Y2GPMC78ODE9sgPVz0jRgsMPUu+egw8aiWac eZq0DcRBM0PODZ7fLGAU7PnES1hY= X-Google-Smtp-Source: AGHT+IHP9sJ3ZNLhkOIsZbcgLmIC/6nKHWuerOcXykgnKGmTSgpw19ST2jfwogu76S/QnPTLA4XKrQNGsxvFMaXn77Y= X-Received: by 2002:ac2:4890:0:b0:50e:30b3:b8ff with SMTP id x16-20020ac24890000000b0050e30b3b8ffmr480188lfc.16.1705745816696; Sat, 20 Jan 2024 02:16:56 -0800 (PST) In-Reply-To: <83bk9gv640.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278588 Archived-At: On Sat, Jan 20, 2024, 07:04 Eli Zaretskii wrote: > > After it lands, derived-mode-p will cease to mean "A derived > > from B via defined-derived-mode, so you can trust hook for B > > runs in hook for A and a lot of other things". It will mean > > something else. > > Indeed, and it was not meant to mean what you suggest it should mean. Then pray tell. What will it mean exactly? This patch has no doc yet (last I saw). > > * if it lands, we should document very well what that new meaning > > of "-mode" is. Also make some "provided-mode-walk-parents" > > so that at least problem 2 can be solved, by string-matching > > the symbol name of what will now be an even more enshrined > > convention. As to problem 3, maybe, it can be written off to > > "major-mode-remap-alist" (which I doubt will ever see much > > adoption) > > Feel free to suggest improvements and clarifications to the > documentation in these matters. I don't understand the vision behind this patch. It has do doc yet. Despite your attempts to wrap this up and shut me up I'm trying to at least converse with the author to expound it. Often it's when trying to explain something in plain English that to see how suitable it is. > > * if it doesn't land, we should look at some solution that solves > > 1 2 and 3 cleanly. I think Dmitry's patch is a decent start. > > Since it will land, there's no need yet to look for alternatives. If you've already decided that, just install it and save us all some time. > We will consider alternatives or other ways to fix this when > we have data I've given you data: at least Eglot and markdown mode have brittle hacks this patch does nothing for. You have chosen to ignore it. Also I've explained how potentially dangerous this patch is to Eglot customizations. > We already use base modes where it makes sense. It sounds like your > opinion is that we should use it much more radically, with which I > disagree and will object to introduction of base modes that server no > useful purpose by themselves. So solving the common language-detection problem, deduplicating hooks and dir-locals is not serving a purpose "by oneself"? Indeed you make up an undefined high bar of "by oneselfness" you get to choose what clears it and doesn't. But it doesn't make your argument an argument. Jo=C3=A3o