[Top][All Lists]

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

Re: Problem in temp-buffer-resize-mode

From: martin rudalics
Subject: Re: Problem in temp-buffer-resize-mode
Date: Thu, 02 Aug 2007 12:19:48 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> Try this (using version 22.1.1 on Fedora):
>   (set-fringe-mode 1)
>   (temp-buffer-resize-mode 1)
> and you'll see that temp buffers are not resized.  The problem is that
> the small fringe makes (window-width) bigger than (frame-width), which
> makes the test in `resize-temp-buffer-window' fail.

Thanks for reporting this bug.  In fact a test like

  (=  (frame-width) (window-width))

is used quite frequently in Elisp code and may fail in all these cases
just as it did for you.  FWIW these tests should be replaced by calling
a function `window-full-width-p' (the function `display-buffer' uses to
check whether it should split the largest window).

In any case something is inherently wrong with `frame-width' and
`window-width' if the latter may return a larger value than the former.

reply via email to

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