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: Mon, 7 Mar 2011 08:32:19 +0100 Message-ID: References: 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 1299483178 19439 80.91.229.12 (7 Mar 2011 07:32:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2011 07:32:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Le Wang Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 08:32:48 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 1PwUvv-0003Bz-MG for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 08:32:47 +0100 Original-Received: from localhost ([127.0.0.1]:46733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwUvu-0006qU-Lo for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 02:32:46 -0500 Original-Received: from [140.186.70.92] (port=45623 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwUvW-0006qN-4G for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 02:32:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwUvU-00024c-W5 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 02:32:21 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:38714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwUvU-00024Q-P2 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 02:32:20 -0500 Original-Received: by yxt33 with SMTP id 33so1986456yxt.0 for ; Sun, 06 Mar 2011 23:32: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=Le4OYDcxBJoKCrppkqFK9Ygs8wD2wxiNcI01DBwRZa0=; b=PvzEkWuXELujBdp8MaAJRvZAIDnsgjSiD6ApRyyaKfMv0PZteBPnQTrszGOcLqmzkr fO3SVgehwjwoPQP18xpHX6Eu3JDU2RBXmdPHi9p/o41EOfQ/9lS/Ad2jPeMh9yKLIlSf EAMSFWolYVHw39BU5pXiptwvs4HJABt3HUPAc= 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=wMkWvXECA+GpTP61Z0c61fG/ULvp4A7ppBbrogyqHA/2SGaH1YubNXp0PHQzUD9ZuS JUGz1/8wrmbUGCTyYkddQmWEwCqRqPYQYox5oRBDM3qUqCqd55c1qTVjkjiWf13aPeyR Ls2ALv/NFJfYpmnmOrwnXECHeWH2rgAtPTH00= Original-Received: by 10.90.9.26 with SMTP id 26mr4577157agi.50.1299483139985; Sun, 06 Mar 2011 23:32:19 -0800 (PST) Original-Received: by 10.90.57.30 with HTTP; Sun, 6 Mar 2011 23:32:19 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.169 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:79846 Archived-At: On Mon, Mar 7, 2011 at 06:04, Le Wang wrote: > On Sun, Mar 6, 2011 at 7:47 PM, Dani Moncayo wrote: >> >> Yes, I know that way of indenting several lines, but IMO it's too >> laborious. I'd like to have a more agile way. > > =A0My comment about cua-mode rectangles seems to have gottel lost in the > shuffle. =A0 IMO, this is the "agile" way to get exactly what you want. > 1. evaluate (assuming you want no part of cua bindings) > > (setq cua-enable-cua-keys 'emacs) > =A0=A0;; rotates around the rectangle corners, if "RET" gets > overriden > (cua-selection-mode 1) > > 2. select region you want, press C-enter, and your selection becomes a > rectangle. =A0 If the point isn't on the left side of the rectangle, pres= s > Enter until it moves there. > 3. press Tab, space, backspace, whatever to change the indentation. =A0cu= a-mod > rectangle remains selected. > -- > Le > Sorry for missing your advice, Le. Indeed your way works and it's ease to use. Anyway, It seems that the behavior of is broken in the trunk, and also in Emacs 23, so that when that is fixed, we'll be able to indent paragraphs (in text mode), the way I was expecting (and is documented). Thanks for your advice! --=20 Dani Moncayo