From: martin rudalics <rudalics@gmx.at>
To: 5491@debbugs.gnu.org
Cc: Bostjan Vilfan <bvilf@yahoo.com>
Subject: bug#5491: Inconsistencies in Setting Frame Size
Date: Sat, 03 Jan 2015 19:45:55 +0100 [thread overview]
Message-ID: <54A838E3.5020209@gmx.at> (raw)
In-Reply-To: <422878.5492.qm@web58605.mail.re3.yahoo.com>
> I've noticed that the effect of setting frame size is not consistent among the various methods of performing the task. I can illustrate this with the following example involving several steps:
>
> 1. Define the function
>
> (defun testfn () "tests frame creation"
> (interactive nil)
>
> (other-frame 1)
>
> (let ((frms (frame-list)))
> (set-frame-size (car frms) <x-size> <y-size>) ; e.g. <x-size>=76 <y-size>=40
> )
>
> (setq default-frame-alist '((width . <x-size>) (height . <y-size>)))
>
> )
>
> 2. Start off with one frame, and create a second frame;
>
> 3. Evaluation of testfn will set the size of the second frame; at the same time
> the default size for future frames will be set.
>
> 4. Create a third frame. It will be seen that the size of the third frame is different from the size of the second frame that was set in testfn. In my opinion the default-frame-alist parameters should have the same effect as the set-frame-size parameters, but apparently they do not.
This should work now with current master/trunk. Tested with Gtk, Lucid
and Motif as well as on Windows. Please have a look.
Thanks, martin
next prev parent reply other threads:[~2015-01-03 18:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 9:27 bug#5491: Inconsistencies in Setting Frame Size Bostjan Vilfan
2015-01-03 18:45 ` martin rudalics [this message]
2015-02-13 18:29 ` martin rudalics
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54A838E3.5020209@gmx.at \
--to=rudalics@gmx.at \
--cc=5491@debbugs.gnu.org \
--cc=bvilf@yahoo.com \
/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 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.