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: Dan Nicolaescu
Subject: Re: lisp-indent-line and comment-region in emacs-lisp-mode menu
Date: Wed, 05 Mar 2008 11:00:13 -0800

Stefan Monnier <address@hidden> 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.




reply via email to

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