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 00:12:50 +0000 Message-ID: References: <83edeww73j.fsf@gnu.org> <83o7dzvrmf.fsf@gnu.org> <838r53vlo5.fsf@gnu.org> <831qavvcbo.fsf@gnu.org> <83a5phskd5.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="16335"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68246@debbugs.gnu.org, casouri@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 08 01:14:53 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 1rMdI5-0003yS-3J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Jan 2024 01:14:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMdHC-00060n-Pw; Sun, 07 Jan 2024 19:13:58 -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 1rMdHB-00060W-3p for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2024 19:13: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 1rMdHA-0000KL-Ro for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2024 19:13:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMdHG-0004Jh-Bh for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2024 19:14: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 00:14: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.170467279716534 (code B ref 68246); Mon, 08 Jan 2024 00:14:02 +0000 Original-Received: (at 68246) by debbugs.gnu.org; 8 Jan 2024 00:13:17 +0000 Original-Received: from localhost ([127.0.0.1]:34085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMdGW-0004Ic-Pr for submit@debbugs.gnu.org; Sun, 07 Jan 2024 19:13:17 -0500 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:43312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMdGV-0004IO-4w for 68246@debbugs.gnu.org; Sun, 07 Jan 2024 19:13:15 -0500 Original-Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2cd04078ebeso20305151fa.1 for <68246@debbugs.gnu.org>; Sun, 07 Jan 2024 16:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704672783; x=1705277583; 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=D9acduHLhXD4qkhTWAlLkwL3jxXUWOcu8/nONW1MWRs=; b=aNzFgnbKGlOf5FJCdt63Cpj0KDmyD+wN8DsLh3bt0YJNiaFco5N8as6C1mFgj8foAq A8m48BInGcCeBSaaqUQt1Uf0hyVv6MwWOGV4pMpb4ZbzmKwti9UyGAXe7OhdG1iFU7K2 0Iy5/YCcwwVGn4RJtrw+pxWHPtQhl4NVscA7M/dyaL5hf8zwao+ujtstRBnzfmcib7/c A5cGe/4qALJQavuahm/ph9bcq65gB5Qo3TQNb/iTZWNqIKwt7R/Zt8CGS73AiS8BcWPe QrLsL/Fx8V5B3v8PIbaOtdB+AeFe59HYsguTBJrTmKV5mlqNbD+TvPMWf0aitNnA5S5V 25QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704672783; x=1705277583; 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=D9acduHLhXD4qkhTWAlLkwL3jxXUWOcu8/nONW1MWRs=; b=CPAOSlmCMKMHqEy6WJXy9OtFa37s8YDaVB+2zeezTkNu4/3L4Qm7bVUOK/LalMXVwX 8Ssd3lSmTbU9b+lhpJFjvIKFcYEZ9jf9MwmZxWBC46V3MKZjMvkBqwKX8ytVnMaqSKKW en3z8bYoR43XRszX7bScFE+53EYXAZ1IRMSyhVWbjN4B4lWEZId06dA+mr3p4EKM0kdN Lybi64sOFB0n7i6kgtDWj88tgzDs41tCr9Taq7oiUDiMJXvUnNTiNGlJ3R4aPNtH04H0 a+St1Bk6idKePZaJLb89XdAenLS0nrkaP0kH+eTzdzACuOZMX+4TjPn2qc+AxGO8mx6+ 2YJQ== X-Gm-Message-State: AOJu0YwzWA+dtjluLXIBxr935b0Kush/60o7eCeKlFobla7xt3eKt4BU C3GIGkk72V4QKmI3tjYPnSxLyKMTeOZbZ/2HWEU= X-Google-Smtp-Source: AGHT+IFV7dYIgVyLxOWhQqWjsA4JOLcXDbcThnFnCHpMGbck3XDzKq9y55nA3P2EeZDDypdsoIoLzFoYbJ4bCjJHZ3w= X-Received: by 2002:a2e:3c04:0:b0:2cc:f41d:9805 with SMTP id j4-20020a2e3c04000000b002ccf41d9805mr1412117lja.7.1704672782991; Sun, 07 Jan 2024 16:13:02 -0800 (PST) In-Reply-To: <83a5phskd5.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:277526 Archived-At: On Sun, Jan 7, 2024 at 6:55=E2=80=AFAM Eli Zaretskii wrote: > But that is not necessarily true in all cases. I specifically said I was speaking for 2 packages I created, Eglot and Yasnippet, and possibly for lsp-mode how is facing the same problem, which is answering the question: what, if any, is the language/file type for a given major mode? I can't speak to those other cases unless someone bring them forth. > Also, some major modes don't have a "language" attribute, in > the usual sense of that word. Then I guess "nil" would be a fine default for anything not inheriting from "prog-mode"? Or s/language/filetype if you prefer. Dmitry said a language database is missing. Stefan mentioned the problem of conflation of file ty= pes and major modes in Emacs. I agree with both, so I thought of a simple solution composed of a getter and a setter. > IOW, this is IMO an even more leaky abstraction than what we get with > derived-mode-add-parents. We don't seem to share the same concept of what a "leaky abstraction" is. In my world, it's an abstraction that exposes details of the thing it's supposed to abstract away. Unless we're trying to abstract away lisp symbols, I don't see how set/get-language-for-mode is leaky. But if Stefan's patch is supposed to also abstract away the language-mode correspondence, it's definitely exposing details of how it does it, which is via "extra parenting". Jo=C3=A3o