all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: report-emacs-bug could also list current modes
Date: Thu, 25 Sep 2003 08:55:43 -0600	[thread overview]
Message-ID: <3F7301EF.5030701@yahoo.com> (raw)
In-Reply-To: mailman.677.1064447066.21628.bug-gnu-emacs@gnu.org

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

  parent reply	other threads:[~2003-09-25 14:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.443.1064004252.21628.bug-gnu-emacs@gnu.org>
2003-09-22 15:29 ` report-emacs-bug could also list current modes Kevin Rodgers
2003-09-24 21:46   ` stop rewriting Message-IDs Dan Jacobson
2003-09-24 21:50   ` report-emacs-bug could also list current modes Dan Jacobson
     [not found]   ` <mailman.677.1064447066.21628.bug-gnu-emacs@gnu.org>
2003-09-25 14:55     ` Kevin Rodgers [this message]
2003-09-25 16:16       ` Andreas Schwab
2003-09-27  4:59       ` describe-mode should first summarize all modes in effect Dan Jacobson
2003-09-29 19:32         ` Richard Stallman
     [not found]       ` <mailman.819.1064714879.21628.bug-gnu-emacs@gnu.org>
2003-09-29 17:10         ` Kevin Rodgers
2003-10-02 22:27           ` Dan Jacobson
2003-09-19 19:24 report-emacs-bug could also list current modes Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F7301EF.5030701@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.