emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lisp-indent-line and comment-region in emacs-lisp-mode menu


From: Stefan Monnier
Subject: Re: lisp-indent-line and comment-region in emacs-lisp-mode menu
Date: Wed, 05 Mar 2008 13:41:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> 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.
For comment-region, the problem is worse because as long as
transient-mark-mode is off, comment-dwim does not do comment-region.

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"?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]