[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Proposal] M-x tabify to indent only when needed.
From: |
Richard Stallman |
Subject: |
Re: [Proposal] M-x tabify to indent only when needed. |
Date: |
Mon, 24 Jul 2006 23:09:14 -0400 |
+ (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.
-(defvar tabify-regexp "[ \t][ \t]+"
+(defvar tabify-regexp " [ \t]+"
Is that change supposed to exclude those other cases?
It is a good idea to make the regexp match less often.
- [Proposal] M-x tabify to indent only when needed., Michaël Cadilhac, 2006/07/24
- Re: [Proposal] M-x tabify to indent only when needed., Michaël Cadilhac, 2006/07/24
- Re: [Proposal] M-x tabify to indent only when needed., Stefan Monnier, 2006/07/24
- Re: [Proposal] M-x tabify to indent only when needed.,
Richard Stallman <=
- Re: [Proposal] M-x tabify to indent only when needed., Stefan Monnier, 2006/07/25
- Re: [Proposal] M-x tabify to indent only when needed., Michaël Cadilhac, 2006/07/25
- Re: [Proposal] M-x tabify to indent only when needed., Stefan Monnier, 2006/07/25
- Re: [Proposal] M-x tabify to indent only when needed., Michaël Cadilhac, 2006/07/25
- Re: [Proposal] M-x tabify to indent only when needed., Stefan Monnier, 2006/07/25
- Re: [Proposal] M-x tabify to indent only when needed., Michaël Cadilhac, 2006/07/25
Re: [Proposal] M-x tabify to indent only when needed., Richard Stallman, 2006/07/24