aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/help.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/help.el b/lisp/help.el
index c558b652b7e..d6cfae44183 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -1069,7 +1069,7 @@ is currently activated with completion."
1069;;; Automatic resizing of temporary buffers. 1069;;; Automatic resizing of temporary buffers.
1070(defcustom temp-buffer-max-height 1070(defcustom temp-buffer-max-height
1071 (lambda (buffer) 1071 (lambda (buffer)
1072 (if (eq (selected-window) (frame-root-window)) 1072 (if (and (display-graphic-p) (eq (selected-window) (frame-root-window)))
1073 (/ (x-display-pixel-height) (frame-char-height) 2) 1073 (/ (x-display-pixel-height) (frame-char-height) 2)
1074 (/ (- (frame-height) 2) 2))) 1074 (/ (- (frame-height) 2) 2)))
1075 "Maximum height of a window displaying a temporary buffer. 1075 "Maximum height of a window displaying a temporary buffer.
@@ -1086,7 +1086,7 @@ function is called, the window to be resized is selected."
1086 1086
1087(defcustom temp-buffer-max-width 1087(defcustom temp-buffer-max-width
1088 (lambda (buffer) 1088 (lambda (buffer)
1089 (if (eq (selected-window) (frame-root-window)) 1089 (if (and (display-graphic-p) (eq (selected-window) (frame-root-window)))
1090 (/ (x-display-pixel-width) (frame-char-width) 2) 1090 (/ (x-display-pixel-width) (frame-char-width) 2)
1091 (/ (- (frame-width) 2) 2))) 1091 (/ (- (frame-width) 2) 2)))
1092 "Maximum width of a window displaying a temporary buffer. 1092 "Maximum width of a window displaying a temporary buffer.