From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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 07:47:27 +0200 Message-ID: <78523720-6dc8-459a-9a9d-2af38efdb7da@gutov.dev> References: <83edeww73j.fsf@gnu.org> <83o7dzvrmf.fsf@gnu.org> <838r53vlo5.fsf@gnu.org> <831qavvcbo.fsf@gnu.org> <83bk9wq9ho.fsf@gnu.org> <3C29CB93-925C-4C65-BCEA-6506F2D9E4BD@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39661"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 68246@debbugs.gnu.org, Eli Zaretskii , Stefan Kangas , joaotavora@gmail.com To: Yuan Fu , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 20 06:48:18 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 1rR4DI-000A7R-NA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jan 2024 06:48:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rR4D4-0000PS-6x; Sat, 20 Jan 2024 00:48:02 -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 1rR4D2-0000PD-Ss for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 00:48:00 -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 1rR4D1-0007qh-Ug for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 00:48:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rR4D4-0005eo-Ib for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 00:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jan 2024 05:48: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.170572966221621 (code B ref 68246); Sat, 20 Jan 2024 05:48:02 +0000 Original-Received: (at 68246) by debbugs.gnu.org; 20 Jan 2024 05:47:42 +0000 Original-Received: from localhost ([127.0.0.1]:60693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR4Cj-0005cc-QS for submit@debbugs.gnu.org; Sat, 20 Jan 2024 00:47:42 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR4Ch-0005bo-0d for 68246@debbugs.gnu.org; Sat, 20 Jan 2024 00:47:39 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2EA575C0129; Sat, 20 Jan 2024 00:47:31 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 20 Jan 2024 00:47:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1705729651; x=1705816051; bh=GQipcpCjIpW0rLOFXIHQLglLvY13Q4FyiRU7EYVKYCU=; b= ozB8TDjg/yCB8oz9dEZoWRd6DETlOzgzlnin+qve8GahOrZCfXFbCl2VUjvaz+33 X/KqErN8ibOzslsib8pwhSQA4zUf1evX9BQuGlrVteHKxP9nTFjThXieUyUvQZoH Hdz0ttwjlevdpMGKbpU+4L0+AL2Q/UkwnaxxhmtsH1kLNuM7rMyqRm9oZ34LZh00 I/wMHHlo5pfOiVS/Y3eg6zZLSqfGcwzD1nXzC49gK24bAw1ziJ8RbfarKKZ4mhSI sbGg+jUBc8R7tSDk22sKgZqKtOVpCLJ9aZOpYNcTU3ZRYF8sspQDuseGm7hu6WZr uuvi60/dAcTDE+ea/f7veg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705729651; x= 1705816051; bh=GQipcpCjIpW0rLOFXIHQLglLvY13Q4FyiRU7EYVKYCU=; b=w iO7FdShIy9inmg+DosN4T+Nw3ir2MIkFmJ4ovtXecdqcZMjPYx/4a7xCTplCK+NB cRsyGOrkNYyaKNLmh5y3FhQk0fMkBa7/A1mIy4NDSMmM7bRK6sUwff23xnWxJAMg JRtWGoyGLDsECrns5iOHUEAGYWd7rU7JZZjWF6Bth4MzjvSUjbuhlCIzXhJuNtuB edi3xZlxMZdEwPyxGFtno757Flv3UbPLPXIrg4YkBefZiIQHp6ZcQGzDWwmIU0YV Zd+jR3R1nrHtGxbP5pieOfGRVJuDXBDzaoxNT//59L7509HZhuPGN7eny0jTzjOj uonk8v0+2B4k6PNetdjLw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekuddgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveegtedthefhudekteehffeu keeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jan 2024 00:47:28 -0500 (EST) Content-Language: en-US In-Reply-To: <3C29CB93-925C-4C65-BCEA-6506F2D9E4BD@gmail.com> 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:278557 Archived-At: On 19/01/2024 07:12, Yuan Fu wrote: > >> On Jan 15, 2024, at 6:32 PM, Stefan Monnier wrote: >> >>>> Please don't call it "language". That'd be confusing. LSP is about >>>> programming languages, so "language" is natural there. But in Emacs, >>>> a major mode is more general than that. For example, it is not >>>> unthinkable to consider mail-mode to be the extra-parent of >>>> message-mode (or vice versa) -- but what is the "language" in that >>>> case? >>> Isn't the language for such modes in this paradigm just the empty set? >> I'm not too worried about those cases, indeed. >> I'm more worried about the taxonomy of languages. >> We currently have the taxonomy of major modes, with which we're pretty >> familiar, and we've had many years to learn about its downsides, >> complexity, as well as how to deal with them, but for languages we're >> only familiar with the easy cases, which makes us judge the idea in >> a way that may prove naive. > I don’t have anything insightful to contribute, but want to point out that in Emacs, “language” doesn’t always mean programming language. “Language” can also mean Chinese, English, etc, and Emacs are quite often used for editing natural language text. So it warrants some caution when using “language” to mean programming language specifically. That's a good point. But hopefully when the suffix -lang or -language is used in the symbol name, the preceding word(s) will make it unambiguous. But the mentions of "language" in the documentation would have to be more careful indeed (perhaps we'd call them "content type" after all, and :ruby-lang would be one of the content types).