From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.] Date: Thu, 30 May 2024 17:56:26 +0300 Message-ID: <86ed9jqrfp.fsf@gnu.org> References: <86r0dmtbk2.fsf@gnu.org> <867cfbswfg.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39356"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 30 16:57:32 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 1sChDg-0009zy-DC for ged-emacs-devel@m.gmane-mx.org; Thu, 30 May 2024 16:57:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sChCv-0001j4-If; Thu, 30 May 2024 10:56:45 -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 1sChCu-0001iu-Bq for emacs-devel@gnu.org; Thu, 30 May 2024 10:56:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sChCt-0002e2-0f; Thu, 30 May 2024 10:56:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LQsCxCgDAKsgO1h+sjF+/xZr4gEnAL1oENGza+eFt9o=; b=iXxOHmmKH143 ZrvN51k9okHHMaT5C0HX1YeIaVNq8F6jKGig2MDwjhOQjnKH7zlSO3y0vavpgsXPecScJeVLaZPkS 1I8qZvEwdKDI51KoX+c5lYeW5DDpAdgdUwRwvFeb5IyLjEC9s/0VBRPOEEAtz4mMvFNzIP0jHUfju AOdP0D9cS2lYpnmsTXLugvovIG0Uanhlu1LZZZUSLmC7fOxLRtTEpEbb0SEMQxwdnfB4x1hvHT7Is wtT5QcdaYdKvgPHNH4qEYIvvK7AiJvFW+xyPv/XucCaeekbaCBcbZ+au13pVxGOfobIxXT6lu7FRU dxMv2lCLpq2aT1NV2WO+zQ==; In-Reply-To: (message from Stefan Monnier on Thu, 30 May 2024 10:18:49 -0400) 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:319752 Archived-At: > From: Stefan Monnier > Cc: acm@muc.de, emacs-devel@gnu.org > Date: Thu, 30 May 2024 10:18:49 -0400 > > >> Otherwise, it's impossible for two users who have different preferences > >> to share that file. > > How do I force the use of a specific mode when more than one can > > handle the file? It is possible that the file relies on some features > > specific to that mode, so such use cases are not outlandish. > > AFAICT it is a lot more common for file-local vars to be abused to > specify mere user preferences, than the reverse (i.e. where there really > is a technical reason why the file should be edited with js2-mode rather > than js-mode). "More common", maybe. But that doesn't mean the other case doesn't exist or is not legitimate.