From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: FW: loaded minor modes should be added to `mode-line-mode-menu'andOptions menu Date: Mon, 11 Feb 2008 21:41:02 -0800 Message-ID: <003301c86d39$dae12210$405a908d@us.oracle.com> References: <004801c86ce6$07803620$9eb22382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202795012 8149 80.91.229.12 (12 Feb 2008 05:43:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 05:43:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 06:43:55 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOnvt-0002hG-Qx for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 06:43:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOnvQ-0003bJ-E7 for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 00:43:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOnvJ-0003Yu-RN for emacs-devel@gnu.org; Tue, 12 Feb 2008 00:43:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOnvH-0003Vn-O1 for emacs-devel@gnu.org; Tue, 12 Feb 2008 00:43:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOnvH-0003Va-HY for emacs-devel@gnu.org; Tue, 12 Feb 2008 00:43:15 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JOnvE-0008IG-0U; Tue, 12 Feb 2008 00:43:12 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m1C5gGGc006859; Mon, 11 Feb 2008 22:42:16 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m1C34LYU010600; Mon, 11 Feb 2008 22:42:15 -0700 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3570592131202794862; Mon, 11 Feb 2008 21:41:02 -0800 Original-Received: from dradamslap1 (/141.144.90.64) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 Feb 2008 21:41:02 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AchtKqjp8h+Vk17ATTKsEBIKwIloZAADb1CA X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88834 Archived-At: > It would be better for these menus to reflect the user's > own context: to show which minor modes have been defined, > whether they were predefined as part of Emacs or not. > It makes at least as much sense for a user to be able > to access, by menu, the modes s?he actually uses as modes > s?he might never use. > > That would make the menu of modes so large > it would be hard to use at all. Fair enough. But instead of doing such filtering via hard-coding in a repetitive way, why not let `define-minor-mode', `define-global-minor-mode', and `define-globalized-minor-mode' do it? Let them accept an argument, keyword or some other indication (e.g. lighter text prefix, just as we use * and such for doc strings and for `interactive') to decide whether to add to a menu. IOW, on the spectrum from hand- and hard-coded to blindly and automatically added, pick something systematic but manageable that's midway.