GNU bug report logs - #12234
24.1; If set both (scroll-bar-mode -1) and (set-fringe-mode 0), and then try to resize the frame, the frame will gradual getting thin.

Previous Next

Package: emacs;

Reported by: hbin <embrace.hbin <at> gmail.com>

Date: Sun, 19 Aug 2012 18:32:01 UTC

Severity: normal

Merged with 12417

Found in versions 24.1, 24.2

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12234 in the body.
You can then email your comments to 12234 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12234; Package emacs. (Sun, 19 Aug 2012 18:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to hbin <embrace.hbin <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 Aug 2012 18:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: hbin <embrace.hbin <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1; If set both (scroll-bar-mode -1) and (set-fringe-mode 0), and
	then try to resize the frame, the frame will gradual getting thin.
Date: Mon, 20 Aug 2012 00:20:56 +0800
Hi there,

I'm using Emacs 24.1, if I both set (scroll-bar-mode -1) and
(set-fringe-mode 0), then if I trying to resize the frame, the frame
will gradual getting thin.

See my question on the Stack Overflow please:
http://stackoverflow.com/questions/11373826/how-to-disable-fringe-in-emacs

So does Emacs 23.3.1 do.

Sincerely yours,
Huang Bin


In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
of 2012-08-13 on think
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
`configure '--with-x-toolkit=gtk3''

Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: en_US.UTF-8
value of $LC_NUMERIC: en_US.UTF-8
value of $LC_TIME: en_US.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=fcitx
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: Ruby

Minor modes in effect:
volatile-highlights-mode: t
rinari-minor-mode: t
ruby-tools-mode: t
rainbow-delimiters-mode: t
autopair-mode: t
flymake-mode: t
shell-dirtrack-mode: t
diff-auto-refine-mode: t
desktop-save-mode: t
savehist-mode: t
eproject-mode: t
yas/global-mode: t
yas/minor-mode: t
global-auto-complete-mode: t
auto-complete-mode: t
icomplete-mode: t
show-paren-mode: t
linum-mode: t
delete-selection-mode: t
global-auto-revert-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
size-indication-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-f C-f C-f C-f C-f C-f C-f C-f C-f
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f
C-f C-f C-f C-p C-b C-b C-b C-b C-b C-b C-p C-p C-p
C-p C-p C-p C-p M-h M-h M-w M-[ C-n C-n C-o ( c u s
<tab> C-n C-n C-n C-n <tab> SPC C-y SPC C-a C-f M-h
M-h M-w M-[ M-] M-] C-n C-n C-b C-b C-b C-b C-b C-n
C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p
C-n C-n C-n C-n C-a C-a C-p C-p C-a C-p C-p C-p C-p
M-h M-w C-c C-g C-g M-k M-k C-g C-g C-w C-x C-s M-k
M-k M-k C-x C-f r e <tab> <return> M-k C-x C-f C-h
C-h C-h <return> p r <return> s <return> <return> C-c
; f e p r <return> C-s f o r c e <return> C-n C-f C-e
C-c C-c C-x C-s C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n M-k C-x C-b q C-c ; f h u <return>
C-p C-p C-p C-b M-x r e p o r t <return>

Recent messages:
[yas] Loading for `rails-mode', just-in-time: (yas/load-directory-1 
/home/hbin/.emacs.d/snippets/rails-mode (quote rails-mode) (quote 
(text-mode)))!
[yas] Loading compiled snippets from 
/home/hbin/.emacs.d/snippets/rails-mode
Mark saved where search started
Saving file 
/home/hbin/Projects/sample_app/config/environments/production.rb...
Wrote /home/hbin/Projects/sample_app/config/environments/production.rb
byte-code: End of buffer [16 times]
Formats have changed, recompiling...done
Updating buffer list...done
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
call-interactively: End of buffer

Load-path shadows:
~/.emacs.d/vendor/magit/.dir-locals hides 
~/.emacs.d/vendor/full-ack/.dir-locals
~/.emacs.d/vendor/volatile-highlights.el/volatile-highlights hides 
~/.emacs.d/vendor/volatile-highlights
/home/hbin/.emacs.d/vendor/rinari/util/jump/which-func hides 
/usr/local/share/emacs/24.1/lisp/progmodes/which-func
~/.emacs.d/vendor/magit/.dir-locals hides 
/usr/local/share/emacs/24.1/lisp/gnus/.dir-locals

