help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Geometry and temp-buffer-max-height


From: martin rudalics
Subject: Re: Geometry and temp-buffer-max-height
Date: Thu, 02 Aug 2007 23:09:06 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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))))







reply via email to

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