From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74492: 31.0.50; [FR] explicit minor mode precedence Date: Sat, 23 Nov 2024 14:49:23 +0100 Message-ID: Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30740"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , Sean Whitton To: 74492@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 14:50: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 1tEqWg-0007pe-8a for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 14:50:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEqWS-0006PL-V5; Sat, 23 Nov 2024 08:50:05 -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 1tEqWR-0006No-V9 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 08:50:03 -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 1tEqWR-0001xf-IY for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 08:50:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=t7jH7X0aMho+fuwHovPLz+MEfZMhw62Zet/2sz0suBA=; b=MBtDt3F/jFw9/GB/EB1xpjO36aCYONDMcl6bs3jyqWYPh6NAnpmQNfFWmNkphHIaj/aNRvQowPZ/cIa3tBPxo2yprgqrCh7ZMUJXk4ywUsIhHhwHXZRytkHjjZkMvrNmmDxuJS2nvegMZSYpTekzsFCeVGsWTPl9Ub5VeC3qd9366PlUZz7FNO7qCQmEgSPQ+xnQQcAOeCLZBihfAKzZBYqm0PC5ZNomIaIc1xtpVqPkxCFBCrXdHIOISM4bTZ6+O9lHf6/ix0QTAfJhiBgFbMDf1ciWrpxrM1Hb5zK33moc9NOHe1JdIyE2XVpwxQ6sYx1QnAeSLRLrpCHop92w7A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEqWQ-0007zh-J6; Sat, 23 Nov 2024 08:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, spwhitton@spwhitton.name, bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74492 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Stefan Monnier , Sean Whitton Original-Received: via spool by submit@debbugs.gnu.org id=B.173236977230659 (code B ref -1); Sat, 23 Nov 2024 13:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Nov 2024 13:49:32 +0000 Original-Received: from localhost ([127.0.0.1]:57191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEqVv-0007yR-OF for submit@debbugs.gnu.org; Sat, 23 Nov 2024 08:49:31 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:60200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEqVt-0007yJ-FL for submit@debbugs.gnu.org; Sat, 23 Nov 2024 08:49:29 -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 1tEqVt-0006Ba-2c for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 08:49:29 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEqVr-0001qZ-Po for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 08:49:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1732369765; bh=H3EYa/Rpub9BVxiXSRKjp+yOlhwPPScYuReMafwx/no=; h=From:To:Subject:Date:From; b=DIVO0IdAgCBgyH60jWGDFJ1e9HXShhNnxbxSlUshP+w+D7+Cxj+qmrjpsnalMEOFV ZbznvUSIPxg324TCLVtF06rRoxXMzcHZIVzWNVX4YilN/NSh4yx7cuEoBNFDdX9lSy 0BZfcwU9Mz42wDJZXkQbYMEsizMKEy6aXm5eHTQD88GYx3LzwOuwSfW51WyfT7xFH1 PpEqXfWnfS0vMFWzTBm70AXbDHyosnpHQj0FL/yOOVzL+D9lwoLe+LbWii2mwtFSaq UwTliQd0S/GIfsUZRRzR3+kI+qwRcY4kLh1SpW+/647CldFo709guAMhvAs5yPDnIP 2H7Vic+GD6/Ew== X-Hashcash: 1:20:241123:bug-gnu-emacs@gnu.org::XOy5Nt1ODkcFYpko:7WpL Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:295837 Archived-At: Hi, I'm creating this feature request to track an idea that Stefan brought up in bug#74404: > BTW, maybe we should add some notion of minor mode precedence since such > problems are actually fairly common. We could do something similar to > what we do with `add-hook`, so `add-minor-mode` takes care of obeying > the ordering constraints. Currently, the last minor mode to be defined takes precedence over previously defined minor modes, at least in terms of keybindings. This makes it hard-to-impossible for minor modes that need high precedence to "guard" their keybindings from minor modes defined at any later time. An explicit mechanism for specifying minor mode precedence could help. Best, Eshel