[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2bd26ed: Further tweak describe-variable look
From: |
Lars Ingebrigtsen |
Subject: |
master 2bd26ed: Further tweak describe-variable look |
Date: |
Wed, 8 Sep 2021 04:28:25 -0400 (EDT) |
branch: master
commit 2bd26ed69770b2995c3f3d90b017048429bd1ffe
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Further tweak describe-variable look
* lisp/help-fns.el (describe-variable): Tweak how long variable
values are shown.
---
lisp/help-fns.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 3f1b56c..a7219ed 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1222,7 +1222,14 @@ it is displayed along with the global value."
;; Output the indented administrative bits.
(with-current-buffer buffer
(help-fns--run-describe-functions
- help-fns-describe-variable-functions variable)))
+ help-fns-describe-variable-functions variable))
+
+ (with-current-buffer standard-output
+ ;; If we have the long value of the variable at the
+ ;; end, remove superfluous empty lines before it.
+ (unless (eobp)
+ (while (looking-at-p "\n")
+ (delete-char 1)))))
(with-current-buffer standard-output
;; Return the text we displayed.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2bd26ed: Further tweak describe-variable look,
Lars Ingebrigtsen <=