Features:
(shadow sort flyspell ispell mail-extr emacsbug message rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils
ibuf-ext multi-isearch time-stamp whitespace find-func vc-git unsafep
ffap volatile-highlights hbin-prog prog-markdown prog-clojure
prog-python prog-rails rinari jump inflections findr ruby-compilation
which-func inf-ruby rhtml-mode rhtml-navigation rhtml-sgml-hacks
rhtml-ruby-hook html-mode-expansions sgml-mode rhtml-erb rhtml-fonts
scss-mode coffee-mode yaml-mode slim-mode sass-mode haml-mode js json
imenu newcomment cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs markdown-mode noutline outline
css-mode-expansions css-mode prog-ruby ruby-tools ruby-mode-expansions
ruby-mode yari rvm prog-lisp prog-web zencoding-mode rainbow-mode
prog-lua prog-js prog-c rainbow-delimiters hbin-misc smex
whole-line-or-region autopair misc-navigation ace-jump-mode full-ack
dirtree dired-x dired windata tree-mode tree-widget wid-edit
misc-flymake flymake-ruby flymake warnings compile flymake-cursor
misc-ibuffer ibuffer misc-ispell misc-eshell tramp tramp-compat
auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc
gnus-util mm-util mail-prsvr password-cache shell pcomplete comint
ansi-color format-spec tramp-loaddefs regexp-opt misc-magit magit-bisect
magit-key-mode magit server ediff-merg ediff-diff ediff-wind ediff-help
ediff-util ediff-mult ediff-init ediff iswitchb diff-mode log-edit
pcvs-util add-log misc-mark rename-sgml-tag mark-more-like-this
inline-string-rectangle mark-multiple highlight-symbol hi-lock thingatpt
expand-region expand-region-custom expand-region-core misc-hist desktop
saveplace savehist misc-tags etags-select etags eproject ring esh-var
esh-io esh-cmd esh-ext esh-proc esh-arg eldoc esh-groups eshell
esh-module esh-mode esh-util misc-yas yasnippet dropdown-list derived
help-mode view easymenu misc-ac auto-complete-config auto-complete
easy-mmode popup misc hbin-kbds windmove edmacro kmacro hbin-defuns
hbin-editor uniquify advice help-fns advice-preload icomplete ido avoid
paren linum delsel autorevert hbin-ui solarized-dark-theme
solarized-definitions cl time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12234; Package emacs. (Sun, 19 Aug 2012 19:06:01 GMT) Full text and rfc822 format available.

Message #8 received at 12234 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: hbin <embrace.hbin <at> gmail.com>
Cc: 12234 <at> debbugs.gnu.org
Subject: Re: bug#12234: 24.1;
	If set both (scroll-bar-mode -1) and (set-fringe-mode 0), and
	then	try to resize the frame, the frame will gradual getting thin.
Date: Sun, 19 Aug 2012 22:04:53 +0300
> Date: Mon, 20 Aug 2012 00:20:56 +0800
> From: hbin <embrace.hbin <at> gmail.com>
> 
> I'm using Emacs 24.1, if I both set (scroll-bar-mode -1) and
> (set-fringe-mode 0), then if I trying to resize the frame, the frame
> will gradual getting thin.
> 
> See my question on the Stack Overflow please:
> http://stackoverflow.com/questions/11373826/how-to-disable-fringe-in-emacs
> 
> So does Emacs 23.3.1 do.

Thank you, but please show a complete recipe.  The Stack Overflow
question indicates that linum-mode is being used, and also it is not
clear how do you start Emacs again -- do you have the fringe-mode and
scroll-bar-mode set in your .emacs or something?

At least I cannot reproduce the problem using just what you wrote.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12234; Package emacs. (Sun, 19 Aug 2012 20:04:01 GMT) Full text and rfc822 format available.

Message #11 received at 12234 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: eliz <at> gnu.org
Cc: 12234 <at> debbugs.gnu.org, embrace.hbin <at> gmail.com
Subject: Re: bug#12234: 24.1;
	If set both (scroll-bar-mode -1) and (set-fringe-mode
	0), and then	try to resize the frame,
	the frame will gradual getting thin.
Date: Mon, 20 Aug 2012 00:03:26 +0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Mon, 20 Aug 2012 00:20:56 +0800
>> From: hbin <embrace.hbin <at> gmail.com>
>>
>> I'm using Emacs 24.1, if I both set (scroll-bar-mode -1) and
>> (set-fringe-mode 0), then if I trying to resize the frame, the frame
>> will gradual getting thin.
>>
>> See my question on the Stack Overflow please:
>> 
http://stackoverflow.com/questions/11373826/how-to-disable-fringe-in-emacs
>>
>> So does Emacs 23.3.1 do.
>
> Thank you, but please show a complete recipe.  The Stack Overflow
> question indicates that linum-mode is being used, and also it is not
> clear how do you start Emacs again -- do you have the fringe-mode and
> scroll-bar-mode set in your .emacs or something?
>
> At least I cannot reproduce the problem using just what you wrote.

Like I mentioned there in comments, I could reproduce it from emacs -Q
in Ubuntu.
Just evaluate `(scroll-bar-mode -1)`, then `(set-fringe-mode 0)`, then
grab a frame corner and drag it.

By the way, with Emacs 24.1, the console shows this:

(emacs-snapshot-gtk:2218): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: 
assertion `GTK_IS_MENU_SHELL(menu)' failed

(emacs-snapshot-gtk:2218): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: 
assertion `GTK_IS_MENU_SHELL(menu)' failed

(emacs-snapshot-gtk:2218): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: 
assertion `GTK_IS_MENU_SHELL(menu)' failed

(emacs-snapshot-gtk:2218): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: 
assertion `GTK_IS_MENU_SHELL(menu)' failed

** (emacs-snapshot-gtk:2218): CRITICAL **: os_bar_hide: assertion 
`OS_IS_BAR (bar)' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: gtk_widget_hide: assertion 
`GTK_IS_WIDGET (widget)' failed

** (emacs-snapshot-gtk:2218): CRITICAL **: os_bar_hide: assertion 
`OS_IS_BAR (bar)' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: gtk_widget_hide: assertion 
`GTK_IS_WIDGET (widget)' failed

** (emacs-snapshot-gtk:2218): CRITICAL **: os_bar_set_parent: assertion 
`OS_IS_BAR (bar)' failed

** (emacs-snapshot-gtk:2218): CRITICAL **: os_bar_hide: assertion 
`OS_IS_BAR (bar)' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: gtk_widget_hide: assertion 
`GTK_IS_WIDGET (widget)' failed

** (emacs-snapshot-gtk:2218): CRITICAL **: os_bar_set_parent: assertion 
`OS_IS_BAR (bar)' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

(emacs-snapshot-gtk:2218): Gtk-CRITICAL **: 
gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed

--Dmitry




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12234; Package emacs. (Sun, 19 Aug 2012 20:29:01 GMT) Full text and rfc822 format available.

Message #14 received at 12234 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 12234 <at> debbugs.gnu.org, hbin <embrace.hbin <at> gmail.com>
Subject: Re: bug#12234: 24.1;
	If set both (scroll-bar-mode -1) and (set-fringe-mode
	0), and	then	try to resize the frame,
	the frame will gradual getting thin.
Date: Sun, 19 Aug 2012 22:28:30 +0200
>> I'm using Emacs 24.1, if I both set (scroll-bar-mode -1) and
>> (set-fringe-mode 0), then if I trying to resize the frame, the frame
>> will gradual getting thin.
>>
>> See my question on the Stack Overflow please:
>> http://stackoverflow.com/questions/11373826/how-to-disable-fringe-in-emacs
>>
>> So does Emacs 23.3.1 do.
> 
> Thank you, but please show a complete recipe.  The Stack Overflow
> question indicates that linum-mode is being used, and also it is not
> clear how do you start Emacs again -- do you have the fringe-mode and
> scroll-bar-mode set in your .emacs or something?
> 
> At least I cannot reproduce the problem using just what you wrote.

I expected Glenn to say that this is related to

http://debbugs.gnu.org/10954

martin





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12234; Package emacs. (Mon, 20 Aug 2012 02:43:03 GMT) Full text and rfc822 format available.

Message #17 received at 12234 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 12234 <at> debbugs.gnu.org, embrace.hbin <at> gmail.com
Subject: Re: bug#12234: 24.1;
	If set both (scroll-bar-mode -1) and (set-fringe-mode 0), and
	then	try to resize the frame, the frame will gradual getting thin.
Date: Mon, 20 Aug 2012 05:41:50 +0300
> Date: Mon, 20 Aug 2012 00:03:26 +0400
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> CC: embrace.hbin <at> gmail.com, 12234 <at> debbugs.gnu.org
> 
> Like I mentioned there in comments, I could reproduce it from emacs -Q
> in Ubuntu.
> Just evaluate `(scroll-bar-mode -1)`, then `(set-fringe-mode 0)`, then
> grab a frame corner and drag it.

I already tried that, and saw no problems.

I guess this is GTK-specific.




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Thu, 30 Aug 2012 16:22:02 GMT) Full text and rfc822 format available.

