all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3600: 23.0.94; shrink-window-if-larger-than-buffer
@ 2009-06-17 19:44 Drew Adams
  2009-06-18 10:07 ` martin rudalics
  0 siblings, 1 reply; 8+ messages in thread
From: Drew Adams @ 2009-06-17 19:44 UTC (permalink / raw)
  To: emacs-pretest-bug

Dunno if there is a bug here, beyond possibly improving the doc
string. In general, I have a question about the code.
 
The code imposes this as one of the conditions for fitting the window
to the buffer:
 
(or (not (frame-parameter frame 'minibuffer))
    (let ((mini-window (minibuffer-window frame)))
      (or (null mini-window)
          (not (eq frame (window-frame mini-window)))
               (< (nth 3 edges) (nth 1 (window-edges mini-window)))
               (> (nth 1 edges) (frame-parameter frame 'menu-bar-lines)))))
 
I don't understand the last condition (>). At the least, this
condition seems to be missing from the doc string:
 
"Do nothing if the buffer contains more lines than the present window
height, or if some of the window's contents are scrolled out of view,
or if shrinking this window would also shrink another window, or if
the window is the only window of its frame."
 
What is that last condition (>) for?  What is the relation between the
number of menu-bar-lines and the `Top' position of the window?
 
And doesn't this code raise an error if the `menu-bar-lines' parameter
is nil? Should it really be doing that?
 
 
 
In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600)
 of 2009-05-24 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
 






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

end of thread, other threads:[~2011-09-17 14:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17 19:44 bug#3600: 23.0.94; shrink-window-if-larger-than-buffer Drew Adams
2009-06-18 10:07 ` martin rudalics
2009-06-18 17:23   ` Drew Adams
2009-06-19  8:51     ` martin rudalics
2009-06-19 21:23       ` Drew Adams
2009-06-20  8:08         ` martin rudalics
2011-09-17  6:08         ` Lars Magne Ingebrigtsen
2011-09-17 14:06           ` Drew Adams

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.