Rename +eval-overlay-max-lines -> +eval-popup-min-lines

Generalize variable.
This commit is contained in:
Henrik Lissner 2019-10-29 18:17:44 -04:00
parent effee30138
commit 762c374198
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
(if (with-temp-buffer
(insert output)
(>= (count-lines (point-min) (point-max))
+eval-overlay-max-lines))
+eval-popup-min-lines))
(let ((output-buffer (get-buffer-create "*doom eval*"))
(origin (selected-window)))
(with-current-buffer output-buffer
@ -41,7 +41,7 @@
(with-temp-buffer
(insert output)
(>= (count-lines (point-min) (point-max))
+eval-overlay-max-lines))
+eval-popup-min-lines))
(not (require 'eros nil t)))
#'+eval-display-results-in-popup
#'+eval-display-results-in-overlay)

View file

@ -1,8 +1,8 @@
;;; tools/eval/config.el -*- lexical-binding: t; -*-
(defvar +eval-overlay-max-lines 4
(defvar +eval-popup-min-lines 4
"The output height threshold (inclusive) before output is displayed in a popup
buffer rather than an overlay on the line at point.")
buffer rather than an overlay on the line at point or the minibuffer.")
;; remove ellipsis when printing sexps in message buffer
(setq eval-expression-print-length nil