# HG changeset patch # User Oleksandr Gavenko # Date 1255853384 -10800 # Node ID e36736f245fddae40ca5f44ba56738f8419d21f0 # Parent 0ac8d1f4304df2c5b26b2f965424f9b26c1e9198 Start tab-stop-list with zero. Make i local variable. diff -r 0ac8d1f4304d -r e36736f245fd .emacs-my --- a/.emacs-my Thu Aug 20 17:40:48 2009 +0300 +++ b/.emacs-my Sun Oct 18 11:09:44 2009 +0300 @@ -800,11 +800,12 @@ (setq-default indent-tabs-mode nil) ; t - будут вставляться \t (setq tab-always-indent t) (setq c-tab-always-indent t) -(let ( (line-width 400) ) - (setq i (+ (/ line-width 4) 1)) +(let ( (line-width 400) i ) + (setq i (* (ceiling line-width 4) 4)) (setq tab-stop-list nil) - (while (> (setq i (- i 1)) 0) - (setq tab-stop-list (cons (* i 4) tab-stop-list)))) + (while (>= i 0) + (setq tab-stop-list (cons i tab-stop-list)) + (setq i (- i 4)))) ;; ---------------------------------------------------------------------- ;; Diff.