unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14795: height parameter inconsistent in new vs existing frames when tool-bar is enabled
@ 2013-07-04 22:52 Juanma Barranquero
  2013-07-04 23:11 ` Juanma Barranquero
  2013-07-05  9:29 ` Jan Djärv
  0 siblings, 2 replies; 5+ messages in thread
From: Juanma Barranquero @ 2013-07-04 22:52 UTC (permalink / raw)
  To: 14795

Package: emacs


This happens since at least 22.1, and I think has been discussed
before on emacs-devel, but I've been unable to find the reference.

  emacs -Q

 (let ((params '((height . 25))))
  (make-frame params)  ;; f1
  (modify-frame-parameters (make-frame) params))  ;; f2

  f1 = 28 lines
  f2 = 25 lines

Adding (tool-bar-lines . 0) to params, both frames are 25 lines.

Obviously, when creating the frame Emacs is allowing three additional
lines as space for the toolbar. tool-bar-mode defaults to 3 in a newly
created frame, at least once it has been displayed:

(let ((f (make-frame)))
  (cons (frame-parameter f 'tool-bar-lines)
        (progn
          (sit-for 0)
          (frame-parameter f 'tool-bar-lines))))

=> (1 . 3)

Does that happen in all platforms? If so, shouldn't we make the
meaning of the height frame parameter consistent in all its uses?





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

end of thread, other threads:[~2013-07-05  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-04 22:52 bug#14795: height parameter inconsistent in new vs existing frames when tool-bar is enabled Juanma Barranquero
2013-07-04 23:11 ` Juanma Barranquero
2013-07-05  7:45   ` martin rudalics
2013-07-05  9:51     ` Juanma Barranquero
2013-07-05  9:29 ` Jan Djärv

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