From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andrea Vettorello" Newsgroups: gmane.emacs.devel Subject: Re: Geometry and temp-buffer-max-height Date: Fri, 3 Aug 2007 09:46:37 +0200 Message-ID: <7d5440240708030046s1ebe703di1bb0ae08ab034889@mail.gmail.com> References: <46B241F8.2010002@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186141200 21265 80.91.229.12 (3 Aug 2007 11:40:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2007 11:40:00 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 03 13:39:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IGvVe-0005ak-LA for ged-emacs-devel@m.gmane.org; Fri, 03 Aug 2007 13:39:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGvVe-00053V-12 for ged-emacs-devel@m.gmane.org; Fri, 03 Aug 2007 07:39:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGrrv-0008R6-Kl for emacs-devel@gnu.org; Fri, 03 Aug 2007 03:46:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGrrr-0008Qu-0G for emacs-devel@gnu.org; Fri, 03 Aug 2007 03:46:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGrrq-0008Qr-RG for emacs-devel@gnu.org; Fri, 03 Aug 2007 03:46:38 -0400 Original-Received: from rv-out-0910.google.com ([209.85.198.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IGrrq-0007vl-DB for emacs-devel@gnu.org; Fri, 03 Aug 2007 03:46:38 -0400 Original-Received: by rv-out-0910.google.com with SMTP id c27so530683rvf for ; Fri, 03 Aug 2007 00:46:37 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q71bxgzaifnxrFcgSdaSCHhj+MQG7T6U0VGF+Rb6TEhHJgxaB7vvctoD0Fn/19tmePJYM9uDZBkODxLSB+lODxBjIUWy9WgDH0IeZI5dVVVfeeXQsW2hcYG09Vn2p8RS0LT+WDmyi+v7yReoiHuLewd1hyqDChcp1Dkyh3a1L+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dhdaaESb711V0FXjnGSuL5hjsPWvn7FAlhZzwvZPKpHquWPHuKYsUCcWBFTDEyJOqOzKyGFxdEqopK5iLXbSuWh+mwcJDA2V1+THKoBTcmpzuD14vl7BI2wgMq2XvJhbPi1gkenN6T6KVcgvKI1s5eztLjb9TJTn9QjhfalQoHk= Original-Received: by 10.141.42.10 with SMTP id u10mr969720rvj.1186127197159; Fri, 03 Aug 2007 00:46:37 -0700 (PDT) Original-Received: by 10.141.66.10 with HTTP; Fri, 3 Aug 2007 00:46:37 -0700 (PDT) In-Reply-To: <46B241F8.2010002@gmx.at> Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 03 Aug 2007 07:39:54 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75986 Archived-At: On 8/2/07, martin rudalics wrote: > >> Can you please now confirm that > >> the window is _not_ resized on your "local configuration" when you have > >> `temp-buffer-resize-mode' enabled and `temp-buffer-max-height' is left > >> at the default value. I've restored `temp-buffer-max-height' to the default value and enabled `temp-buffer-resize-mode', the temp buffers are not resized, they span to half the frame height, when passing a geometry option and with fringe other than default. > > > > I confirm it, the temp buffer doesn't apply the > > "temp-buffer-max-height" if i pass the geometry option, from command > > line or .Xdefaults/.Xrerources, and if the fringe-mode is used in any > > other way than the default. > > That doesn't answer my question but let's ignore this for the moment. > Could you please add the lines below at the end of your .emacs file, > restart Emacs, and tell me whether the problem persists (this is by no > means the correct fix but merely a temporary workaround): > > (require 'help) > > (defun resize-temp-buffer-window () > "" > (unless (or (one-window-p 'nomini) > (not (pos-visible-in-window-p (point-min))) > (> (frame-width) (window-width))) > (fit-window-to-buffer > (selected-window) > (if (functionp temp-buffer-max-height) > (funcall temp-buffer-max-height (current-buffer)) > temp-buffer-max-height)))) > I've included you code, tried with `temp-buffer-resize-mode' enabled and default for `temp-buffer-max-height', the temp buffers are resized. -- Andrea