unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: andrea.vettorello@gmail.com
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Geometry and temp-buffer-max-height
Date: Thu, 02 Aug 2007 22:43:36 +0200	[thread overview]
Message-ID: <46B241F8.2010002@gmx.at> (raw)

 >> 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	other threads:[~2007-08-02 20:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-02 20:43 martin rudalics [this message]
2007-08-03  7:46 ` Geometry and temp-buffer-max-height Andrea Vettorello

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46B241F8.2010002@gmx.at \
    --to=rudalics@gmx.at \
    --cc=andrea.vettorello@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).