unofficial mirror of bug-gnu-emacs@gnu.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

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 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).