From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don provan Newsgroups: gmane.emacs.help Subject: Re: Indentation. Date: Sat, 28 Oct 2006 09:54:45 -0700 Message-ID: References: <1161965854.252710.306610@f16g2000cwb.googlegroups.com> <1162052730.412600.256330@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162057350 6245 80.91.229.2 (28 Oct 2006 17:42:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2006 17:42:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 28 19:42:27 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdsBj-0003nY-DT for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Oct 2006 19:41:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdsAx-0002gz-MR for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Oct 2006 13:40:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 28 Oct 2006 11:54:43 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:17f6IpWR8xIBcyZlplGRy/6gtgw= Original-Lines: 21 Original-NNTP-Posting-Host: 24.5.238.65 Original-X-Trace: sv3-n7SglJj498htnGYFguYdTjWfuN6K+hzEypHfGdMZpy4TbWSNxlc99dQbumrfpJL02NelhXnPRoBXWMy!HVnNCjX3OZPgJAcBdQglYrAAwEAUN7RhcCJlm5Vl/bdRNJFkkODTFBR065wjUw== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:142742 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38363 Archived-At: jmg3000@gmail.com writes: > (setq-default tab-width 4) > > should be just what you want. Whoa! The original question quite correctly asked for four *space* indentation. Changing the tab width to some non-standard value is irrelevant, just typical confusion between the tab character in the file (which, if other than 8 characters, can conflict with other utilities) and the indent command that moves lines according to a visual intentation scheme that has nothing at all to do with the tab setting. Also, there's no reason to suggest setting this value *globally*. Let's just teach him to set it in the buffers he wants this special indentation in: maybe as he gets used to normal "smart" indentation in other modes, he'll loosen up about how he thinks indentation should work. -don