]> git.eshelyaron.com Git - emacs.git/commitdiff
(resize-temp-buffer-window): Use window-full-width-p
authorMartin Rudalics <rudalics@gmx.at>
Mon, 6 Aug 2007 06:51:13 +0000 (06:51 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 6 Aug 2007 06:51:13 +0000 (06:51 +0000)
instead of comparing frame-width and window-width.

lisp/ChangeLog
lisp/help.el

index 4dd70c7eff8a261870bdbe7ff8b9473b5e5ae517..39c2cd1fdcf0c52f42a6ae69bfe497140554b9bd 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-06  Martin Rudalics  <rudalics@gmx.at>
+
+       * help.el (resize-temp-buffer-window): Use window-full-width-p
+       instead of comparing frame-width and window-width.
+
 2007-08-05  Peter Povinec  <ppovinec <at> yahoo.com> (tiny change)
 
        * term.el: Honor term-default-fg-color and term-default-bg-color
index f75e26f93e6d26640dc55aaf3480ad58dd8fbfa9..4a94fd35bc7b870c79feb5386dd831cdafc4ace8 100644 (file)
@@ -958,14 +958,14 @@ This applies to `help', `apropos' and `completion' buffers, and some others."
     (remove-hook 'temp-buffer-show-hook 'resize-temp-buffer-window)))
 
 (defun resize-temp-buffer-window ()
-  "Resize the current window to fit its contents.
+  "Resize the selected window to fit its contents.
 Will not make it higher than `temp-buffer-max-height' nor smaller than
 `window-min-height'.  Do nothing if it is the only window on its frame, if it
 is not as wide as the frame or if some of the window's contents are scrolled
 out of view."
   (unless (or (one-window-p 'nomini)
               (not (pos-visible-in-window-p (point-min)))
-              (/=  (frame-width) (window-width)))
+              (not (window-full-width-p)))
     (fit-window-to-buffer
      (selected-window)
      (if (functionp temp-buffer-max-height)