From: xah lee <xah@xahlee.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, 2473@emacsbugs.donarmstrong.com
Subject: bug#2473: usability issues on emacs's describe-mode
Date: Sat, 28 Feb 2009 01:12:00 -0800 [thread overview]
Message-ID: <26F1345E-58EE-4C6A-B1DA-C72B7FC42FFC@xahlee.org> (raw)
In-Reply-To: <jwvab8718qk.fsf-monnier+emacsbugreports@gnu.org>
For me, so far i personally prefer the solution where Ctrl+h m would
just show the major mode's inline doc.
I think that pretty much fixed it, very simple solution.
Showing the inline doc of major mode is a frequent operation. Perhaps
daily, or few times per week. Showing the inline doc of ALL minor
modes, is probably not used much. (personally, i can't think i needed
it in 10 years)
For people who want to display inline doc of all minor modes at once,
the describe-mode can work as it is.
As for the ^L char, I think Drew Adam's code works well.
So, overall, for the above, the following simple code does the job.
(defun describe-major-mode ()
"Show inline doc for current major-mode."
;; code by Kevin Rodgers. 2009-02-25
(interactive)
(describe-function major-mode))
(global-set-key (kbd "C-h m") 'describe-major-mode)
(require 'pp-c-l)
(pretty-control-l-mode 1)
-----------
For the hide/show solution, i think it's too complex. Complex in UI,
complex in implementation too. For me, if i wanted to discribe them
all, i rather prefer they all show, and not having to click each to
expand, or click on some Expand All button.
Thanks for all the suggestions.
Xah
∑ http://xahlee.org/
☄
-------------------
On Feb 27, 2009, at 8:34 PM, Stefan Monnier wrote:
> I see a 3rd way: make the buffer present an expandable list of
> modes,
> starting with just 2 items: the current major modes and "minor
> modes",
> e.g. similar to what we do in Speedbar, or maybe in Outline Mode
> (under "Hide Sublevels"). In ASCII art:
> + Major Mode: RMAIL Mode
> + Minor Modes
> Using hiding is a good idea -- thanks.
> I think that partcular way would be inconvenient. Specifically, it
> would be a hassle to initially hide the major mode documentation.
> That is what users most often want to see; making them type a command
> to expose it would be a gratuitous hassle.
> So I suggest putting the partly-hidden minor mode list first,
> followed by the totally visible major mode documentation.
I don't think the difference with what we have now is worth
the trouble. Basically, it's just a question of shortening the "list of
minor modes" at the beginning of the buffer (e.g. by removing global
minor modes from that list).
Stefan
☄
next prev parent reply other threads:[~2009-02-28 9:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 19:40 bug#2473: usability issues on emacs's describe-mode xah lee
2009-02-26 15:15 ` Stefan Monnier
2022-04-13 1:50 ` Lars Ingebrigtsen
2009-02-27 10:10 ` Richard M Stallman
2009-02-27 11:04 ` Eli Zaretskii
2009-02-27 11:31 ` Lennart Borgman
2009-02-27 15:19 ` Drew Adams
2009-02-27 23:33 ` Richard M Stallman
2009-02-27 23:56 ` Lennart Borgman
2009-02-27 23:58 ` Drew Adams
2009-02-28 4:34 ` Stefan Monnier
2009-02-28 9:12 ` xah lee [this message]
2009-02-28 10:54 ` Eli Zaretskii
2009-02-28 11:05 ` Lennart Borgman
-- strict thread matches above, loose matches on Subject: below --
2009-03-01 11:25 Xavier Maillard
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=26F1345E-58EE-4C6A-B1DA-C72B7FC42FFC@xahlee.org \
--to=xah@xahlee.org \
--cc=2473@emacsbugs.donarmstrong.com \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
/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.