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.devel Subject: Re: Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.] Date: Wed, 29 May 2024 14:43:29 +0300 Message-ID: <63afa31a-7874-4d1f-a17a-14a64ba516cb@gutov.dev> References: <86r0dmtbk2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10971"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , emacs-devel@gnu.org To: Alan Mackenzie , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 29 13:44:27 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sCHjH-0002g2-DB for ged-emacs-devel@m.gmane-mx.org; Wed, 29 May 2024 13:44:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCHiX-0006o0-OP; Wed, 29 May 2024 07:43:41 -0400 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 1sCHiU-0006nU-O7 for emacs-devel@gnu.org; Wed, 29 May 2024 07:43:38 -0400 Original-Received: from wfhigh6-smtp.messagingengine.com ([64.147.123.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCHiS-00048Z-4N; Wed, 29 May 2024 07:43:38 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 7F805180010E; Wed, 29 May 2024 07:43:33 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 29 May 2024 07:43:33 -0400 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=fm3; t=1716983013; x=1717069413; bh=emRygpXc0J2yaZ3VDeKnb0C0sAETJAsL7sWPvA68HYI=; b= f2Vh/ELW2cqQz0vPBvE9AGVvVELbzkVWBUDFXv3gVAHXOG2GI+pWXe0Jm+S4KTe9 Op8du2IdMsoB4aR+kxSnCDSj4HS7giZFEFC4lO0yPXEw6yjqqpeAibyiuwFSVT8A K7JKzJwroAxPIOBT4B/YtonpnY3fNVw09010nYlx8KWh9TkMV0OyWjQfqJ7XPBKR 0f4KziWH9doQSIFJ5D+9Vr+eCZVXeHdBfpsvpamZKuNoh5/hxg1dM/gXb+i/Rzwc vXtgOMsgd5h7GThD+zPl7KOCU/xVMiRemru2Ypt2Sumd1gm1dQkk99rsXW+CJIEG Y7j9009mtvtH8jAOom8ZRw== 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=fm1; t=1716983013; x= 1717069413; bh=emRygpXc0J2yaZ3VDeKnb0C0sAETJAsL7sWPvA68HYI=; b=D MJ4L8sMteQwDUtDqD+mJsuSIyuzAWvF+8dpDSTMepkEf1UZPpY8CoZUTOGfg/9u7 5J9iHrtCvDNKiCqQfGaKGkN30+c8Atj5CDde3DlejniBKGjRAB1lQBmcbcKGnKXp lTpu0z1P/C0vmJyjhpbO+z5431xNQWOAIqfZvgOeb3O9PvH83uUWogk/34ohzIgP kbo7ggK9H8FG1I4fBhYXMMSCpLB6zWCQwLHFZ3FI9k+kzLyxPoE8MgtF9lgvHwDf lDoDrQZo4KEoy6c+5WN4Ttwayz7YgjBjLfvSqKT6/wM2M/zecSC7Qh/pPp68GR0Q D0qcYyB006Dv5DbsD0ELg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekuddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 May 2024 07:43:31 -0400 (EDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=64.147.123.157; envelope-from=dmitry@gutov.dev; helo=wfhigh6-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319682 Archived-At: On 29/05/2024 14:16, Alan Mackenzie wrote: >> I think this is a misfeature of `c-ts-mode.el`, but this was the result >> of a long discussion and I don't think we want to revisit that yet. > Why did nobody involve me in this discussion, considering that the > result involves "stealing" CC Mode users? This behavior is not new: loading a *-ts-mode has been overriding the user preferences since 2023-01-20 (commit 6b2f85caa6). Perhaps your personal customization for auto-mode-alist had been shielding you from the original issue. You can add a similar entry to major-mode-remap-alist.