From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Weird Tabbing Effects Date: Wed, 02 Apr 2008 11:49:21 +0200 Message-ID: <87d4p8oace.fsf@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207129850 26071 80.91.229.12 (2 Apr 2008 09:50:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2008 09:50:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 02 11:51:22 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jgzcc-0003Tk-1O for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2008 11:51:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgzbz-0006Gf-Sf for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2008 05:50:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgzbC-0005uW-2m for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 05:49:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JgzbA-0005t0-3S for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 05:49:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgzb9-0005sh-Bi for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 05:49:39 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jgzb8-00078s-Jz for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 05:49:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jgzb2-0000rc-Ii for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 09:49:32 +0000 Original-Received: from dslb-084-063-001-210.pools.arcor-ip.net ([84.63.1.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Apr 2008 09:49:32 +0000 Original-Received: from tassilo by dslb-084-063-001-210.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Apr 2008 09:49:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-001-210.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:oEfPGph/baL90GryPeqdZBkfxtk= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:52968 Archived-At: Peter Dyballa writes: >> Is there any way I can fix these files so that they're viewable in >> other editors? Also, what caused this problem? > > Just make sure that all programmes use the same tab width! This value > can be set on mechanical typewriter machines as well as in > applications. Well, there is also a side-effect with fonts: > proportional fonts can make problems. Additionally, emacs by default indents with tabs and spaces. A tab is 8 chars wide, and if a line should be indented by 10 chars, vanilla emacs will insert one tab ant two spaces. Most editors use only tabs or only spaces, and when the tab-width isn't 8 the files you wrote in emacs look weired. One way to get along with that is to open the files with emacs and do M-x customize-option RET indent-tabs-mode and set it to off (nil). Then save the files again, and all tabs will be converted to spaces. I prefer indenting with spaces, but others milages may vary. HTH, Tassilo -- Chuck Norris describes human beings as "a sociable holder for blood and guts".