|
From: | Stefan Monnier |
Subject: | Re: [Proposal] M-x tabify to indent only when needed. |
Date: | Tue, 25 Jul 2006 09:55:34 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> + (if (= (/ end-col tab-width) (/ beg-col tab-width)) > + ;; The spacing does not straddle a TAB boundary, so we > won't > + ;; be able to use a TAB here anyway: there's nothing to do. > + nil > This detects a case where no tabs can be used. > It doesn't detect the case where tabs already ARE used. Those cases aren't matched by the regexp. > -(defvar tabify-regexp "[ \t][ \t]+" > +(defvar tabify-regexp " [ \t]+" > Is that change supposed to exclude those other cases? Exactly. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |