GNU bug report logs - #10186
23.3; save-some-buffers not making review windows large enough

Previous Next

Package: emacs;

Reported by: Dave Abrahams <dave <at> boostpro.com>

Date: Thu, 1 Dec 2011 19:09:02 UTC

Severity: normal

Tags: moreinfo

Found in version 23.3

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Dave Abrahams <dave <at> boostpro.com>
Cc: 10186 <at> debbugs.gnu.org
Subject: bug#10186: 23.3;	save-some-buffers not making review windows large enough
Date: Fri, 23 Dec 2011 17:33:55 +0100
> Oh... that isn't going to work for me until I upgrade to Emacs24 (I
> don't have window-total-size).

Try the below then.  It's more expensive since constructing the window
list means one cons cell for each live window on the changed frame.

martin


(defun make-small-windows-softly-dedicated ()
  (dolist (window (window-list nil 'nomini))
    (cond
     ((and (> (window-height window) 10)
	   (eq (window-dedicated-p window) 'too-small))
      (set-window-dedicated-p window nil))
     ((and (<= (window-height window) 10)
	   (not (window-dedicated-p window)))
      (set-window-dedicated-p window 'too-small)))))

(add-hook 'window-configuration-change-hook 'make-small-windows-softly-dedicated)




This bug report was last modified 3 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.