From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.help Subject: Re: Indenting paragraphs manually Date: Sun, 6 Mar 2011 21:57:20 +0100 Message-ID: References: <4d73cb63$0$23764$14726298@news.sunsite.dk> <87y64sm4li.fsf@mithlond.arda> <3CE8445D1C604E9D95378F23FDCAD2BB@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299445518 31138 80.91.229.12 (6 Mar 2011 21:05:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2011 21:05:18 +0000 (UTC) Cc: Uday Reddy , help-gnu-emacs@gnu.org, Teemu Likonen To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 06 22:05:13 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PwL82-0006BC-U9 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Mar 2011 22:05:11 +0100 Original-Received: from localhost ([127.0.0.1]:35822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwL2m-0003BE-FV for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Mar 2011 15:59:12 -0500 Original-Received: from [140.186.70.92] (port=55223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwL19-0002ip-6u for help-gnu-emacs@gnu.org; Sun, 06 Mar 2011 15:58:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwL0z-0005mK-Ij for help-gnu-emacs@gnu.org; Sun, 06 Mar 2011 15:57:22 -0500 Original-Received: from mail-gw0-f51.google.com ([74.125.83.51]:48536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwL0z-0005m5-FC for help-gnu-emacs@gnu.org; Sun, 06 Mar 2011 15:57:21 -0500 Original-Received: by gwb15 with SMTP id 15so1848461gwb.38 for ; Sun, 06 Mar 2011 12:57:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TbLQJIj5wCbQfHxl7Zh07z4idPEOMAAzc8CcOLwRRl4=; b=vr67vWzV95TP4nMP/6RMqZjw7U+mP5esGKIYSesUJC+faa6mc6AY0nhW9h1quqc/rS dP+kStBenqUFO+cP8GLD2IQj4QoI4WaOJrXztAHZWEv+9U3VyAqlB0GrE7BLHBYMGq+F 4LBqNkHNPiWb3JydqXBtbsFJTel3/dbTOa0TI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=bYuLyAym7ILHOfKNyYjS2o0xdNiiY0e+8oTXsL/PXYMlnIraseDMEp+446l9ZdVFKZ FPTIN+SVUsT9Imeo5ziRFREN4n1RhaJ2JpklwoMrqiu7eWwgi028b2mlOFasg4HKCXVs 3gXvG3qL5xuvDjaz1/eVFk5aFCMy4byFPuvIc= Original-Received: by 10.90.19.6 with SMTP id 6mr4096403ags.23.1299445040538; Sun, 06 Mar 2011 12:57:20 -0800 (PST) Original-Received: by 10.90.57.30 with HTTP; Sun, 6 Mar 2011 12:57:20 -0800 (PST) In-Reply-To: <3CE8445D1C604E9D95378F23FDCAD2BB@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.51 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79833 Archived-At: On Sun, Mar 6, 2011 at 21:26, Drew Adams wrote: >> > You can type "C-x TAB" once and then repeat it with "C-x z". >> >> Indeed, that is another solution, but IMO has it's own drawbacks: >> =A0- As shown, the indentation is made by steps of 1 space. >> =A0- If you use a prefix argument (to avoid the above problem), it >> =A0 =A0becomes cumbersome. >> >> The complexity of this method is also higher than having a simple, >> easy to type command that indents the region to the next tab stop and >> can be repeated several times in a row. > > (defun incremental-tab (arg) > =A0(interactive "P") > =A0(require 'repeat) > =A0(let ((repeat-message-function =A0'ignore)) > =A0 =A0(setq last-repeatable-command =A0'indent-rigidly) > =A0 =A0(repeat nil))) > > (define-key ctl-x-map "\t" 'incremental-tab) > > Or if `C-x TAB TAB...' is too much for you, hold down `f5': > > (global-set-key [f5] 'incremental-tab) > > Hit `C--' at any time to reverse, `C-1' to reverse back again: > > `f5 f5 f5 f5 C-- f5 f5 C-1 f5'... > > Thanks, Drew! (I have to find the time to learn elisp... :) ) You've implemented a solution for this problem, but what do you think about my original question in this thread, i.e., the behavior of the key in text mode, in the current Emacs trunk? Do you understand it? Does the manual describes it well? --=20 Dani Moncayo