From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: report-emacs-bug could also list current modes Date: Thu, 25 Sep 2003 08:55:43 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F7301EF.5030701@yahoo.com> References: <3F6F155C.4010606@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064504121 21692 80.91.224.253 (25 Sep 2003 15:35:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2003 15:35:21 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 17:35:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2Y9G-00064P-00 for ; Thu, 25 Sep 2003 17:35:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2Y3W-00031T-W8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Sep 2003 11:29:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A2Y1p-0002Wj-LG for bug-gnu-emacs@prep.ai.mit.edu; Thu, 25 Sep 2003 11:27:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A2XsQ-0000Kg-2B for bug-gnu-emacs@prep.ai.mit.edu; Thu, 25 Sep 2003 11:17:54 -0400 Original-Received: from [199.171.54.202] (helo=sac1-1.relay.mail.uu.net) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2Xot-0008Bm-8P for bug-gnu-emacs@prep.ai.mit.edu; Thu, 25 Sep 2003 11:14:15 -0400 Original-Received: from mail.fu-berlin.de by sosrv31.sac1.maint.ops.us.uu.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQphro19885 for ; Thu, 25 Sep 2003 15:14:10 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 25 Sep 2003 17:12:07 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 25 Sep 2003 16:55:36 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 46 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1064501735 6485246 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list 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.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5855 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5855 Dan Jacobson wrote: >>>By the way, aside from blabberous describe-mode, and staring at the >>>mode line, where is a concise list of the current modes in effect? >>>There is no list-modes, show-modes, etc. > > K> C-x C-b (list-buffers) shows each buffer's major mode. > > I meant a list of all the modes in effect for this buffer. Yes, there > they are mostly in the modeline, but how about a lisp list? If you need it, you could write it yourself: (defun buffer-mode-list () "Return a list of the current buffer's major mode and minor modes." (interactive) (let ((modes (cons major-mode (apply 'nconc (mapcar (lambda (key-value) (let ((variable (car key-value))) (if (and (boundp variable) (symbol-value variable)) (list (symbol-name variable))))) minor-mode-alist))))) (if (interactive-p) (message "%s" modes) modes))) >>>I do apropos modes, and see things like "minor-modes" with no >>>explanation of what they are doing there on a separate line: >>>(apropos "modes" nil) >>> > > K> Try: C-h a -mode\' > > OK, C-h a -mode$ > looks simpler for me. But won't return symbols with a newline in their name. :-) -- Kevin Rodgers