From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Proposal] M-x tabify to indent only when needed. Date: Tue, 25 Jul 2006 12:21:31 -0400 Message-ID: References: <8764hm7vwo.fsf@lrde.org> <87irlm68k0.fsf@lrde.org> <87k661ydvu.fsf@lrde.org> <87fygpya8l.fsf@lrde.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1153844513 32481 80.91.229.2 (25 Jul 2006 16:21:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2006 16:21:53 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 25 18:21:49 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G5PfG-00035g-KQ for ged-emacs-devel@m.gmane.org; Tue, 25 Jul 2006 18:21:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G5PfG-0002eb-1a for ged-emacs-devel@m.gmane.org; Tue, 25 Jul 2006 12:21:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G5Pf4-0002eM-Ov for emacs-devel@gnu.org; Tue, 25 Jul 2006 12:21:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G5Pf0-0002eA-EX for emacs-devel@gnu.org; Tue, 25 Jul 2006 12:21:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G5Pf0-0002e7-9K for emacs-devel@gnu.org; Tue, 25 Jul 2006 12:21:30 -0400 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G5PgK-0004zr-Vg; Tue, 25 Jul 2006 12:22:53 -0400 Original-Received: from localhost ([70.55.146.79]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060725162128.VTZI1543.tomts43-srv.bellnexxia.net@localhost>; Tue, 25 Jul 2006 12:21:28 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 4D33990A6; Tue, 25 Jul 2006 12:21:31 -0400 (EDT) Original-To: michael.cadilhac@lrde.org (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) In-Reply-To: <87fygpya8l.fsf@lrde.org> (=?iso-8859-1?Q?Micha=EBl?= Cadilhac's message of "Tue, 25 Jul 2006 17:28:42 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57617 Archived-At: > Whatever, the docstring should be modified to tell that > \"^\\\\( \\t*\\\\)+\" must be used for =AB tabifying only initial > whitespace =BB (IINM). I'm not sure this regexp will give correct results. Actually I don't think you can come up with a regexp for this problem that works correctly (in the sense of the resulting buffer text) and that also allows my code to avoid changing the buffer when it's not needed. It's a limitation of my code. It can probably be lifted with a (skip-chars-forward "\t"). Stefan