unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5491: Inconsistencies in Setting Frame Size
@ 2010-01-29  9:27 Bostjan Vilfan
  2015-01-03 18:45 ` martin rudalics
  0 siblings, 1 reply; 3+ messages in thread
From: Bostjan Vilfan @ 2010-01-29  9:27 UTC (permalink / raw)
  To: 5491

[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

Hello,
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.
Regards,
Bostjan Vilfan


      

[-- Attachment #2: Type: text/html, Size: 1525 bytes --]

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

* bug#5491: Inconsistencies in Setting Frame Size
  2010-01-29  9:27 bug#5491: Inconsistencies in Setting Frame Size Bostjan Vilfan
@ 2015-01-03 18:45 ` martin rudalics
  2015-02-13 18:29   ` martin rudalics
  0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2015-01-03 18:45 UTC (permalink / raw)
  To: 5491; +Cc: Bostjan Vilfan

 > 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





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

* bug#5491: Inconsistencies in Setting Frame Size
  2015-01-03 18:45 ` martin rudalics
@ 2015-02-13 18:29   ` martin rudalics
  0 siblings, 0 replies; 3+ messages in thread
From: martin rudalics @ 2015-02-13 18:29 UTC (permalink / raw)
  To: 5491-done; +Cc: Bostjan Vilfan

> This should work now with current master/trunk.  Tested with Gtk, Lucid
> and Motif as well as on Windows.  Please have a look.

Closing.  If you still see this problem with current trunk/master don't
hesitate to complain.

Thanks, martin





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

end of thread, other threads:[~2015-02-13 18:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29  9:27 bug#5491: Inconsistencies in Setting Frame Size Bostjan Vilfan
2015-01-03 18:45 ` martin rudalics
2015-02-13 18:29   ` martin rudalics

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