|
From: | martin rudalics |
Subject: | Re: [Emacs-diffs] /srv/bzr/emacs/trunk r103854: Reimplementlist-processes in Lisp. |
Date: | Fri, 08 Apr 2011 09:25:52 +0200 |
User-agent: | Thunderbird 2.0.0.21 (Windows/20090302) |
> See OP: temp-buffer-resize-mode is limited to buffers made from > with-output-to-temp-buffer. Doing it for the general display-buffer > case makes more sense, but, as Juanma pointed out, there is currently no > simple way to do this. The most simple way I can think of is (defun display-buffer-fit-window-to-buffer (buffer-or-name &optional not-this-window frame) (let* (display-buffer-function (window (display-buffer buffer-or-name not-this-window frame))) (fit-window-to-buffer window) window)) (setq display-buffer-function 'display-buffer-fit-window-to-buffer) martin
[Prev in Thread] | Current Thread | [Next in Thread] |