From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: Indenting paragraphs manually Date: Sat, 05 Mar 2011 21:26:54 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299356848 18487 80.91.229.12 (5 Mar 2011 20:27:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 20:27:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dani Moncayo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 05 21:27:24 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 1Pvy4Q-00044Q-Hs for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 21:27:22 +0100 Original-Received: from localhost ([127.0.0.1]:33808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvy4P-0006MJ-UK for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 15:27:21 -0500 Original-Received: from [140.186.70.92] (port=53776 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvy45-0006MC-A2 for help-gnu-emacs@gnu.org; Sat, 05 Mar 2011 15:27:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvy43-0006jm-MG for help-gnu-emacs@gnu.org; Sat, 05 Mar 2011 15:27:01 -0500 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:54245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvy43-0006jM-HO for help-gnu-emacs@gnu.org; Sat, 05 Mar 2011 15:26:59 -0500 Original-Received: by bwz17 with SMTP id 17so3369014bwz.0 for ; Sat, 05 Mar 2011 12:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=ViDHqrGFyp76vEq/9g3acwQzB6rfn+J5zDtcTjCcsak=; b=oPaKBKHm0vTWpdMZroeSSkQy/EMQ0BlBZ/oahXBR2YSWHILTGjohNOuzTTGyLpXbop YuJUP5qIn+EeKNu+eNVq5yW6u4e8xQteQwTjhOvrCmoUOyNMhZgeh6lIZABFGWr4S9WX imtq/x1Pv/uHeRxI0a0V+3nWLSgi5OK5QDrBg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=E6kLILJPrp1n6Sbs33SXmCqYSM80lQ5GzZqeNX7StZkKxKLYdGbiLuW6lI9VGbW8JW 99HMigIC3QM0HK59mc1TwXJvG+Ke980UHjlWlUV7LjD0LawxBzSGbwNquvka1ORk4P81 70UAvjNxMpzH0r0RwL2YG3D7aKoQF73ukfaMo= Original-Received: by 10.204.167.65 with SMTP id p1mr1798244bky.207.1299356817972; Sat, 05 Mar 2011 12:26:57 -0800 (PST) Original-Received: from ip1-201.halifax.rwth-aachen.de (ip1-201.halifax.RWTH-Aachen.DE [137.226.108.201]) by mx.google.com with ESMTPS id f20sm593706bkf.16.2011.03.05.12.26.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Mar 2011 12:26:57 -0800 (PST) In-Reply-To: (Dani Moncayo's message of "Sat, 5 Mar 2011 00:17:46 +0100") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 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:79797 Archived-At: Dani Moncayo writes: > Hi! > > I'm looking for a simple way of indenting paragraphs manually (in text > modes), and I've just read this node of the Emacs Manual: (info "(emacs) > Indentation"). It explains, among other things, the general behavior of > the key in text modes: > > In text modes, inserts some combination of space and tab > characters to advance point to the next tab stop (*note Tab Stops). > If the region is active and spans multiple lines, it advances the first > character of each of those lines to the next tab stop (*note Using > Region). [...] > > > I'm used to that behavior in other editors, and I like it, but > is not what I currently see in Emacs. e.g.: > - Start Emacs (emacs -Q) > - Set text-mode in the *scratch* buffer. (text-mode). > - Set transient-mark-mode on. (transient-mark-mode 1). > - Select the first 3 lines. > - Type > > What I was expecting: > - The selected lines move to the next tab-stop. > - The region remains active, so that I can repeat the indentation > several times in a row. > > What I see: > - The selected lines are not not moved at all. > - The region is deactivated. > > Please, could someone explain this? Am I missing something? (I guess I > am, and that's why I'm posting to help-gnu-emacs instead of > bug-gnu-emacs) > > TIA > > --- > Dani Moncayo > > In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) > of 2011-02-26 on dani-P5PL2 > Windowing system distributor `The X.Org Foundation', version 11.0.10900000 So you're misunderstanding the use of TAB in this case. TAB indents, but "smartly", so it actually never really inserts a tab (apart maybe some modes where this is the good thing to do) What you want to do can be done with rectangle mode, so - select the region you want - C-x r t RET TAB and you're done