emacs-pretest-bug
[Top][All Lists]
Advanced

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

doc for temp-buffer-max-height and resize-temp-buffer-window


From: Drew Adams
Subject: doc for temp-buffer-max-height and resize-temp-buffer-window
Date: Sun, 28 May 2006 16:35:15 -0700

1. Doc bug:

The doc for temp-buffer-max-height says that it is the maximum window
height for temporary buffers. It references function
resize-temp-buffer-window. The doc for resize-temp-buffer-window and
temp-buffer-max-height do not say anything about
temp-buffer-resize-mode. However, that mode must be enabled for these
to have any effect.

2. Product enhancement request:

Is there no variable or set of variables that one can bind to enable
the mode, so that temp-buffer-max-height will be respected? That is,
in order to have it respected, it looks like a program must do
something like this:

 1) save the current value of temp-buffer-resize-mode,
 2) turn the mode on,
 3) do something with the mode on, and then
 4) put the mode back the way it was.

That seems like a lot of trouble. The mode doc says not to turn the
mode on by binding the mode variable, so that is presumably not an
option. It would be a lot simpler (and cleaner) if you could just bind
a variable or two, wouldn't it? For instance, make such a binding
around with-output-to-temp-buffer, so that it automatically resized
the buffer's window. An alternative, which I ended up using, was just
to explicitly call fit-window-to-buffer.




In GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600)
 of 2006-03-20 on W2ONE
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Id:/g/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<report-emacs-bug>

Recent messages:
(C:\Emacs-22-2006-03-20\bin\emacs.exe -q --no-site-file --debug-init
C:\drews-lisp-20)
Loading encoded-kb...done
For information about the GNU Project and its goals, type C-h C-p.
Loading dired...
Loading regexp-opt...done
Loading dired...done
Loading emacsbug...done





reply via email to

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