emacs-devel
[Top][All Lists]
Advanced

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

Re: More intelligent command for C-x TAB (understand also tab-stop-list)


From: Xue Fuqiao
Subject: Re: More intelligent command for C-x TAB (understand also tab-stop-list)
Date: Sun, 14 Jul 2013 07:30:08 +0800

On Sat, Jul 13, 2013 at 2:41 PM, Teemu Likonen <address@hidden> wrote:
> I propose binding a new command to C-x TAB. This new command would have
> all the functionality of the current command (indent-rigidly) but also
> added intelligence to understand tab-stop-list.
[...]
> For those who want to try this command just evaluate the code below.
> Emacs developers are free to use the code because I have done the
> copyright-assignment paperwork for FSF.

Sounds fine to me, and I made a modified version for the doc string of
i-r-t-t-s.  I put two spaces at the end of a sentence, and there are
some other minor changes:

  "Indent region to a tab stop column or to the specified column.

Indent the region from BEG to END according to the command's
prefix argument ARG.  If ARG is nil (i.e., there is no prefix
argument) indent the region to the next tab stop column in
`tab-stop-list'.  With a negative prefix ARG (e.g., \"C-u -\"),
indent the region to the previous tab stop column.  If ARG is an
integer indent the region by ARG columns (just like
`indent-rigidly' command).

If this command is invoked by a multi-character key sequence, it
can be repeated by repeating the final character of the
sequence."

--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/



reply via email to

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