unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17077: 24.4.50; regression: `set-frame-size' results in wrong frame size
@ 2014-03-23 22:35 Drew Adams
  2014-03-24  9:06 ` martin rudalics
  0 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2014-03-23 22:35 UTC (permalink / raw)
  To: 17077

This build does not give the correct result when using `set-frame-size'.

In previous builds and releases, including a build as recent as
2014-03-11, (set-frame-size 75 64) ends up with these frame parameters
(using my setup, for a special-display frame):

((top + -1)
 (left + -2)
 (buried-buffer-list)
 (buffer-list #<buffer *Bookmark List*>)
 (width . 75) ; <==============================
 (height . 62)
 (tool-bar-position . top)
 (parent-id)
 (explicit-name . t)
 (display . "w32")
 (visibility . t)
 (icon-name)
 (window-id . "3476582")
 (unsplittable . t)
 (minibuffer)
 (modeline . t)
 (thumfr-non-thumbnail-frame
  (top . 12)
  (left . 4)
  (buried-buffer-list)
  (buffer-list #<buffer *Bookmark List*>)
  (width . 118)
  (height . 67)
  (tool-bar-position . top)
  (parent-id)
  (explicit-name . t)
  (display . "w32")
  (visibility . t)
  (icon-name)
  (window-id . "3476582")
  (unsplittable . t)
  (minibuffer)
  (modeline . t)
  (name . "*Bookmark List*")
  (zoomed . -2)
  (cursor-color . "Yellow")
  (background-mode . light)
  (display-type . color)
  (fringe . 0)
  (scroll-bar-width . 6)
  (cursor-type . bar)
  (auto-lower)
  (auto-raise)
  (icon-type)
  (fullscreen)
  (title)
  (buffer-predicate)
  (tool-bar-lines . 0)
  (menu-bar-lines . 0)
  (alpha)
  (right-fringe . 0)
  (left-fringe . 0)
  (line-spacing)
  (screen-gamma)
  (border-color . "black")
  (mouse-color . "Yellow")
  (background-color . "LightSteelBlue")
  (foreground-color . "Black")
  (vertical-scroll-bars . right)
  (bottom-divider-width . 2)
  (right-divider-width . 2)
  (internal-border-width . 0)
  (border-width . 2)
  (font . "-outline-Lucida Console-normal-normal-normal-mono-2-*-*-*-c-*-iso8859-1")
  (font-parameter . "-*-Lucida Console-normal-r-*-*-14-*-*-*-c-*-iso8859-1")
  (font-backend uniscribe gdi))
 (thumfr-thumbnail-frame)
 (name . "*Bookmark List*")
 (zoomed . -1)
 (cursor-color . "Yellow")
 (background-mode . light)
 (display-type . color)
 (fringe . 0)
 (scroll-bar-width . 21)
 (cursor-type . bar)
 (auto-lower)
 (auto-raise)
 (icon-type)
 (fullscreen)
 (title)
 (buffer-predicate)
 (tool-bar-lines . 0)
 (menu-bar-lines . 1)
 (alpha)
 (right-fringe . 0)
 (left-fringe . 0)
 (line-spacing)
 (screen-gamma)
 (border-color . "black")
 (mouse-color . "Yellow")
 (background-color . "LightSteelBlue")
 (foreground-color . "Black")
 (vertical-scroll-bars . right)
 (bottom-divider-width . 2)
 (right-divider-width . 2)
 (internal-border-width . 0)
 (border-width . 2)
 (font . "-outline-Lucida Console-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
 (font-parameter . "-*-Lucida Console-normal-r-*-*-14-*-*-*-c-*-iso8859-1")
 (font-backend uniscribe gdi))

The current version ends up with these frame parameters instead:

((tool-bar-position . top)
 (parent-id)
 (explicit-name)
 (display . "w32")
 (visibility . t)
 (icon-name)
 (window-id . "920808")
 (top . 37)
 (left . 255)
 (buried-buffer-list #<buffer *Backtrace*>)
 (buffer-list #<buffer *Bookmark List*>)
 (unsplittable . t)
 (minibuffer)
 (modeline . t)
 (width . 74) ; <==============================
 (height . 64)
 (name . "*Bookmark List*")
 (zoomed . -1)
 (cursor-color . "Yellow")
 (background-mode . light)
 (display-type . color)
 (fringe . 0)
 (scroll-bar-width . 21)
 (cursor-type . bar)
 (auto-lower)
 (auto-raise)
 (icon-type)
 (fullscreen)
 (title)
 (buffer-predicate)
 (tool-bar-lines . 0)
 (menu-bar-lines . 1)
 (alpha)
 (right-fringe . 0)
 (left-fringe . 0)
 (line-spacing)
 (screen-gamma)
 (border-color . "black")
 (mouse-color . "Yellow")
 (background-color . "LightSteelBlue")
 (foreground-color . "Black")
 (vertical-scroll-bars . right)
 (bottom-divider-width . 2)
 (right-divider-width . 2)
 (internal-border-width . 0)
 (border-width . 2)
 (font . "-outline-Lucida Console-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1")
 (font-parameter . "-*-Lucida Console-normal-r-*-*-14-*-*-*-c-*-iso8859-1")
 (font-backend uniscribe gdi))

I don't care so much about the height.  What is definitely wrong is
diminishing the specified width (75) by one.  The widest line in the
buffer is 75 chars wide, so fitting the frame to a width of 74 does
not cut the mustard.

Depending on the char (font) size, sometimes the frame fitting still
works as it should.  But for other sizes it has this
one-char-less-than-required-width failing.  E.g., this is the case
also for font "-outline-Lucida
Console-normal-normal-normal-mono-10-*-*-*-c-*-iso8859-1" (same font,
with size 10).


In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-03-21 on ODIEONE
Bzr revision: 116829 dancol@dancol.org-20140321121023-5tjxtiws6qa4qyod
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3' 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include' LDFLAGS=-Lc:/Devel/emacs/lib'





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

end of thread, other threads:[~2014-03-29  1:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-23 22:35 bug#17077: 24.4.50; regression: `set-frame-size' results in wrong frame size Drew Adams
2014-03-24  9:06 ` martin rudalics
2014-03-24 14:17   ` Drew Adams
2014-03-25 20:43     ` Drew Adams
2014-03-25 21:24       ` martin rudalics
2014-03-25 21:34         ` Drew Adams
2014-03-25 21:37           ` Drew Adams
2014-03-25 21:40       ` Juanma Barranquero
2014-03-28 14:59   ` Drew Adams
2014-03-29  1:51     ` Juanma Barranquero
2014-03-29  1:54       ` Drew Adams

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