From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7659: emacs - c mode tab space different between windows and linux Date: Fri, 17 Dec 2010 13:00:46 +0200 Message-ID: <83aak4hdep.fsf@gnu.org> References: <83ei9ghl2f.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1292585033 17313 80.91.229.12 (17 Dec 2010 11:23:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Dec 2010 11:23:53 +0000 (UTC) Cc: 7659@debbugs.gnu.org To: Anoj Perera Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 17 12:23:47 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTYPa-000249-RZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Dec 2010 12:23:47 +0100 Original-Received: from localhost ([127.0.0.1]:42853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTYPa-0006Ka-33 for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Dec 2010 06:23:46 -0500 Original-Received: from [140.186.70.92] (port=43563 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTYOr-0005vA-IL for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2010 06:23:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTYOq-0006Vz-A0 for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2010 06:23:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTYOq-0006Vr-3e for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2010 06:23:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PTXxm-0005h9-Iz; Fri, 17 Dec 2010 05:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Dec 2010 10:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7659-submit@debbugs.gnu.org id=B7659.129258326721846 (code B ref 7659); Fri, 17 Dec 2010 10:55:02 +0000 Original-Received: (at 7659) by debbugs.gnu.org; 17 Dec 2010 10:54:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTXxC-0005gJ-1J for submit@debbugs.gnu.org; Fri, 17 Dec 2010 05:54:26 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTXx8-0005g2-UF for 7659@debbugs.gnu.org; Fri, 17 Dec 2010 05:54:24 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LDK00100JWGJ500@a-mtaout20.012.net.il> for 7659@debbugs.gnu.org; Fri, 17 Dec 2010 13:00:41 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.167.122]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LDK000X3JX4BIE0@a-mtaout20.012.net.il>; Fri, 17 Dec 2010 13:00:41 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 17 Dec 2010 05:55:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42579 Archived-At: > From: Anoj Perera > Date: Fri, 17 Dec 2010 09:59:37 +0000 > > Hi many thanks for your reply. Haven't tried the -Q option (without > loading the .emacs file?). Please do. I think you will discover that the display on Ubuntu will then look exactly like that on Windows. And please keep 7659@debbugs.gnu.org on the list of addressees, so this whole discussion gets recorded in the history of your bug report. > I've attached a source file coded with > emacs in linux (Ubuntu 10.04) and a screenshot same file viewed in > emacs in Windows. You can note the diference, function name and > arguments are indented little too much. I see your file exactly like in the screenshot, both on Windows and on GNU/Linux. So I think you have some site init file on Ubuntu that sets certain options related to C indentation. "emacs -Q" will bypass the customizations on that file, so you will know this for sure. If this is indeed the case, you should look at your site init file, and do the same on Windows. > I am guessing this is a character encoding issue. No, character encoding doesn't (and cannot) have anything with indentation. It's just that (if my guess is right) on Ubuntu you have some customizations that you need to have on your Windows .emacs, and then you will see the same display.