unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Angelo Graziosi <angelo.graziosi@alice.it>, 26537@debbugs.gnu.org
Subject: bug#26537: Problems with Emacs frame (GTK)
Date: Tue, 18 Apr 2017 10:07:11 +0200	[thread overview]
Message-ID: <58F5C92F.6010400@gmx.at> (raw)
In-Reply-To: <eee3f423-cf63-fc7a-46f9-76603ac2f8db@alice.it>

I looked into your init.el file now.  Your problem can be encapsulated
in the following two forms:

(setq default-frame-alist
       '(
         (width . 110) ; character
         (height . 49) ; lines
         (font . "Monospace-11") ; font
         ))

(add-hook 'emacs-startup-hook 'start-sr-speedbar)

According to its doc-string, ‘emacs-startup-hook’ is run "after loading
init files and handling the command line".  This means that you want to
split a window and give the new window a size of 30 characters.  And
afterwards you want to enlarge the window's frame to 110 characters and
change its default font and at the same time keep the window size at 30
characters.  This is (almost) asking for the impossible.

The hook you want to put ‘start-sr-speedbar’ on is ‘window-setup-hook’.
According to its doc-string:

"This is very similar to `emacs-startup-hook'.  The only difference
is that this hook runs after frame parameters have been set up in
response to any settings from your init file.  Unless this matters
to you, use `emacs-startup-hook' instead."

I'm quite confident that "it matters to you" ;-)

martin






  reply	other threads:[~2017-04-18  8:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-16 21:52 bug#26537: Problems with Emacs frame (GTK) Angelo Graziosi
2017-04-17  8:17 ` martin rudalics
2017-04-17 10:44   ` Angelo Graziosi
2017-04-17 12:06     ` martin rudalics
2017-04-17 12:41   ` Angelo Graziosi
2017-04-17 13:54     ` martin rudalics
2017-04-17 14:19   ` Angelo Graziosi
2017-04-17 15:43     ` martin rudalics
2017-04-17 20:31       ` Angelo Graziosi
2017-04-18  8:07         ` martin rudalics [this message]
2017-04-18 11:23           ` Angelo Graziosi
2017-04-18 17:27             ` martin rudalics
2017-04-17 20:38       ` Angelo Graziosi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58F5C92F.6010400@gmx.at \
    --to=rudalics@gmx.at \
    --cc=26537@debbugs.gnu.org \
    --cc=angelo.graziosi@alice.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).