From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu 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 22:33:57 +0800 Message-ID: <87a5k79xnu.fsf@yahoo.com> References: <86r0dmtbk2.fsf@gnu.org> <867cfbswfg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="617"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 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:35:14 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 1sCgs6-000AT7-A7 for ged-emacs-devel@m.gmane-mx.org; Thu, 30 May 2024 16:35:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCgrB-0007IY-G6; Thu, 30 May 2024 10:34:17 -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 1sCgr8-0007I3-FQ for emacs-devel@gnu.org; Thu, 30 May 2024 10:34:14 -0400 Original-Received: from sonic316-20.consmr.mail.ne1.yahoo.com ([66.163.187.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCgr5-0006T2-Ir for emacs-devel@gnu.org; Thu, 30 May 2024 10:34:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1717079649; bh=66LSNo94i1JNk4C42b8d9ubzBB7OEs4EZ0Ql9KbIlYo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=XmxUsReIF379tDLkOYfV8JcSiZLvXs+LCLnfNmCOJVEdLHz1ioqHfM3mN0aCDrL3b8xyemU8scSMAnc+oAKGmCzXEkKAYyURAzPRQIhS/MW0z7bOJWVwnoUiX6rZaF4ApP+eGf7jhInrfngK0R6BfEpGjcAEARJcmIqS+WGhY0YMogniLlHUTQBSkAr3XQWj1itrsZpNmVU62s0mIvDMNvaceTucQbH8nQo0FtdN7AeEhV7Eq+a24M8Yf/qIqamx0xYqcEI8cZt96KBsvSVgi8OOofh0zQeHF2/yzUt6o0xVn/K30Mwo6q63BzPkqxWhil51BEp5MUVEbJE55PTaRw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1717079649; bh=BCJF7cifilKJZwj4Z92+O0RV8csix9ft9QJ7YPn2qX2=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=eDqOgSnIQNsC973ZWdkiNPavrgEUXcvp4Sof30BVUkQEbIMv6JPZEM44Wf/TLyhUV+hZU0d8FVQNbvHl4fN0pG0Bkag8I1TIYSECOHfLQpIQo5caEY2OrE6eGk8uo0GlSw0K5BnZ06cRbr3XrdtPjQtF7d5bIcjEOWtzaFeDqeYlUa4pa+/KeSEmJtCFr/qSq0j8u8ymixMIpGqdMmo0Bsi0a3M759eTEuDKcGmmyA7eZgsjb2cJzAfiGEKmGMcMtxVEjosYLkWWD1SARkC9LRq5ksq9qVxBvlJxVSmj6AOqY2ie4owVgDYCgyafdOoLZ1941LeaTM5madnXczL6rg== X-YMail-OSG: YF7euUMVM1l_PVxIKGNz5Xn_rTVSB_NsZiu.j2UqwbUEuidmG1V1zMGpmjFlAPM rgv.RG0w_JBuMCA__ytVPPO_OkngWI8AoI3M7QJbdvR0H.1OljfzhPzluLno_o7zu1ldTxbn_5JG hPiQOz5khq6W2EqdbPvc2IhBzCMva.G68ojhPCvmwHRX7WDUXI0Bu1LXkK3jv6k_O_66aDxuDM1W cRmxofvKIhVjrgUdx1QDrEADDAkDGF7mlcG9Qng1g3XyuSX8e7EFXAvfnCciASqnF17.jLnamw15 GRYs2rFEdMqmEtHWHRY.xBSM9fFktLTAzFktiKLYvG6irQpSQgJHEqmQ0A2iC6bYdHAqESt5ogw. G6nEXiDt33J8M0mW.VpwIqhcowfqNlZuYu3.xuLuN1iRxGit0jt12iih_dR.4VPNXarYam0VAuCc DdK1cKgD72HAiVGmd2lb8YLZ.NwlirGpGXrdY7IG93bMYIicFqyTIaa89vlU0Faj6FxyJK1ScCgF GJLUHDkAEiUlq5oc283ItPIymFa72mc2MX9Fqlo1u93r.yfKdGL2FCwPt2flDSJ1DQVSX3eS6M.j SAcNvoNlF7uh4D.bcSB0eKeesMN6wT3gbV1ZpsQknbSuhs8TOq0ipZs4KqnbJB8qpSrU6nGcpX0P mx7lFU3poNzvExagK_fevX6WaIbwUnlzzrNdvbwG9.F4.fnIi7TnDNVQYijIl0wUo2FDZ.yvN7Yr YoRpnNEPunfeNOJEKDwP7ZlzghiqniKJFaV4fzrXzaEMPu.2.b.m2JEPImo8qhDIJ1EWXjvnbIWe 3VPeBbC7DHaCovnGxzpDR9K4BavBaLvl4FAba1FARC X-Sonic-MF: X-Sonic-ID: c05ef035-f216-4600-be1d-30cb69dc6558 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Thu, 30 May 2024 14:34:09 +0000 Original-Received: by hermes--production-sg3-6f9f87bd85-zkmz6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c478afecc3ed70b4596ec8609d6015af; Thu, 30 May 2024 14:34:03 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Thu, 30 May 2024 10:18:49 -0400") X-Mailer: WebService/1.1.22356 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.146; envelope-from=luangruo@yahoo.com; helo=sonic316-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:319750 Archived-At: Stefan Monnier writes: >>> 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). True, but this doesn't answer Eli's question.