GNU bug report logs -
#7659
emacs - c mode tab space different between windows and linux
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7659 in the body.
You can then email your comments to 7659 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7659
; Package
emacs
.
(Thu, 16 Dec 2010 22:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Anoj Perera <anojmperera <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 16 Dec 2010 22:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi wonder if some one can shed some light on my issue below, don't
know if this is a bug or a config problem. I use emacs 23.1 for pretty
much every thing from coding to organising the day. Unfortunately I
have to use windows at work and linux (Ubuntu 10.04) at home. The
source files I create at home in my linux box are formatted quite
horribly when viewed in emacs on my Windows machine. The tab spacing
seems to have a mind of its own. I made sure tab spacing is the same
on both machines from my .emacs file. Many thanks if some could point
me in the right direction.
Thanks,
pyrus
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7659
; Package
emacs
.
(Fri, 17 Dec 2010 08:09:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7659 <at> debbugs.gnu.org (full text, mbox):
> From: Anoj Perera <anojmperera <at> gmail.com>
> Date: Thu, 16 Dec 2010 22:50:51 +0000
> Cc:
>
> Hi wonder if some one can shed some light on my issue below, don't
> know if this is a bug or a config problem. I use emacs 23.1 for pretty
> much every thing from coding to organising the day. Unfortunately I
> have to use windows at work and linux (Ubuntu 10.04) at home. The
> source files I create at home in my linux box are formatted quite
> horribly when viewed in emacs on my Windows machine. The tab spacing
> seems to have a mind of its own. I made sure tab spacing is the same
> on both machines from my .emacs file.
Two questions:
. does this happen in "emacs -Q" on both platforms (i.e., do the
source files look the same then)?
. how exactly did you set tab spacing in your .emacs, on each
platform?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7659
; Package
emacs
.
(Fri, 17 Dec 2010 10:55:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 7659 <at> debbugs.gnu.org (full text, mbox):
> From: Anoj Perera <anojmperera <at> gmail.com>
> 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 <at> 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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7659
; Package
emacs
.
(Fri, 17 Dec 2010 11:22:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 7659 <at> debbugs.gnu.org (full text, mbox):
Ok thanks, I will try that out.
Regards,
Anoj
On 17 Dec 2010, at 11:01, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Anoj Perera <anojmperera <at> gmail.com>
>> 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 <at> 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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7659
; Package
emacs
.
(Fri, 17 Dec 2010 17:40:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 7659 <at> debbugs.gnu.org (full text, mbox):
Hi I tried running emacs with -Q option and it seems to read source
files from Windows machine as it meant to read. I will try and bottom
out the configuration file issue.
Thanks
Anoj
On 17 December 2010 11:30, Anoj Perera <anojmperera <at> gmail.com> wrote:
> Ok thanks, I will try that out.
>
> Regards,
> Anoj
>
> On 17 Dec 2010, at 11:01, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>>> From: Anoj Perera <anojmperera <at> gmail.com>
>>> 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 <at> 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.
>
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7659
; Package
emacs
.
(Fri, 17 Dec 2010 18:18:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 7659 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii skrev 2010-12-17 12.00:
>
> 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.
>
Ubuntu puts stuff in /etc/emacs, mostly junk. Look there.
Jan D.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7659
; Package
emacs
.
(Fri, 17 Dec 2010 21:43:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 7659 <at> debbugs.gnu.org (full text, mbox):
Thanks it's solved now. It was the config file. I did notice there are
many .emacs.d type folders all over /usr/share and /etc/emacs
etc/emacs23.
Regards,
Anoj
On 17 Dec 2010, at 18:23, "Jan Djärv" <jan.h.d <at> swipnet.se> wrote:
>
>
> Eli Zaretskii skrev 2010-12-17 12.00:
>>
>> 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.
>>
>
> Ubuntu puts stuff in /etc/emacs, mostly junk. Look there.
>
> Jan D.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Fri, 17 Dec 2010 22:47:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Anoj Perera <anojmperera <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 17 Dec 2010 22:47:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 7659-done <at> debbugs.gnu.org (full text, mbox):
> From: Anoj Perera <anojmperera <at> gmail.com>
> Date: Fri, 17 Dec 2010 21:51:49 +0000
> Cc: Eli Zaretskii <eliz <at> gnu.org>, "7659 <at> debbugs.gnu.org" <7659 <at> debbugs.gnu.org>
>
> Thanks it's solved now. It was the config file.
Great, closing the bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 15 Jan 2011 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 157 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.