Xref: utzoo gnu.emacs.help:325 comp.emacs:9509 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!shelby!apple!mips!bridge2!mdb From: mdb@ESD.3Com.COM (Mark D. Baushke) Newsgroups: gnu.emacs.help,comp.emacs Subject: Re: Making TAB = 4 no matter what Message-ID: Date: 13 Nov 90 18:21:15 GMT References: <29564@boulder.Colorado.EDU> Sender: news@bridge2.ESD.3Com.COM Followup-To: gnu.emacs.help Distribution: usa Organization: 3Com Corp., Santa Clara, CA. Lines: 42 In-reply-to: baileyc@tramp.Colorado.EDU's message of 11 Nov 90 23:36:33 GMT If you want tab stops to always be a multiple of 4, the variable tab-stop-list should be modified to something like: (setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120)) There is also a small glitch in c-mode.el which inserts a literal tab instead of going to the next tab stop. Here is a fix for that: *** lisp/c-mode.el~ Fri May 27 18:28:12 1988 --- lisp/c-mode.el Tue Nov 13 09:51:29 1990 *************** *** 287,293 **** (save-excursion (skip-chars-backward " \t") (not (bolp)))) ! (insert-tab) (c-indent-line)))) (defun c-indent-line () --- 287,295 ---- (save-excursion (skip-chars-backward " \t") (not (bolp)))) ! ;; (insert-tab) ! ;; modified by mdb: tab to tab stop seems more friendly, no? ! (tab-to-tab-stop) (c-indent-line)))) (defun c-indent-line () It would be nice if 18.56 would include the above patch. Of course, you would not need to modify c-mode if you arrange to set indent-tabs-mode to nil for every c-mode buffer you visit. This variable controls the insertion of the tab character into a buffer. Enjoy! -- Mark D. Baushke mdb@ESD.3Com.COM