From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: Re: Problem in temp-buffer-resize-mode Date: Thu, 02 Aug 2007 12:19:48 +0200 Message-ID: <46B1AFC4.2080700@gmx.at> References: <18097.25736.3076.918330@kinyarwanda.ccs.neu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186050041 7552 80.91.229.12 (2 Aug 2007 10:20:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2007 10:20:41 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Eli Barzilay Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 02 12:20:34 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IGXnA-0008GI-UK for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Aug 2007 12:20:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGXnA-0004T3-Ai for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Aug 2007 06:20:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGXn4-0004RA-0Y for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2007 06:20:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGXn2-0004Qf-V5 for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2007 06:20:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGXn2-0004QZ-Pe for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2007 06:20:20 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IGXn2-0001oC-96 for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2007 06:20:20 -0400 Original-Received: (qmail invoked by alias); 02 Aug 2007 10:20:14 -0000 Original-Received: from N721P015.adsl.highway.telekom.at (EHLO [62.47.34.15]) [62.47.34.15] by mail.gmx.net (mp020) with SMTP; 02 Aug 2007 12:20:14 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18yExQP1Ycy/2FkSqYCgEnPCyIvXMbsptRkYKYuc1 6NkjcI7DQrnTS/ User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <18097.25736.3076.918330@kinyarwanda.ccs.neu.edu> X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16269 Archived-At: > 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.