emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 90c7634: Fix 'describe-variable' for longish variab


From: Eli Zaretskii
Subject: [Emacs-diffs] master 90c7634: Fix 'describe-variable' for longish variable values
Date: Fri, 27 Jan 2017 10:28:51 +0000 (UTC)

branch: master
commit 90c76346740c097063b4a273ceb3af01327ff2a4
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix 'describe-variable' for longish variable values
    
    * lisp/help-fns.el (describe-variable): Don't accidentally remove
    the last character of a variable's value.  (Bug#25545)
---
 lisp/help-fns.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index edbcd90..742c669 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -852,7 +852,7 @@ it is displayed along with the global value."
                    (terpri)
                    (pp val)
                     ;; Remove trailing newline.
-                    (delete-char -1))
+                    (and (= (char-before) ?\n) (delete-char -1)))
                  (let* ((sv (get variable 'standard-value))
                         (origval (and (consp sv)
                                       (condition-case nil



reply via email to

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