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: Mon, 8 Jan 2024 11:11:31 +0000 Message-ID: References: <83edeww73j.fsf@gnu.org> <83o7dzvrmf.fsf@gnu.org> <838r53vlo5.fsf@gnu.org> <831qavvcbo.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="40413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68246@debbugs.gnu.org, Eli Zaretskii , casouri@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 08 12:12:13 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 1rMnYC-000AEo-0Z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Jan 2024 12:12:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMnY1-00051p-5T; Mon, 08 Jan 2024 06:12:01 -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 1rMnXx-00051M-7g for bug-gnu-emacs@gnu.org; Mon, 08 Jan 2024 06:11:57 -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 1rMnXw-00055N-1Q for bug-gnu-emacs@gnu.org; Mon, 08 Jan 2024 06:11:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMnY2-00024U-3e for bug-gnu-emacs@gnu.org; Mon, 08 Jan 2024 06:12: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: Mon, 08 Jan 2024 11:12: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.17047123177924 (code B ref 68246); Mon, 08 Jan 2024 11:12:02 +0000 Original-Received: (at 68246) by debbugs.gnu.org; 8 Jan 2024 11:11:57 +0000 Original-Received: from localhost ([127.0.0.1]:35334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMnXw-00023i-K3 for submit@debbugs.gnu.org; Mon, 08 Jan 2024 06:11:57 -0500 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:51306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMnXv-00023R-NT for 68246@debbugs.gnu.org; Mon, 08 Jan 2024 06:11:56 -0500 Original-Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2ccbbb5eb77so18211291fa.2 for <68246@debbugs.gnu.org>; Mon, 08 Jan 2024 03:11:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704712303; x=1705317103; 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=/h4oGHKucrF8D/B6bkdqJUI9s0YwckqzGVRBScfq2a8=; b=cm82UAjtCqTleI+7pur2kI2JcaMuFbxMTj9HAYoBaDwAMpEfiBvAmuL1BOyZ+dNkAX gSRYgty+0POSBLbzcyCYhgnvyIKTYEE7JxK658UnDqEGGjCiwAUF+Bpz3tR+0iHFAl+X nVJ8UIJTsLEKl6cllHwHOUVVWznI1u4AGBdw59SSbXxGA/KEDOfKr2Cx6sSvD0E6/OFl yZb/uCnsU4gY12Dawo2VHbn5omhOujr2wo8LWM/DjfZhJrk2sZD8yNJE02evho7FDHC7 YApFGr7xR7ZH6kK31h+xxIN60sLRQjb/+xwGKNFSnv4Y3qd9a8FmPywx2RYOAgl4uLOR iigQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704712303; x=1705317103; 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=/h4oGHKucrF8D/B6bkdqJUI9s0YwckqzGVRBScfq2a8=; b=F5L2jO13CpNxf8oNf2Vmo7KQfZkDTcRsEq6zwYyazMPkKttZiDF/J2YTHmV6RO5nAX bugUBcTxJon1TYWMalTVhoQ9Pi4bxtSkeEjGlVaJ0qc32bd/mJ3wsp8zp3pNtoW6nW3h +AW56cieVSQoaKL2UWh44JPo6UshciriyzQ+Q+Qrq3OQ7qrNKewlp5XZoB0R8iyQzPu3 HyxceL+mKHHMaCNKJEX9dMLHJU8OY2aYhE2x6HBDjYKoQNCTFoARbNsJLODfFlVsH5k1 DxP/6KEcuAtcAV56Iqt+GGgp6ZOm+9YHlOd+X6TOWOjNwbAyTFb5T9zgpcvcrbc0T/p/ jK0A== X-Gm-Message-State: AOJu0YyMoEw9MsOonWf4w9rR1hngjzXnCNdGuw5sF2Me6UYAz995r+Yu blJaQIZwCkFedg9nFBZHtzJ+vox+piTW2dss97Q= X-Google-Smtp-Source: AGHT+IHYjEpkKjOekKrRx8uZORZOmrVE+Hv7L7ZMvnGz8hdBIXFFEOI01rSWul41gT6VqwKlrn91POeUg5+ZyhQ8ac0= X-Received: by 2002:a2e:be08:0:b0:2cd:56d9:762c with SMTP id z8-20020a2ebe08000000b002cd56d9762cmr552451ljq.66.1704712303432; Mon, 08 Jan 2024 03:11:43 -0800 (PST) In-Reply-To: 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:277547 Archived-At: On Mon, Jan 8, 2024 at 4:11=E2=80=AFAM Stefan Monnier wrote: > > > (set-language-for-mode 'foo-ts-mode 'foo) > > Maybe we want to introduce this concept, indeed. > > maybe we want to that notion of "language" from elsewhere, such as > the one used in LSP? > Or maybe we want to take it from MIME types? > I'm sure there are other options out there. I've seen the LSP list gain traction lately, granted in the M$ orbit. I don't think MIME would be a bad choice either, we should definitely use that if we s/language/file-type. > Problem is: they come with their own complexities and corner cases. > After all, this is inevitable when you create a taxonomy. Yes, sure. But they have they have the fundamental property of simpler graphs (trivial in the case the LSP list). No "extra parents" there :-) IOW they solve the fundamental conflation problem. > IOW, while we *may* want to add support for an explicit notion of "file > type", it's a whole problem in itself and it will not solve all > our problems either. I think it would solve the ones I found. Say if set/get-mode-file-type is added, it may just return a string designating a MIME type. We don't necessarily have to give it special interpretation anywhere but where we feel it's useful. > In the mean time, I think `derived-mode-add-parents` is worth a try. > As mentioned in some message up-thread, I'm not 100% confident that it > won't introduce serious breakage. But I think we do need more > experience and installing my patch is a good way to do that. I presume you've understood my misgivings, so go ahead. I'll leave it up to you guys to decide if docstring changes are needed in e-s-p or *Help* as someone suggested. Jo=C3=A3o