all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* tab size with emacs22 on Windows
@ 2008-05-14 15:08 Baurzhan Ismagulov
  2008-05-15  3:11 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Baurzhan Ismagulov @ 2008-05-14 15:08 UTC (permalink / raw
  To: help-gnu-emacs

Hello,

I've installed
ftp://ftp.gnu.org/gnu/emacs/windows/emacs-22.2-bin-i386.zip , and
HORIZONTAL TABULATION characters in files with .c extension are
displayed as four spaces. I have (add-hook 'c-mode-common-hook '(lambda
() (c-set-style "linux"))) in my ~/.emacs and expect them to be
displayed as eight spaces.

Pre-built 22.1.1 for Windows from the same site does the same, 21.3.1
works as I expect. 22.1.1 from Debian unstable works as I expect.

I haven't found any info on that on the web, in the archives, and I
couldn't find a bug database for emacs on savannah.

How can I fix the problem?

Thanks in advance,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tab size with emacs22 on Windows
  2008-05-14 15:08 tab size with emacs22 on Windows Baurzhan Ismagulov
@ 2008-05-15  3:11 ` Eli Zaretskii
  2008-05-15  3:16   ` Eli Zaretskii
                     ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Eli Zaretskii @ 2008-05-15  3:11 UTC (permalink / raw
  To: help-gnu-emacs

> Date: Wed, 14 May 2008 17:08:54 +0200
> From: Baurzhan Ismagulov <ibr@radix50.net>
> 
> I've installed
> ftp://ftp.gnu.org/gnu/emacs/windows/emacs-22.2-bin-i386.zip , and
> HORIZONTAL TABULATION characters in files with .c extension are
> displayed as four spaces. I have (add-hook 'c-mode-common-hook '(lambda
> () (c-set-style "linux"))) in my ~/.emacs and expect them to be
> displayed as eight spaces.

I cannot reproduce this with "emacs -Q" after setting style to
"linux".  Are you sure there's no other setting on your .emacs that
modifies tab-size?




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tab size with emacs22 on Windows
  2008-05-15  3:11 ` Eli Zaretskii
@ 2008-05-15  3:16   ` Eli Zaretskii
  2008-05-15 10:25   ` Baurzhan Ismagulov
                     ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2008-05-15  3:16 UTC (permalink / raw
  To: help-gnu-emacs

> Date: Thu, 15 May 2008 06:11:09 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> Are you sure there's no other setting on your .emacs that modifies
> tab-size?
  ^^^^^^^^
Should be "tab-width".




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tab size with emacs22 on Windows
  2008-05-15  3:11 ` Eli Zaretskii
  2008-05-15  3:16   ` Eli Zaretskii
@ 2008-05-15 10:25   ` Baurzhan Ismagulov
       [not found]   ` <mailman.11616.1210847165.18990.help-gnu-emacs@gnu.org>
                     ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Baurzhan Ismagulov @ 2008-05-15 10:25 UTC (permalink / raw
  To: help-gnu-emacs

Hello Eli,

On Thu, May 15, 2008 at 06:11:09AM +0300, Eli Zaretskii wrote:
> > I've installed
> > ftp://ftp.gnu.org/gnu/emacs/windows/emacs-22.2-bin-i386.zip , and
> > HORIZONTAL TABULATION characters in files with .c extension are
> > displayed as four spaces. I have (add-hook 'c-mode-common-hook '(lambda
> > () (c-set-style "linux"))) in my ~/.emacs and expect them to be
> > displayed as eight spaces.
> 
> I cannot reproduce this with "emacs -Q" after setting style to
> "linux".  Are you sure there's no other setting on your .emacs that
> modifies tab-size?

Aha, emacs 22.2.1 works as I expect with -Q. However, when I rename all
.emacs files I can find to .emacs.OLD, start emacs without options, open
a file with a .c extension, and M-x c-set-style RET linux RET, tabs are
displayed as three spaces (I've counted wrongly yesterday).

For now, I could work with -Q, but I'd like to solve this problem; how
could I further analyze it?

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tab size with emacs22 on Windows
       [not found]   ` <mailman.11616.1210847165.18990.help-gnu-emacs@gnu.org>
@ 2008-05-15 11:27     ` Jason Rumney
  2008-05-15 13:20       ` Baurzhan Ismagulov
  0 siblings, 1 reply; 8+ messages in thread
From: Jason Rumney @ 2008-05-15 11:27 UTC (permalink / raw
  To: help-gnu-emacs

On May 15, 11:25 am, Baurzhan Ismagulov <i...@radix50.net> wrote:

> Aha, emacs 22.2.1 works as I expect with -Q. However, when I rename all
> .emacs files I can find to .emacs.OLD, start emacs without options, open
> a file with a .c extension, and M-x c-set-style RET linux RET, tabs are
> displayed as three spaces (I've counted wrongly yesterday).
>
> For now, I could work with -Q, but I'd like to solve this problem; how
> could I further analyze it?

Try M-x find-library site-start
and M-x find-library default

and if one or both of those is found, check what they contain.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tab size with emacs22 on Windows
  2008-05-15 11:27     ` Jason Rumney
@ 2008-05-15 13:20       ` Baurzhan Ismagulov
  0 siblings, 0 replies; 8+ messages in thread
From: Baurzhan Ismagulov @ 2008-05-15 13:20 UTC (permalink / raw
  To: help-gnu-emacs

Hello Jason,

On Thu, May 15, 2008 at 04:27:53AM -0700, Jason Rumney wrote:
> > Aha, emacs 22.2.1 works as I expect with -Q. However, when I rename all
> > .emacs files I can find to .emacs.OLD, start emacs without options, open
> > a file with a .c extension, and M-x c-set-style RET linux RET, tabs are
> > displayed as three spaces (I've counted wrongly yesterday).
...
> Try M-x find-library site-start
> and M-x find-library default
> 
> and if one or both of those is found, check what they contain.

None was found.

Suddenly, I can't reproduce the problem any more, everything works fine
with all versions and .emacs :-/ . Thanks Eli and Jason for your prompt
answers!

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tab size with emacs22 on Windows
  2008-05-15  3:11 ` Eli Zaretskii
                     ` (2 preceding siblings ...)
       [not found]   ` <mailman.11616.1210847165.18990.help-gnu-emacs@gnu.org>
@ 2008-05-15 14:07   ` Baurzhan Ismagulov
       [not found]   ` <mailman.11627.1210860482.18990.help-gnu-emacs@gnu.org>
  4 siblings, 0 replies; 8+ messages in thread
From: Baurzhan Ismagulov @ 2008-05-15 14:07 UTC (permalink / raw
  To: help-gnu-emacs

On Thu, May 15, 2008 at 06:11:09AM +0300, Eli Zaretskii wrote:
> > Date: Wed, 14 May 2008 17:08:54 +0200
> > From: Baurzhan Ismagulov <ibr@radix50.net>
> > 
> > I've installed
> > ftp://ftp.gnu.org/gnu/emacs/windows/emacs-22.2-bin-i386.zip , and
> > HORIZONTAL TABULATION characters in files with .c extension are
> > displayed as four spaces. I have (add-hook 'c-mode-common-hook '(lambda
> > () (c-set-style "linux"))) in my ~/.emacs and expect them to be
> > displayed as eight spaces.

Oh, it turned out that I had been lost in different .emacs files:
emacs22 saves it to c:\Documents and Settings\ibr\Application Data,
Cygwin emacs -- to ~, and emacs21 -- to c:\.

The tab width behavior was caused by (set-default-font
"-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1") in
~/.emacs. I wrapped it into (if (eq window-system 'x) (set-default-font
...)), and now everything works fine.

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tab size with emacs22 on Windows
       [not found]   ` <mailman.11627.1210860482.18990.help-gnu-emacs@gnu.org>
@ 2008-05-15 14:20     ` Jason Rumney
  0 siblings, 0 replies; 8+ messages in thread
From: Jason Rumney @ 2008-05-15 14:20 UTC (permalink / raw
  To: help-gnu-emacs

On May 15, 3:07 pm, Baurzhan Ismagulov <i...@radix50.net> wrote:

> Oh, it turned out that I had been lost in different .emacs files:
> emacs22 saves it to c:\Documents and Settings\ibr\Application Data,
> Cygwin emacs -- to ~, and emacs21 -- to c:\.

Actually all versions save to ~/.emacs, but if HOME is not explicitly
defined, they differ in their default location for it. Emacs 22 should
find the c:\.emacs and use that if it exists though, before defaulting
to the location under the APPDATA directory.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-05-15 14:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 15:08 tab size with emacs22 on Windows Baurzhan Ismagulov
2008-05-15  3:11 ` Eli Zaretskii
2008-05-15  3:16   ` Eli Zaretskii
2008-05-15 10:25   ` Baurzhan Ismagulov
     [not found]   ` <mailman.11616.1210847165.18990.help-gnu-emacs@gnu.org>
2008-05-15 11:27     ` Jason Rumney
2008-05-15 13:20       ` Baurzhan Ismagulov
2008-05-15 14:07   ` Baurzhan Ismagulov
     [not found]   ` <mailman.11627.1210860482.18990.help-gnu-emacs@gnu.org>
2008-05-15 14:20     ` Jason Rumney

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.