From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.help Subject: Re: List of major modes? Date: Fri, 11 Nov 2005 17:56:14 +0000 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1131731872 7112 80.91.229.2 (11 Nov 2005 17:57:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2005 17:57:52 +0000 (UTC) Cc: Edward O'Connor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 11 18:57:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ead8h-0001OD-UA for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2005 18:56:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ead8h-0005xp-CK for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2005 12:56:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ead8P-0005xZ-UR for help-gnu-emacs@gnu.org; Fri, 11 Nov 2005 12:56:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ead8O-0005ws-9c for Help-gnu-emacs@gnu.org; Fri, 11 Nov 2005 12:56:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ead8O-0005wp-5e for Help-gnu-emacs@gnu.org; Fri, 11 Nov 2005 12:56:20 -0500 Original-Received: from [64.233.162.200] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ead8O-0006nn-D8 for Help-gnu-emacs@gnu.org; Fri, 11 Nov 2005 12:56:20 -0500 Original-Received: by zproxy.gmail.com with SMTP id r28so685674nza for ; Fri, 11 Nov 2005 09:56:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=CEBDV0BMjK5bdzLYd2tlIYOur5PKw5LiSjbUzcRFvXlCtpi0RvxD2KO5ipeiuwEY1y5MehnQFUtH/EKXfDXsNWNgPQasxnRWd/9gE2Eya0yEZ9vY8Qjc4+dDbyqS3egN08UynSZGGndY9tA3hfioL68bNyUfb7H/kZ8y393oGns= Original-Received: by 10.64.201.20 with SMTP id y20mr2525696qbf; Fri, 11 Nov 2005 09:56:19 -0800 (PST) Original-Received: from ?129.215.174.81? ( [129.215.174.81]) by mx.gmail.com with ESMTP id o32sm857363qbe.2005.11.11.09.56.15; Fri, 11 Nov 2005 09:56:18 -0800 (PST) Original-To: Emacs help X-Mailer: Apple Mail (2.746.2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30993 Archived-At: > (not (assq symbol minor-mode-alist)))) Good idea, but unfortunately minor-mode-alist contains stuff to be shown in the mode-line, so we're not excluding minor modes that don't display anything in the mode line (mouse-wheel-mode for example). Searching the documentation string (Kevin's idea) won't be reliable, obviously. Looking for (kill-all-local-variables) in the definition would be another possibility, but who guarantees that this will occur in the mode function definition directly, and not in some function called from there. The only solution I can see is to patch define-minor-mode - as a last resort. - D