From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: Indenting paragraphs manually Date: Sun, 6 Mar 2011 17:10:54 +0800 Message-ID: References: <184d4ba0-d780-40e4-b41d-dfa192450730@s18g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51b16d3ab1d5e049dccc172 X-Trace: dough.gmane.org 1299402695 542 80.91.229.12 (6 Mar 2011 09:11:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2011 09:11:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: rusi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 06 10:11:31 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 1Pw9zu-0006Ik-Ol for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Mar 2011 10:11:31 +0100 Original-Received: from localhost ([127.0.0.1]:51582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw9zs-0005f6-JR for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Mar 2011 04:11:28 -0500 Original-Received: from [140.186.70.92] (port=47003 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw9zN-0005eN-6h for help-gnu-emacs@gnu.org; Sun, 06 Mar 2011 04:10:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pw9zL-0004K6-TA for help-gnu-emacs@gnu.org; Sun, 06 Mar 2011 04:10:57 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:44924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pw9zL-0004Jp-Ib for help-gnu-emacs@gnu.org; Sun, 06 Mar 2011 04:10:55 -0500 Original-Received: by vws13 with SMTP id 13so3806488vws.0 for ; Sun, 06 Mar 2011 01:10:55 -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; bh=vOzVUjoOBYJ3/srrZUfZ1Vw9SfhgoRpJP4T1rnFGdpI=; b=wpwal5Qw9XE2FSUCln6JjIGY5/pxAvQ/EV7zHI1tauICupOlcnKvS4hSR5okBH9Czd bXP/KbpZfPJzV200RVk28jSh9Xv88ZWBzoGGEpDcfc4oBq9larQmso3khZHOQif5hCKn 5iqD+n66V5fSp1aiCQkK5hsaEbRlxEpsNDnTg= 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; b=ESd7e9pJJKOZqBqsCF9kbrdxU7dUXjVMRYhy1zHWISFMRx7VwODSCfojR+ZGohtXou aTlSLGx7JiRIjc/TK6Tkwzpu7cQ5xnwpbH7lQZHjR12x5M+H8635nk8NzQTr1ltcchrR q5TjtSHQdfWjzg3bh8GLs5a3o5KqoM88lZHEw= Original-Received: by 10.52.173.51 with SMTP id bh19mr3233132vdc.170.1299402654948; Sun, 06 Mar 2011 01:10:54 -0800 (PST) Original-Received: by 10.52.158.193 with HTTP; Sun, 6 Mar 2011 01:10:54 -0800 (PST) In-Reply-To: <184d4ba0-d780-40e4-b41d-dfa192450730@s18g2000prg.googlegroups.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.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:79817 Archived-At: --bcaec51b16d3ab1d5e049dccc172 Content-Type: text/plain; charset=ISO-8859-1 It runs indent-line-function, which is indent-relative at the beginning of each line in the region, because indent-region-function is nil. On Sun, Mar 6, 2011 at 4:18 PM, rusi wrote: > On Mar 6, 4:28 am, PJ Weisberg wrote: > > On Fri, Mar 4, 2011 at 3:17 PM, Dani Moncayo wrote: > > > 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) > > > > It certainly does seem like a bug to me. I would go ahead and report > > it with M-x report-emacs-bug. > > > > -PJ > > Theres more strange (buggy?) behavior here. > > I took the text (note flush left): > > 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). [...] > > Then did the described action (except for turning transient-mode on) > At first it put 1 tab at start of each line > > The second time it added 1 tab on 1st line,2 on second, 3 on third, 4 > on fourth etc !! > -- Le --bcaec51b16d3ab1d5e049dccc172 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It runs indent-line-function, = which is indent-relative at the beginning of each line in the region, becau= se indent-region-function is nil.

On Sun, Mar 6, 2011 at 4:18 PM, rusi <rustompmody@gmail.c= om> wrote:
On Mar 6, 4:28=A0am, PJ Weisberg <p...@irregularexpressions.net> wrote:
> On Fri, Mar 4, 2011 at 3:17 PM, Dani Moncayo <dmonc...@gmail.com> wrote:
> > What I was expecting:
> > =A0- The selected lines move to the next tab-stop.
> > =A0- The region remains active, so that I can repeat the indentat= ion
> > several times in a row.
>
> > What I see:
> > =A0- The selected lines are not not moved at all.
> > =A0- The region is deactivated.
>
> > Please, could someone explain this? Am I missing something? =A0(I= guess I
> > am, and that's why I'm posting to help-gnu-emacs instead = of
> > bug-gnu-emacs)
>
> It certainly does seem like a bug to me. =A0I = would go ahead and report
> it with M-x report-emacs-bug.
>
> -PJ

Theres more strange (buggy?) behavior here.

I took the text (note flush left):

In text modes, <TAB> 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). =A0[...]

Then did the described action (except for turning transient-mode on)<= br> At first it put 1 tab at start of each line

The second time it added 1 tab on 1st line,2 on second, 3 on third, 4
on fourth etc !!



--
Le
--bcaec51b16d3ab1d5e049dccc172--