From: Dan Nicolaescu <dann@ics.uci.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: lisp-indent-line and comment-region in emacs-lisp-mode menu
Date: Wed, 05 Mar 2008 11:00:13 -0800 [thread overview]
Message-ID: <200803051900.m25J0Eni011450@sallyv1.ics.uci.edu> (raw)
In-Reply-To: <jwvd4q9ku5m.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 05 Mar 2008 13:41:55 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > Wouldn't it be better if the emacs-lisp-mode menu used
> > indent-for-tab-command instead of lisp-indent-line and
> > comment-dwim instead of comment-region ?
>
> For indent-line, it might be OK, although it suffers from the problem
> that indent-for-tab-command doesn't necessarily indent the current line.
Them maybe the solution is not to have a menu called "Indent Line". If
we don't provide a key binding for such a thing, then we shouldn't
bother with a menu binding for it. What would be a better name for the
menu entry?
> For comment-region, the problem is worse because as long as
> transient-mark-mode is off, comment-dwim does not do comment-region.
Would making the menu depend on transient-mark-mode be an option?
Any better ideas?
> Those DWIMish bindings (TAB, M-;) are problematic in this situation
> because the menu entry text cannot faithfully describe the behavior.
> > The former don't have key bindings, but the latter do, so the menus
> > do not help users learn the key bindings.
>
> Indeed.
>
> > What about "Indent region"? Currently TAB does when
> > transient-mark-mode is on...
>
> So are you suggesting to put TAB on both "indent line" and "indent
> region"?
That might be a good idea for the transient-mark-mode: show the users
that the only key binding they need to know for indenting is TAB.
prev parent reply other threads:[~2008-03-05 19:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 22:23 lisp-indent-line and comment-region in emacs-lisp-mode menu Dan Nicolaescu
2008-03-04 23:33 ` Juri Linkov
2008-03-05 0:49 ` Drew Adams
2008-03-05 10:40 ` Juri Linkov
2008-03-05 15:33 ` Drew Adams
2008-03-05 3:32 ` Dan Nicolaescu
2008-03-05 10:43 ` Juri Linkov
2008-03-05 18:41 ` Stefan Monnier
2008-03-05 19:00 ` Dan Nicolaescu [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200803051900.m25J0Eni011450@sallyv1.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).