aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/display.texi21
1 files changed, 20 insertions, 1 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 7c27b3897b2..216d0332428 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -3983,7 +3983,9 @@ with its @var{keep-margins} argument @code{nil} or omitted. However,
3983if the optional fifth argument @var{persistent} is non-@code{nil} and 3983if the optional fifth argument @var{persistent} is non-@code{nil} and
3984the other arguments are processed successfully, the values specified 3984the other arguments are processed successfully, the values specified
3985here unconditionally survive subsequent invocations of 3985here unconditionally survive subsequent invocations of
3986@code{set-window-buffer}. 3986@code{set-window-buffer}. This can be used to permanently turn off
3987fringes in the minibuffer window, consult the description of
3988@code{set-window-scroll-bars} for an example (@pxref{Scroll Bars}).
3987@end defun 3989@end defun
3988 3990
3989@defun window-fringes &optional window 3991@defun window-fringes &optional window
@@ -4418,6 +4420,23 @@ here unconditionally survive subsequent invocations of
4418@code{set-window-buffer}. 4420@code{set-window-buffer}.
4419@end defun 4421@end defun
4420 4422
4423Using the @var{persistent} argument of @code{set-window-scroll-bars}
4424and @code{set-window-fringes} (@pxref{Fringe Size/Pos}) you can
4425reliably and permanently turn off scroll bars and/or fringes in any
4426minibuffer window by adding the following snippet to your early init
4427file (@pxref{Init File}).
4428
4429@smallexample
4430@group
4431(add-hook 'after-make-frame-functions
4432 (lambda (frame)
4433 (set-window-scroll-bars
4434 (minibuffer-window frame) 0 nil 0 nil t)
4435 (set-window-fringes
4436 (minibuffer-window frame) 0 0 nil t)))
4437@end group
4438@end smallexample
4439
4421The following four functions take as argument a live window which 4440The following four functions take as argument a live window which
4422defaults to the selected one. 4441defaults to the selected one.
4423 4442