GNU bug report logs - #15216
cygwin: Can't modify initial frame appearance on gtk3 Emacs

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Fri, 30 Aug 2013 07:49:01 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 15216 in the body.
You can then email your comments to 15216 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#15216; Package emacs. (Fri, 30 Aug 2013 07:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 30 Aug 2013 07:49:02 GMT) Full text and rfc822 format available.

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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
Date: Fri, 30 Aug 2013 16:48:09 +0900
Hi,

I tried gtk3 Emacs for the first time and found this behavior.
Say, I have only this line in the .emacs file, it doesn't achieve
its purpose:

(setq default-frame-alist '((width . 40) (height . 20)))

The Emacs frame once goes small but expands again.  Then I tried
making it run after splashing the screen.  These two advices make
no difference:

(defadvice command-line-1 (after set-frame-size activate)
  "Set the frame size after splashing the screen."
  (setq default-frame-alist '((width . 40) (height . 20))))

(defadvice command-line-1 (after set-frame-size activate)
  "Set the frame size after splashing the screen."
  (modify-frame-parameters nil '((width . 40) (height . 20))))

But this works:

(defadvice command-line-1 (after set-frame-size activate)
  "Set the frame size after splashing the screen."
  (modify-frame-parameters nil '((width . 40) (height . 20)))
  (setq default-frame-alist '((width . 40) (height . 20))))

In relation to this, changing the default font in the .emacs
file makes the splash image disappear.  Here it is:

(set-face-font
 'default
 "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1")

This can be solved by a similar workaround like the following:

(defadvice command-line-1 (after set-default-font activate)
  "Set the default font after splashing the screen."
  (set-face-font
   'default
   "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1"))

I think those workarounds should be unnecessary because of
`frame-notice-user-settings'.

Thanks.

In GNU Emacs 24.3.50.1 (i686-pc-cygwin, GTK+ Version 3.8.2)
 of 2013-08-30 on localhost
Bzr revision: 114075 monnier <at> iro.umontreal.ca-20130829210018-w5kvrixpf2k1yjcv
Windowing system distributor `The Cygwin/X Project', version 11.0.11402000
Configured using:
 `configure --verbose --with-x-toolkit=gtk3 --without-imagemagick
 --without-dbus --without-gconf --without-gsettings'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Fri, 30 Aug 2013 09:09:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 15216 <at> debbugs.gnu.org
Subject: Re: bug#15216: 24.3.50;
 Can't modify initial frame appearance on gtk3 Emacs
Date: Fri, 30 Aug 2013 12:08:32 +0300
> Date: Fri, 30 Aug 2013 16:48:09 +0900
> From: Katsumi Yamaoka <yamaoka <at> jpl.org>
> 
> Say, I have only this line in the .emacs file, it doesn't achieve
> its purpose:
> 
> (setq default-frame-alist '((width . 40) (height . 20)))
> 
> The Emacs frame once goes small but expands again.

Did you try the same with initial-frame-alist, instead of
default-frame-alist?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Fri, 30 Aug 2013 10:04:01 GMT) Full text and rfc822 format available.

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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 15216 <at> debbugs.gnu.org
Subject: Re: bug#15216: 24.3.50;
 Can't modify initial frame appearance on gtk3 Emacs
Date: Fri, 30 Aug 2013 19:03:01 +0900
Eli Zaretskii wrote:
>> Date: Fri, 30 Aug 2013 16:48:09 +0900
>> From: Katsumi Yamaoka <yamaoka <at> jpl.org>

>> Say, I have only this line in the .emacs file, it doesn't achieve
>> its purpose:

>> (setq default-frame-alist '((width . 40) (height . 20)))

>> The Emacs frame once goes small but expands again.

> Did you try the same with initial-frame-alist, instead of
> default-frame-alist?

Yes, I did.  Emacs frame contracted and expanded.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Fri, 30 Aug 2013 12:14:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 15216 <at> debbugs.gnu.org
Subject: Re: bug#15216: 24.3.50;
 Can't modify initial frame appearance on gtk3 Emacs
Date: Fri, 30 Aug 2013 15:13:09 +0300
> Date: Fri, 30 Aug 2013 19:03:01 +0900
> From: Katsumi Yamaoka <yamaoka <at> jpl.org>
> Cc: 15216 <at> debbugs.gnu.org
> 
> Eli Zaretskii wrote:
> >> Date: Fri, 30 Aug 2013 16:48:09 +0900
> >> From: Katsumi Yamaoka <yamaoka <at> jpl.org>
> 
> >> Say, I have only this line in the .emacs file, it doesn't achieve
> >> its purpose:
> 
> >> (setq default-frame-alist '((width . 40) (height . 20)))
> 
> >> The Emacs frame once goes small but expands again.
> 
> > Did you try the same with initial-frame-alist, instead of
> > default-frame-alist?
> 
> Yes, I did.  Emacs frame contracted and expanded.

Well, this works for me, so it might indeed be GTK-specific.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Fri, 30 Aug 2013 12:49:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 15216 <at> debbugs.gnu.org
Subject: Re: bug#15216: 24.3.50;
 Can't modify initial frame appearance on gtk3 Emacs
Date: Fri, 30 Aug 2013 08:48:03 -0400
> I tried gtk3 Emacs for the first time and found this behavior.
> Say, I have only this line in the .emacs file, it doesn't achieve
> its purpose:

> (setq default-frame-alist '((width . 40) (height . 20)))

> The Emacs frame once goes small but expands again.

That's the "canonical" way, so it should work.  IOW we have a bug.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Fri, 30 Aug 2013 13:15:02 GMT) Full text and rfc822 format available.

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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15216 <at> debbugs.gnu.org
Subject: Re: bug#15216: 24.3.50;
 Can't modify initial frame appearance on gtk3 Emacs
Date: Fri, 30 Aug 2013 22:14:04 +0900
Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>> I tried gtk3 Emacs for the first time and found this behavior.
>> Say, I have only this line in the .emacs file, it doesn't achieve
>> its purpose:

>> (setq default-frame-alist '((width . 40) (height . 20)))

>> The Emacs frame once goes small but expands again.

> That's the "canonical" way, so it should work.  IOW we have a bug.

Sorry, this might be a problem that occurs only on Cygwin.
I just tested it on Fedora 18 right now, it works as expected.

In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4)
 of 2013-08-30 on localhost.localdomain
Bzr revision: 114076 dmantipov <at> yandex.ru-20130830121744-dzilf27l8pb3997i
Windowing system distributor `Fedora Project', version 11.0.11303000




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Fri, 30 Aug 2013 13:35:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Katsumi Yamaoka <yamaoka <at> jpl.org>,
 "15216 <at> debbugs.gnu.org" <15216 <at> debbugs.gnu.org>
Subject: Re: bug#15216: 24.3.50;
 Can't modify initial frame appearance on gtk3 Emacs
Date: Fri, 30 Aug 2013 15:34:28 +0200
Hi. 

It could also be the window manager that remembers the old size. 

     Jan D. 

30 aug 2013 kl. 14:48 skrev Stefan Monnier <monnier <at> iro.umontreal.ca>:

>> I tried gtk3 Emacs for the first time and found this behavior.
>> Say, I have only this line in the .emacs file, it doesn't achieve
>> its purpose:
> 
>> (setq default-frame-alist '((width . 40) (height . 20)))
> 
>> The Emacs frame once goes small but expands again.
> 
> That's the "canonical" way, so it should work.  IOW we have a bug.
> 
> 
>        Stefan
> 
> 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Fri, 30 Aug 2013 14:31:02 GMT) Full text and rfc822 format available.

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

From: Angelo Graziosi <angelo.graziosi <at> alice.it>
To: bug-emacs <bug-gnu-emacs <at> gnu.org>
Subject: bug#15216: 24.3.50;	Can't modify initial frame appearance on gtk3
 Emacs
Date: Fri, 30 Aug 2013 16:30:11 +0200
Katsumi Yamaoka wrote:
> Sorry, this might be a problem that occurs only on Cygwin.
> I just tested it on Fedora 18 right now, it works as expected.

Yes, I concord.. see also this:

http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00386.html
http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00390.html
...

Ciao,
 Angelo.




Changed bug title to 'cygwin: Can't modify initial frame appearance on gtk3 Emacs' from '24.3.50; Can't modify initial frame appearance on gtk3 Emacs' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 30 Aug 2013 20:16:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Sat, 05 Feb 2022 23:37:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 15216 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#15216: cygwin: Can't modify initial frame appearance on
 gtk3 Emacs
Date: Sun, 06 Feb 2022 00:36:17 +0100
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> Sorry, this might be a problem that occurs only on Cygwin.
> I just tested it on Fedora 18 right now, it works as expected.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Are you still seeing this issue in more recent versions of
Emacs/Cygwin/gtk3?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 05 Feb 2022 23:37:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Sun, 06 Feb 2022 22:45:01 GMT) Full text and rfc822 format available.

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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 15216 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#15216: cygwin: Can't modify initial frame appearance on
 gtk3 Emacs
Date: Mon, 07 Feb 2022 07:44:13 +0900
On Sun, 06 Feb 2022 00:36:17 +0100, Lars Ingebrigtsen wrote:
> Are you still seeing this issue in more recent versions of
> Emacs/Cygwin/gtk3?

On Fri, 30 Aug 2013 16:48:09 +0900, Katsumi Yamaoka wrote:
> Say, I have only this line in the .emacs file, it doesn't achieve
> its purpose:

> (setq default-frame-alist '((width . 40) (height . 20)))

> The Emacs frame once goes small but expands again.

There's no such a problem is in Emacs/Cygwin/gtk3 now.  It should
have been fixed.  Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15216; Package emacs. (Sun, 06 Feb 2022 22:48:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 15216 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#15216: cygwin: Can't modify initial frame appearance on
 gtk3 Emacs
Date: Sun, 06 Feb 2022 23:46:49 +0100
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> There's no such a problem is in Emacs/Cygwin/gtk3 now.  It should
> have been fixed.  Thanks.

Thanks for checking; I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 15216 <at> debbugs.gnu.org and Katsumi Yamaoka <yamaoka <at> jpl.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 06 Feb 2022 22:48:03 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. (Mon, 07 Mar 2022 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 197 days ago.

Previous Next


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