* report-emacs-bug could also list current modes
@ 2003-09-19 19:24 Dan Jacobson
0 siblings, 0 replies; 5+ messages in thread
From: Dan Jacobson @ 2003-09-19 19:24 UTC (permalink / raw)
report-emacs-bug in its report could also list the current major and minor modes in
effect...
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.
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)
mc-modes-alist
Variable: Association list (indexed by major mode) of association lists
Plist: variable-documentation
minor-modes
mmm-c-derived-modes
Variable: (not documented)
...
mode-line-modes
Plist: risky-local-variable
modes
modesym
nnmail-default-file-modes
Variable: Set the mode bits of all new mail files to this integer.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: report-emacs-bug could also list current modes
[not found] <mailman.443.1064004252.21628.bug-gnu-emacs@gnu.org>
@ 2003-09-22 15:29 ` Kevin Rodgers
2003-09-24 21:50 ` Dan Jacobson
[not found] ` <mailman.677.1064447066.21628.bug-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Kevin Rodgers @ 2003-09-22 15:29 UTC (permalink / raw)
Dan Jacobson wrote:
> report-emacs-bug in its report could also list the current major and minor modes in
> effect...
>
> 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.
C-x C-b (list-buffers) shows each buffer's major mode.
> 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)
Try: C-h a -mode\'
(The minor-modes line is telling you that the symbol is interned in the
standard obarray, but it has no value or function binding.)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: report-emacs-bug could also list current modes
2003-09-22 15:29 ` Kevin Rodgers
@ 2003-09-24 21:50 ` Dan Jacobson
[not found] ` <mailman.677.1064447066.21628.bug-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Dan Jacobson @ 2003-09-24 21:50 UTC (permalink / raw)
>> 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?
>> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: report-emacs-bug could also list current modes
[not found] ` <mailman.677.1064447066.21628.bug-gnu-emacs@gnu.org>
@ 2003-09-25 14:55 ` Kevin Rodgers
2003-09-25 16:16 ` Andreas Schwab
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Rodgers @ 2003-09-25 14:55 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: report-emacs-bug could also list current modes
2003-09-25 14:55 ` Kevin Rodgers
@ 2003-09-25 16:16 ` Andreas Schwab
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2003-09-25 16:16 UTC (permalink / raw)
Cc: gnu-emacs-bug
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> Dan Jacobson wrote:
>
>> 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. :-)
It will, and it may match even more than the first.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-09-25 16:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-19 19:24 report-emacs-bug could also list current modes Dan Jacobson
[not found] <mailman.443.1064004252.21628.bug-gnu-emacs@gnu.org>
2003-09-22 15:29 ` Kevin Rodgers
2003-09-24 21:50 ` Dan Jacobson
[not found] ` <mailman.677.1064447066.21628.bug-gnu-emacs@gnu.org>
2003-09-25 14:55 ` Kevin Rodgers
2003-09-25 16:16 ` Andreas Schwab
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.