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: List of major modes? Date: Wed, 9 Nov 2005 09:40:33 +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 1131538126 23502 80.91.229.2 (9 Nov 2005 12:08:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2005 12:08:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 09 13:08:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EZoj4-0007A5-PS for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2005 13:06:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZoj2-0004E7-S7 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2005 07:06:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EZn0i-0000XR-7E for help-gnu-emacs@gnu.org; Wed, 09 Nov 2005 05:16:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EZmpD-0008F6-KH for Help-gnu-emacs@gnu.org; Wed, 09 Nov 2005 05:05:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZmRh-0006NR-Cx for Help-gnu-emacs@gnu.org; Wed, 09 Nov 2005 04:40:47 -0500 Original-Received: from [64.233.182.196] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EZmRg-0001Xj-9s for Help-gnu-emacs@gnu.org; Wed, 09 Nov 2005 04:40:44 -0500 Original-Received: by nproxy.gmail.com with SMTP id k27so29505nfc for ; Wed, 09 Nov 2005 01:40:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=hR9loLiJZZxf3tJhtPtN7o9+tAHCWkNext9VCIcY+exzMZ1Gwu15psVOfSFFlDt0xXO+hMHLHIr0uH90Tuq/LDIHHjMul3mUs1apxhUgs9NGf3uapgYoCu35iUInsD1DR1ZkZc0jq57Ob7XT7MmtjCPRJimGoactyXvj1OZIm+s= Original-Received: by 10.48.143.20 with SMTP id q20mr126429nfd; Wed, 09 Nov 2005 01:40:38 -0800 (PST) Original-Received: from ?10.0.0.34? ( [82.13.31.46]) by mx.gmail.com with ESMTP id c1sm2682366nfe.2005.11.09.01.40.36; Wed, 09 Nov 2005 01:40:37 -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:30932 Archived-At: How would I go about compiling a list of all major modes available in the current emacs session? (Both loaded ones and autoloadable ones.) My first thought was doing something like (apropos-internal ".*-mode$") which works, but doesn't distinguish between major and minor modes, which would be important. I cannot actually run any of the mode functions (would take way too long). From looking at the elisp level code, there is very little programmatic distinction between minor and major modes, at least nothing that could be easily detected. thanks...