Subject: 24.3.50; NS regression: frame size does not adjust to smaller desktop
From: Adrian Robert <[email-masked]>
To: [email-masked]
Date: Tue, 25 Jun 2013 13:19:51 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

If I drag an emacs frame from one display to another in a multi-monitor setup, the frame used to automatically resize to fit the smaller display. Now it now longer does. And if you had a large frame size remembered from the previous run, and start on a smaller display, it will also fail to adjust. Not sure when this regressed, it may have been either in the Mitsuharu-related display size-reporting function changes or else in some general size-and-windowing-related changes that occurred earlier. 

In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.4.0, NS apple-appkit-1187.39)
of 2013-06-25 on vishuddha.local
Bzr revision: 113168 [email-masked]
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure --with-ns CFLAGS=-Os'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  iswitchb-mode: t
  auto-image-file-mode: t
  which-function-mode: t
  global-hl-line-mode: t
  show-paren-mode: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  ns-extended-platform-support-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill

Recent input:
<down-mouse-1> <mouse-1> C-x C-f <M-backspace> <M-backspace> 
N a <tab> <tab> p l <tab> <backspace> <backspace> <tab> 
<tab> E n <tab> <M-backspace> <tab> <tab> D o c <tab> 
<tab> c l o u d 2 _ l i c e n t <backspace> s i n g 
. t x t <return> <menu-bar> <options> <blink-cursor-mode> 
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
Loading /usr/local/share/emacs/site-lisp/gnuserv-compat.el (source)...done
Loading `gnuserv-compat': old-style backquotes detected!
Loading mic-paren (compiled; note, source file is newer)...done
Loading gnus...done
Loading /Users/arobert/.emacs.d/.session...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Package assoc is obsolete!
Making completion list... [4 times]
(New file)
Blink-Cursor mode disabled

Load-path shadows:
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/speedbar/speedbar hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/speedbar
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/speedbar/sb-image hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/sb-image
/usr/local/share/emacs/site-lisp/format-spec hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/format-spec
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/common/ezimage hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/ezimage
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/speedbar/dframe hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/dframe
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/xsd-regexp hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/xsd-regexp
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/xmltok hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/xmltok
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-xsd hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-xsd
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-valid hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-valid
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-util hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-util
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-uri hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-uri
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-pttrn hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-pttrn
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-parse hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-parse
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-nxml hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-nxml
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-match hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-match
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-maint hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-maint
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-loc hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-loc
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-dt hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-dt
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/rng-cmpct hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/rng-cmpct
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-util hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-util
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-uchnm hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-uchnm
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-rap hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-rap
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-parse hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-parse
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-outln hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-outln
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-ns hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-ns
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-mode hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-mode
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-maint hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-maint
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-glyph hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-glyph
/usr/local/share/emacs/site-lisp/nxml-mode-20041004/nxml-enc hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/nxml/nxml-enc
/usr/local/share/emacs/site-lisp/uudecode hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/mail/uudecode
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/eieio/eieio hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/eieio
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/eieio/eieio-speedbar hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/eieio-speedbar
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/eieio/eieio-opt hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/eieio-opt
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/eieio/eieio-custom hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/eieio-custom
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/eieio/eieio-base hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/eieio-base
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/eieio/chart hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/chart
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/semantic/semantic hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/cedet/semantic
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/common/mode-local hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/cedet/mode-local
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/common/inversion hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/cedet/inversion
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/ede/ede hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/cedet/ede
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/common/cedet hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/cedet/cedet
/usr/local/share/emacs/site-lisp/cedet-1.0pre4/common/cedet-files hides /Users/arobert/src/EmacsApp/Bzr/trunk/nextstep/Emacs.app/Contents/Resources/lisp/cedet/cedet-files

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums vc-fossil eieio-opt disp-table help-mode semantic-el
semantic-bovine bovine-debug semantic-debug gnus gnus-ems nnheader mail-utils
cus-start cus-load iswitchb image-file which-func imenu hl-line mic-paren
paren tramp tramp-compat auth-source gnus-util mm-util mail-prsvr
password-cache tramp-loaddefs trampver shell pcomplete format-spec decompile
gnuserv-compat devices gnuserv nxml-enc powershell-mode compile thingatpt
session coffee-mode comint ansi-color magit-bisect magit-key-mode magit
diff-mode log-edit ring pcvs-util add-log ns-mark-nav ecb-autoloads cedet
cedet-contrib-load speedbar-load semantic-load semantic-ia-sb semantic-analyze
semantic-ctxt semantic-format semantic-cb semantic-sort semanticdb-find
semanticdb-el semanticdb-search semantic-find semanticdb semantic-util-modes
semantic-util semantic semantic-lex semantic-tag working fame semantic-fw
mode-local find-func derived eieio-load ede-speedbar ede ede-load
eieio-speedbar speedbar sb-image ezimage dframe assoc eieio-custom wid-edit
ede-source eieio-base eieio cl-macs gv cl cl-loaddefs cl-lib cogre-load
cedet-load inversion edmacro kmacro nadvice advice help-fns
ns-platform-support easy-mmode easymenu time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule custom
widget hashtable-print-readable backquote make-network-process ns multi-tty
emacs)