From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: Geometry and temp-buffer-max-height Date: Thu, 02 Aug 2007 23:09:06 +0200 Message-ID: <46B247F2.9050803@gmx.at> 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 1186088948 16917 80.91.229.12 (2 Aug 2007 21:09:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2007 21:09:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 02 23:09:06 2007 Return-path: Envelope-to: geh-help-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 1IGhum-0007mX-1t for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Aug 2007 23:09:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGhul-0005kc-GW for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Aug 2007 17:08:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGhuX-0005kK-5B for help-gnu-emacs@gnu.org; Thu, 02 Aug 2007 17:08:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGhuU-0005jq-QQ for help-gnu-emacs@gnu.org; Thu, 02 Aug 2007 17:08:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGhuU-0005jn-KH for help-gnu-emacs@gnu.org; Thu, 02 Aug 2007 17:08:42 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IGhuU-0000f5-3u for help-gnu-emacs@gnu.org; Thu, 02 Aug 2007 17:08:42 -0400 Original-Received: (qmail invoked by alias); 02 Aug 2007 21:08:40 -0000 Original-Received: from N721P008.adsl.highway.telekom.at (EHLO [62.47.34.8]) [62.47.34.8] by mail.gmx.net (mp017) with SMTP; 02 Aug 2007 23:08:40 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19LjMNNl5NLpKqeBJ1u8TQ9WCSIZqpH/ttEnvETY/ clEW/oiOKlcGct User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46276 Archived-At: >> 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 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))))