emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window-safely-shrinkable-p [was Re: Pretest begins end-June]


From: martin rudalics
Subject: Re: window-safely-shrinkable-p [was Re: Pretest begins end-June]
Date: Sat, 11 Jun 2011 22:44:33 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> The first thing I notice is that the function
> window-safely-shrinkable-p, used by calendar.el, seems to have vanished
> (with no ChangeLog entry) in r104562.

Arrrgh ...

Can you please try replacing

    (when in-calendar-window
      ;; The second test used to be window-full-width-p.
      ;; Not sure what it was/is for, except perhaps some way of saying
      ;; "try not to mess with existing configurations".
      ;; If did the wrong thing on wide frames, where we have done a
      ;; horizontal split in calendar-basic-setup.
      (if (or (one-window-p t) (not (window-safely-shrinkable-p)))
          ;; Don't mess with the window size, but ensure that the first
          ;; line is fully visible.
          (set-window-vscroll nil 0)
        ;; Adjust the window to exactly fit the displayed calendar.
        (fit-window-to-buffer nil nil calendar-minimum-window-height))

by

    (when in-calendar-window
      (if (window-iso-combined-p)
          ;; Adjust the window to exactly fit the displayed calendar.
          (fit-window-to-buffer nil nil calendar-minimum-window-height)
        ;; For a full height window or a window that is horizontally
        ;; combined don't fit height to that of its buffer.
        (set-window-vscroll nil 0))

and tell me whether it works?

Thanks, martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]