* X window display bug?
@ 2008-12-01 14:36 Bo Lin
2008-12-18 18:52 ` Jan Djärv
0 siblings, 1 reply; 10+ messages in thread
From: Bo Lin @ 2008-12-01 14:36 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]
Hi emacs-devel,
I'm getting weird GUI behavior when compiling the latest CVS code
(actually I use git to pull from git://git.sv.gnu.org/emacs.git).
Attached is a screen shot of what it (started with emacs -Q) looks like.
As you can see, the left and right margins are unusually large, I can't
`split-window-horizontally' because "Window width 7 too small (after
splitting)", and the number returned by `window-width' is clearly wrong.
This behavior has been around for at least two months (it has been like
this ever since I started trying to compile emacs23). Any suggestions?
This is compiled on Ubuntu 8.04.
$ uname -a
Linux unicorn 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686 GNU/Linux
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
[-- Attachment #2: emacs23.png --]
[-- Type: image/png, Size: 61497 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-01 14:36 X window display bug? Bo Lin
@ 2008-12-18 18:52 ` Jan Djärv
2008-12-19 9:10 ` linbo
0 siblings, 1 reply; 10+ messages in thread
From: Jan Djärv @ 2008-12-18 18:52 UTC (permalink / raw)
To: Bo Lin; +Cc: emacs-devel
Bo Lin skrev:
> Hi emacs-devel,
>
> I'm getting weird GUI behavior when compiling the latest CVS code
> (actually I use git to pull from git://git.sv.gnu.org/emacs.git).
> Attached is a screen shot of what it (started with emacs -Q) looks like.
> As you can see, the left and right margins are unusually large, I can't
> `split-window-horizontally' because "Window width 7 too small (after
> splitting)", and the number returned by `window-width' is clearly wrong.
> This behavior has been around for at least two months (it has been like
> this ever since I started trying to compile emacs23). Any suggestions?
Can you post the commands you use to get to the state in the picture?
Jan D.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-18 18:52 ` Jan Djärv
@ 2008-12-19 9:10 ` linbo
2008-12-20 15:38 ` Jan Djärv
0 siblings, 1 reply; 10+ messages in thread
From: linbo @ 2008-12-19 9:10 UTC (permalink / raw)
To: Jan Dj�rv; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1008 bytes --]
Jan Djärv <jan.h.d@swipnet.se> writes:
> Bo Lin skrev:
>> Hi emacs-devel,
>>
>> I'm getting weird GUI behavior when compiling the latest CVS code
>> (actually I use git to pull from git://git.sv.gnu.org/emacs.git).
>> Attached is a screen shot of what it (started with emacs -Q) looks like.
>> As you can see, the left and right margins are unusually large, I can't
>> `split-window-horizontally' because "Window width 7 too small (after
>> splitting)", and the number returned by `window-width' is clearly wrong.
>> This behavior has been around for at least two months (it has been like
>> this ever since I started trying to compile emacs23). Any suggestions?
>
> Can you post the commands you use to get to the state in the picture?
>
> Jan D.
# emacs -Q
(emacs starts up with no errors, but margins are unusually big)
Ctrl-x 3
Then in *scratch*:
(window-width (selected-window)) Ctrl-J
Then click on mini-buffer to bring up *Messages*.
That's all.
-Bo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-19 9:10 ` linbo
@ 2008-12-20 15:38 ` Jan Djärv
2008-12-21 12:49 ` Bo Lin
0 siblings, 1 reply; 10+ messages in thread
From: Jan Djärv @ 2008-12-20 15:38 UTC (permalink / raw)
To: linbo; +Cc: emacs-devel
linbo skrev:
> Jan Dj�rv <jan.h.d@swipnet.se> writes:
>
>> Bo Lin skrev:
>>> Hi emacs-devel,
>>>
>>> I'm getting weird GUI behavior when compiling the latest CVS code
>>> (actually I use git to pull from git://git.sv.gnu.org/emacs.git).
>>> Attached is a screen shot of what it (started with emacs -Q) looks like.
>>> As you can see, the left and right margins are unusually large, I can't
>>> `split-window-horizontally' because "Window width 7 too small (after
>>> splitting)", and the number returned by `window-width' is clearly wrong.
>>> This behavior has been around for at least two months (it has been like
>>> this ever since I started trying to compile emacs23). Any suggestions?
>> Can you post the commands you use to get to the state in the picture?
>>
>> Jan D.
>
> # emacs -Q
> (emacs starts up with no errors, but margins are unusually big)
>
> Ctrl-x 3
>
> Then in *scratch*:
>
> (window-width (selected-window)) Ctrl-J
>
> Then click on mini-buffer to bring up *Messages*.
>
> That's all.
There must be more to it, for example, why are your margins so big? Can you
check /etc/X11/app-defaults (or /usr/lib/X11/app-defaults) if there is any
Emacs or EMacs file in there? Also do
% xrdb -query |grep -i emacs
and see if you get any lines. Let us know what you find.
Jan D.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-20 15:38 ` Jan Djärv
@ 2008-12-21 12:49 ` Bo Lin
2008-12-23 8:32 ` Jan Djärv
0 siblings, 1 reply; 10+ messages in thread
From: Bo Lin @ 2008-12-21 12:49 UTC (permalink / raw)
To: Jan Djärv; +Cc: emacs-devel
Hi Jan,
Jan Djärv <jan.h.d@swipnet.se> writes:
>
> There must be more to it, for example, why are your margins so big? Can you
> check /etc/X11/app-defaults (or /usr/lib/X11/app-defaults) if there is any
> Emacs or EMacs file in there?
No.
> Also do
> % xrdb -query |grep -i emacs
$ xrdb -query | grep -i emacs
Emacs*Background: #ffffff
Emacs*Dialog*background: #cccccc
Emacs*Dialog*foreground: #000000
Emacs*Foreground: #000000
Emacs*XlwScrollBar.Background: #cccccc
Emacs*XlwScrollBar.Foreground: #000000
Emacs*backgroundToolBarColor: #cccccc
Emacs*bottomToolBarShadowColor: #cccccc
Emacs*menubar*background: #cccccc
Emacs*menubar*foreground: #000000
Emacs*popup*Background: #cccccc
Emacs*popup*Foreground: #000000
Emacs*topToolBarShadowColor: #cccccc
Emacs.Font: fontset-big
Emacs.Fontset-0: -*-*-medium-r-normal--16-*-*-*-*-*-fontset-big,ascii:-*-fixed-medium-r-normal--16-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--*-*-*-*-*-*-gb2312.1980-*
Emacs.Fontset-1: -*-*-medium-r-normal--14-*-*-*-*-*-fontset-medium,ascii:-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-*
Emacs.Fontset-2: -*-*-medium-r-normal--14-*-*-*-*-*-fontset-xming,ascii:-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--12-*-*-*-*-*-gb2312.1980-*
Emacs.default.attributeBackground: #ffffff
Emacs.default.attributeForeground: #000000
Emacs.mode-line.attributeForeground: #000000
Emacs.scroll-bar.attributeBackground: #cccccc
Emacs.scroll-bar.attributeForeground: #000000
Emacs.tool-bar.attributeBackground: #cccccc
Emacs.tool-bar.attributeForeground: #000000
But then I did
$ xrdb -remove
and retried emacs, the problem still persists. I use Emacs 22 for my
daily tasks with no problems on the same system, btw.
Also I think that the big margin is just a symptom and not the cause. As
I mentioned in my previous mails, Emacs won't allow me to
'split-window-horizontally' because 'window-width' thinks my window is
only 11 columns wide, while in fact my window is much wider than 11. And
when I try to adjust the Emacs frame width using the mouse, I can only
do so in very big increments. It appears that the bigger-than-normal
margin's width is what Emacs thinks is the width of one "column".
Any suggestions on how I should proceed from here? Thanks.
Regards,
Bo
> and see if you get any lines. Let us know what you find.
>
> Jan D.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-21 12:49 ` Bo Lin
@ 2008-12-23 8:32 ` Jan Djärv
2008-12-23 9:46 ` Bo Lin
0 siblings, 1 reply; 10+ messages in thread
From: Jan Djärv @ 2008-12-23 8:32 UTC (permalink / raw)
To: Bo Lin; +Cc: emacs-devel
Hmm, can you try to recompile your Emacs with just -g (i.e. no -O)?
Jan D.
Bo Lin skrev:
> Hi Jan,
>
> Jan Djärv <jan.h.d@swipnet.se> writes:
>> There must be more to it, for example, why are your margins so big? Can you
>> check /etc/X11/app-defaults (or /usr/lib/X11/app-defaults) if there is any
>> Emacs or EMacs file in there?
>
> No.
>
>> Also do
>> % xrdb -query |grep -i emacs
>
> $ xrdb -query | grep -i emacs
> Emacs*Background: #ffffff
> Emacs*Dialog*background: #cccccc
> Emacs*Dialog*foreground: #000000
> Emacs*Foreground: #000000
> Emacs*XlwScrollBar.Background: #cccccc
> Emacs*XlwScrollBar.Foreground: #000000
> Emacs*backgroundToolBarColor: #cccccc
> Emacs*bottomToolBarShadowColor: #cccccc
> Emacs*menubar*background: #cccccc
> Emacs*menubar*foreground: #000000
> Emacs*popup*Background: #cccccc
> Emacs*popup*Foreground: #000000
> Emacs*topToolBarShadowColor: #cccccc
> Emacs.Font: fontset-big
> Emacs.Fontset-0: -*-*-medium-r-normal--16-*-*-*-*-*-fontset-big,ascii:-*-fixed-medium-r-normal--16-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--*-*-*-*-*-*-gb2312.1980-*
> Emacs.Fontset-1: -*-*-medium-r-normal--14-*-*-*-*-*-fontset-medium,ascii:-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-*
> Emacs.Fontset-2: -*-*-medium-r-normal--14-*-*-*-*-*-fontset-xming,ascii:-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--12-*-*-*-*-*-gb2312.1980-*
> Emacs.default.attributeBackground: #ffffff
> Emacs.default.attributeForeground: #000000
> Emacs.mode-line.attributeForeground: #000000
> Emacs.scroll-bar.attributeBackground: #cccccc
> Emacs.scroll-bar.attributeForeground: #000000
> Emacs.tool-bar.attributeBackground: #cccccc
> Emacs.tool-bar.attributeForeground: #000000
>
> But then I did
>
> $ xrdb -remove
>
> and retried emacs, the problem still persists. I use Emacs 22 for my
> daily tasks with no problems on the same system, btw.
>
> Also I think that the big margin is just a symptom and not the cause. As
> I mentioned in my previous mails, Emacs won't allow me to
> 'split-window-horizontally' because 'window-width' thinks my window is
> only 11 columns wide, while in fact my window is much wider than 11. And
> when I try to adjust the Emacs frame width using the mouse, I can only
> do so in very big increments. It appears that the bigger-than-normal
> margin's width is what Emacs thinks is the width of one "column".
>
> Any suggestions on how I should proceed from here? Thanks.
>
> Regards,
> Bo
>
>> and see if you get any lines. Let us know what you find.
>>
>> Jan D.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-23 8:32 ` Jan Djärv
@ 2008-12-23 9:46 ` Bo Lin
2008-12-23 16:23 ` Jan Djärv
0 siblings, 1 reply; 10+ messages in thread
From: Bo Lin @ 2008-12-23 9:46 UTC (permalink / raw)
To: Jan Djärv; +Cc: emacs-devel
Hi Jan,
Jan Djärv <jan.h.d@swipnet.se> writes:
> Hmm, can you try to recompile your Emacs with just -g (i.e. no -O)?
Yes, this is Emacs 23.0.60.2 (as of Dec 19) compiled with CFLAGS='-g',
no -O
-Bo
>
> Jan D.
>
>
> Bo Lin skrev:
>> Hi Jan,
>>
>> Jan Djärv <jan.h.d@swipnet.se> writes:
>>> There must be more to it, for example, why are your margins so big? Can you
>>> check /etc/X11/app-defaults (or /usr/lib/X11/app-defaults) if there is any
>>> Emacs or EMacs file in there?
>>
>> No.
>>
>>> Also do
>>> % xrdb -query |grep -i emacs
>>
>> $ xrdb -query | grep -i emacs
>> Emacs*Background: #ffffff
>> Emacs*Dialog*background: #cccccc
>> Emacs*Dialog*foreground: #000000
>> Emacs*Foreground: #000000
>> Emacs*XlwScrollBar.Background: #cccccc
>> Emacs*XlwScrollBar.Foreground: #000000
>> Emacs*backgroundToolBarColor: #cccccc
>> Emacs*bottomToolBarShadowColor: #cccccc
>> Emacs*menubar*background: #cccccc
>> Emacs*menubar*foreground: #000000
>> Emacs*popup*Background: #cccccc
>> Emacs*popup*Foreground: #000000
>> Emacs*topToolBarShadowColor: #cccccc
>> Emacs.Font: fontset-big
>> Emacs.Fontset-0: -*-*-medium-r-normal--16-*-*-*-*-*-fontset-big,ascii:-*-fixed-medium-r-normal--16-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--*-*-*-*-*-*-gb2312.1980-*
>> Emacs.Fontset-1: -*-*-medium-r-normal--14-*-*-*-*-*-fontset-medium,ascii:-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-*
>> Emacs.Fontset-2: -*-*-medium-r-normal--14-*-*-*-*-*-fontset-xming,ascii:-*-fixed-medium-r-normal--14-*-*-*-*-*-iso8859-1, chinese-gb2312:-*-*-medium-r-normal--12-*-*-*-*-*-gb2312.1980-*
>> Emacs.default.attributeBackground: #ffffff
>> Emacs.default.attributeForeground: #000000
>> Emacs.mode-line.attributeForeground: #000000
>> Emacs.scroll-bar.attributeBackground: #cccccc
>> Emacs.scroll-bar.attributeForeground: #000000
>> Emacs.tool-bar.attributeBackground: #cccccc
>> Emacs.tool-bar.attributeForeground: #000000
>>
>> But then I did
>>
>> $ xrdb -remove
>>
>> and retried emacs, the problem still persists. I use Emacs 22 for my
>> daily tasks with no problems on the same system, btw.
>>
>> Also I think that the big margin is just a symptom and not the cause. As
>> I mentioned in my previous mails, Emacs won't allow me to
>> 'split-window-horizontally' because 'window-width' thinks my window is
>> only 11 columns wide, while in fact my window is much wider than 11. And
>> when I try to adjust the Emacs frame width using the mouse, I can only
>> do so in very big increments. It appears that the bigger-than-normal
>> margin's width is what Emacs thinks is the width of one "column".
>>
>> Any suggestions on how I should proceed from here? Thanks.
>>
>> Regards,
>> Bo
>>
>>> and see if you get any lines. Let us know what you find.
>>>
>>> Jan D.
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-23 9:46 ` Bo Lin
@ 2008-12-23 16:23 ` Jan Djärv
2009-01-10 5:33 ` Bo Lin
0 siblings, 1 reply; 10+ messages in thread
From: Jan Djärv @ 2008-12-23 16:23 UTC (permalink / raw)
To: Bo Lin; +Cc: emacs-devel
Bo Lin skrev:
> Hi Jan,
>
> Jan Djärv <jan.h.d@swipnet.se> writes:
>
>> Hmm, can you try to recompile your Emacs with just -g (i.e. no -O)?
>
> Yes, this is Emacs 23.0.60.2 (as of Dec 19) compiled with CFLAGS='-g',
> no -O
>
Have you tried running with another font, like
% emacs -Q -fn fixed
The size of the fringes suggests tha Emacs miscalculates the font width, or
that the font itself is buggy.
Jan D.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2008-12-23 16:23 ` Jan Djärv
@ 2009-01-10 5:33 ` Bo Lin
2009-01-10 12:15 ` Jan Djärv
0 siblings, 1 reply; 10+ messages in thread
From: Bo Lin @ 2009-01-10 5:33 UTC (permalink / raw)
To: Jan Djärv; +Cc: emacs-devel
Hi Jan,
Jan Djärv <jan.h.d@swipnet.se> writes:
> Bo Lin skrev:
>> Hi Jan,
>>
>> Jan Djärv <jan.h.d@swipnet.se> writes:
>>
>>> Hmm, can you try to recompile your Emacs with just -g (i.e. no -O)?
>>
>> Yes, this is Emacs 23.0.60.2 (as of Dec 19) compiled with CFLAGS='-g',
>> no -O
>>
>
> Have you tried running with another font, like
> % emacs -Q -fn fixed
>
Yes, that fixes the problem! Seems it's caused by using non fixed-width
font as "default font". I don't why emacs would choose a variable-width
font as default font when -fn is not explicitly specified though,
definitely not my "Monospace" font according to fc-match:
$ fc-match monospace
VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
Anyway, emacs23 is working for me now, thanks a lot for your help! :)
-Bo
> The size of the fringes suggests tha Emacs miscalculates the font width, or
> that the font itself is buggy.
>
> Jan D.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: X window display bug?
2009-01-10 5:33 ` Bo Lin
@ 2009-01-10 12:15 ` Jan Djärv
0 siblings, 0 replies; 10+ messages in thread
From: Jan Djärv @ 2009-01-10 12:15 UTC (permalink / raw)
To: Bo Lin; +Cc: emacs-devel
Bo Lin skrev:
> Hi Jan,
>
> Jan Djärv <jan.h.d@swipnet.se> writes:
>
>> Bo Lin skrev:
>>> Hi Jan,
>>>
>>> Jan Djärv <jan.h.d@swipnet.se> writes:
>>>
>>>> Hmm, can you try to recompile your Emacs with just -g (i.e. no -O)?
>>> Yes, this is Emacs 23.0.60.2 (as of Dec 19) compiled with CFLAGS='-g',
>>> no -O
>>>
>> Have you tried running with another font, like
>> % emacs -Q -fn fixed
>>
>
> Yes, that fixes the problem! Seems it's caused by using non fixed-width
> font as "default font". I don't why emacs would choose a variable-width
> font as default font when -fn is not explicitly specified though,
> definitely not my "Monospace" font according to fc-match:
>
> $ fc-match monospace
> VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
It could be a bad font, but it could also be corrupted cache files. Try
% rm -rf ~/.font-cache* ~/.fontconfig
% sudo fc-cache --force
This rebuilds the cache files, it may take some time.
Jan D.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-01-10 12:15 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 14:36 X window display bug? Bo Lin
2008-12-18 18:52 ` Jan Djärv
2008-12-19 9:10 ` linbo
2008-12-20 15:38 ` Jan Djärv
2008-12-21 12:49 ` Bo Lin
2008-12-23 8:32 ` Jan Djärv
2008-12-23 9:46 ` Bo Lin
2008-12-23 16:23 ` Jan Djärv
2009-01-10 5:33 ` Bo Lin
2009-01-10 12:15 ` Jan Djärv
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).