unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: Teemu Likonen <tlikonen@iki.fi>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: More intelligent command for C-x TAB (understand also tab-stop-list)
Date: Sun, 14 Jul 2013 07:30:08 +0800	[thread overview]
Message-ID: <CAAF+z6HgSTtn6WFWwJX44DVH499s2cv8J2Aco3qE34V9hRcAzg@mail.gmail.com> (raw)
In-Reply-To: <871u73hsg9.fsf@mithlond.arda>

On Sat, Jul 13, 2013 at 2:41 PM, Teemu Likonen <tlikonen@iki.fi> 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	other threads:[~2013-07-13 23:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-13  6:41 More intelligent command for C-x TAB (understand also tab-stop-list) Teemu Likonen
2013-07-13 23:30 ` Xue Fuqiao [this message]
2013-07-14 15:06   ` Teemu Likonen

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=CAAF+z6HgSTtn6WFWwJX44DVH499s2cv8J2Aco3qE34V9hRcAzg@mail.gmail.com \
    --to=xfq.free@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=tlikonen@iki.fi \
    /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).