Notification sent to hbin <embrace.hbin <at> gmail.com>:
bug acknowledged by developer. (Thu, 30 Aug 2012 16:22:02 GMT) Full text and rfc822 format available.

Message #22 received at 12234-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: eliz <at> gnu.org, 12234-done <at> debbugs.gnu.org, embrace.hbin <at> gmail.com
Subject: Re: bug#12234: 24.1;
	If set both (scroll-bar-mode -1) and (set-fringe-mode 0), and
	then	try to resize the frame, the frame will gradual getting thin.
Date: Thu, 30 Aug 2012 18:20:00 +0200
Hello.

The concept of zero is still to complicated for Gtk+3/Unity.   I have checked in a fix that avoids that dreaded number.

Please try it.

19 aug 2012 kl. 22:03 skrev Dmitry Gutov <dgutov <at> yandex.ru>:

> By the way, with Emacs 24.1, the console shows this:
> 
> (emacs-snapshot-gtk:2218): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
> 

Did you compile this 24.1 yourself?  Emacs has no libdbusmenu implementation so this must come from somewhere else.

> (emacs-snapshot-gtk:2218): Gtk-CRITICAL **: gtk_distribute_natural_allocation: assertion `extra_space >= 0' failed
> 

This is from Gtk+ when it fights the user and the window manager for who should determine the Emacs frame size.  Everybody looses.

	Jan D.







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12234; Package emacs. (Thu, 30 Aug 2012 20:46:01 GMT) Full text and rfc822 format available.

Message #25 received at 12234-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: eliz <at> gnu.org, 12234-done <at> debbugs.gnu.org, embrace.hbin <at> gmail.com
Subject: Re: bug#12234: 24.1;
	If set both (scroll-bar-mode -1) and (set-fringe-mode
	0), and then	try to resize the frame,
	the frame will gradual getting thin.
Date: Fri, 31 Aug 2012 00:44:35 +0400
On 30.08.2012 20:20, Jan Djärv wrote:
> Hello.
>
> The concept of zero is still to complicated for Gtk+3/Unity.   I have checked in a fix that avoids that dreaded number.
>
> Please try it.

Looks okay now, thanks. The latest trunk also doesn't write anything to 
the console (could be just because I build it myself).

> 19 aug 2012 kl. 22:03 skrev Dmitry Gutov <dgutov <at> yandex.ru>:
>
>> By the way, with Emacs 24.1, the console shows this:
>>
>> (emacs-snapshot-gtk:2218): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
>>
>
> Did you compile this 24.1 yourself?  Emacs has no libdbusmenu implementation so this must come from somewhere else.

Nope, it was a third-party build from here: 
https://launchpad.net/~cassou/+archive/emacs
Package version 20120807-1~ppa1~precise1.

--Dmitry




Forcibly Merged 12234 12417. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 11 Sep 2012 17:35:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Oct 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.