all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
@ 2013-08-30  7:48 Katsumi Yamaoka
  2013-08-30  9:08 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Katsumi Yamaoka @ 2013-08-30  7:48 UTC (permalink / raw)
  To: 15216

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@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'





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

* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30  7:48 bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs Katsumi Yamaoka
@ 2013-08-30  9:08 ` Eli Zaretskii
  2013-08-30 10:03   ` Katsumi Yamaoka
  2013-08-30 12:48 ` Stefan Monnier
  2013-08-30 14:30 ` Angelo Graziosi
  2 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2013-08-30  9:08 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 15216

> Date: Fri, 30 Aug 2013 16:48:09 +0900
> From: Katsumi Yamaoka <yamaoka@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?





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

* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30  9:08 ` Eli Zaretskii
@ 2013-08-30 10:03   ` Katsumi Yamaoka
  2013-08-30 12:13     ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Katsumi Yamaoka @ 2013-08-30 10:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 15216

Eli Zaretskii wrote:
>> Date: Fri, 30 Aug 2013 16:48:09 +0900
>> From: Katsumi Yamaoka <yamaoka@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.





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

* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30 10:03   ` Katsumi Yamaoka
@ 2013-08-30 12:13     ` Eli Zaretskii
  0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2013-08-30 12:13 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 15216

> Date: Fri, 30 Aug 2013 19:03:01 +0900
> From: Katsumi Yamaoka <yamaoka@jpl.org>
> Cc: 15216@debbugs.gnu.org
> 
> Eli Zaretskii wrote:
> >> Date: Fri, 30 Aug 2013 16:48:09 +0900
> >> From: Katsumi Yamaoka <yamaoka@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.





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

* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30  7:48 bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs Katsumi Yamaoka
  2013-08-30  9:08 ` Eli Zaretskii
@ 2013-08-30 12:48 ` Stefan Monnier
  2013-08-30 13:14   ` Katsumi Yamaoka
  2013-08-30 13:34   ` bug#15216: 24.3.50; " Jan Djärv
  2013-08-30 14:30 ` Angelo Graziosi
  2 siblings, 2 replies; 11+ messages in thread
From: Stefan Monnier @ 2013-08-30 12:48 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 15216

> 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





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

* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30 12:48 ` Stefan Monnier
@ 2013-08-30 13:14   ` Katsumi Yamaoka
  2022-02-05 23:36     ` bug#15216: cygwin: " Lars Ingebrigtsen
  2013-08-30 13:34   ` bug#15216: 24.3.50; " Jan Djärv
  1 sibling, 1 reply; 11+ messages in thread
From: Katsumi Yamaoka @ 2013-08-30 13:14 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 15216

Stefan Monnier <monnier@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@yandex.ru-20130830121744-dzilf27l8pb3997i
Windowing system distributor `Fedora Project', version 11.0.11303000





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

* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30 12:48 ` Stefan Monnier
  2013-08-30 13:14   ` Katsumi Yamaoka
@ 2013-08-30 13:34   ` Jan Djärv
  1 sibling, 0 replies; 11+ messages in thread
From: Jan Djärv @ 2013-08-30 13:34 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Katsumi Yamaoka, 15216@debbugs.gnu.org

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@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
> 
> 





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

* bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30  7:48 bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs Katsumi Yamaoka
  2013-08-30  9:08 ` Eli Zaretskii
  2013-08-30 12:48 ` Stefan Monnier
@ 2013-08-30 14:30 ` Angelo Graziosi
  2 siblings, 0 replies; 11+ messages in thread
From: Angelo Graziosi @ 2013-08-30 14:30 UTC (permalink / raw)
  To: 15216

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.





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

* bug#15216: cygwin: Can't modify initial frame appearance on gtk3 Emacs
  2013-08-30 13:14   ` Katsumi Yamaoka
@ 2022-02-05 23:36     ` Lars Ingebrigtsen
  2022-02-06 22:44       ` Katsumi Yamaoka
  0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-05 23:36 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 15216, Stefan Monnier

Katsumi Yamaoka <yamaoka@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





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

* bug#15216: cygwin: Can't modify initial frame appearance on gtk3 Emacs
  2022-02-05 23:36     ` bug#15216: cygwin: " Lars Ingebrigtsen
@ 2022-02-06 22:44       ` Katsumi Yamaoka
  2022-02-06 22:46         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: Katsumi Yamaoka @ 2022-02-06 22:44 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 15216, Stefan Monnier

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.





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

* bug#15216: cygwin: Can't modify initial frame appearance on gtk3 Emacs
  2022-02-06 22:44       ` Katsumi Yamaoka
@ 2022-02-06 22:46         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-06 22:46 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 15216, Stefan Monnier

Katsumi Yamaoka <yamaoka@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





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

end of thread, other threads:[~2022-02-06 22:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30  7:48 bug#15216: 24.3.50; Can't modify initial frame appearance on gtk3 Emacs Katsumi Yamaoka
2013-08-30  9:08 ` Eli Zaretskii
2013-08-30 10:03   ` Katsumi Yamaoka
2013-08-30 12:13     ` Eli Zaretskii
2013-08-30 12:48 ` Stefan Monnier
2013-08-30 13:14   ` Katsumi Yamaoka
2022-02-05 23:36     ` bug#15216: cygwin: " Lars Ingebrigtsen
2022-02-06 22:44       ` Katsumi Yamaoka
2022-02-06 22:46         ` Lars Ingebrigtsen
2013-08-30 13:34   ` bug#15216: 24.3.50; " Jan Djärv
2013-08-30 14:30 ` Angelo Graziosi

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.