From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: More intelligent command for C-x TAB (understand also tab-stop-list) Date: Sun, 14 Jul 2013 07:30:08 +0800 Message-ID: References: <871u73hsg9.fsf@mithlond.arda> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1373758211 13434 80.91.229.3 (13 Jul 2013 23:30:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jul 2013 23:30:11 +0000 (UTC) Cc: emacs-devel To: Teemu Likonen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 14 01:30:14 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uy9GX-0005Kb-QF for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2013 01:30:13 +0200 Original-Received: from localhost ([::1]:49240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uy9GX-0002vj-9j for ged-emacs-devel@m.gmane.org; Sat, 13 Jul 2013 19:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uy9GU-0002vK-Aj for emacs-devel@gnu.org; Sat, 13 Jul 2013 19:30:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uy9GT-0007dX-5Z for emacs-devel@gnu.org; Sat, 13 Jul 2013 19:30:10 -0400 Original-Received: from mail-ie0-x235.google.com ([2607:f8b0:4001:c03::235]:59058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uy9GT-0007dN-1G for emacs-devel@gnu.org; Sat, 13 Jul 2013 19:30:09 -0400 Original-Received: by mail-ie0-f181.google.com with SMTP id x12so22075222ief.26 for ; Sat, 13 Jul 2013 16:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5t6PH3jB0rTzqO7Kt+pSHzMWIdtN0HLr3Hp8iK1Y4KI=; b=mYzBQac0hjxfJTnzpcQ+COTLjQBiUXHhIr1mwt/tc7G9xUkVyzBsBiONk8vsWQ6Jcr fjtBBBLMgaN17sC6M6QI6P64n3rSL78+j9EXSiumqojAPVaTmPlsxLe8dbPxzMLcoXBb NmODtzkYTcM1yvGS8MbgJ+wRQyju2dNMkFr3Z8KxM0pMhV+qMgj7m2W6TQKXtoNNt+9M 1IB5B/c/4hzxxICi+SEedyQDCBqxQbJoY4AthkJRUA7s+o6QGNI3Elo03sZkTV4oqN4F c59fiFzHAiYDDTQDbz6gqKBAJ9nLjepQ05PJ5rF075EruXaoIhLA3hBtHr6resRZdGZI 0sjA== X-Received: by 10.50.9.7 with SMTP id v7mr3645910iga.51.1373758208187; Sat, 13 Jul 2013 16:30:08 -0700 (PDT) Original-Received: by 10.42.28.3 with HTTP; Sat, 13 Jul 2013 16:30:08 -0700 (PDT) In-Reply-To: <871u73hsg9.fsf@mithlond.arda> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161860 Archived-At: On Sat, Jul 13, 2013 at 2:41 PM, Teemu Likonen 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/