Subject: bug#77292: [PATCH] ; Add newline to 'elisp-eldoc-var-docstring-with-value'

From: Elijah Gabe Pérez <[email-masked]>
Date: Wed, 26 Mar 2025 12:08:11 -0600

Tags: patch

This patch display variable docstring in
'elisp-eldoc-var-docstring-with-value' as:

#+begin_example
  font-lock-keywords: nil
  A list of keywords and corresponding font-lock highlighting rules.
  There are two kinds of values: user-level, and compiled.
  [...]
#+end_example

instead:

#+begin_example
  font-lock-keywords: nil A list of keywords and corresponding font-lock highlighting rules.
  There are two kinds of values: user-level, and compiled.
  [...]
#+end_example

>From 574852a2c77fc6b4ca2e9d6437dc7833c65f0912 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= <[email-masked]>
Date: Wed, 26 Mar 2025 11:27:36 -0600
Subject: [PATCH] ; Add newline to 'elisp-eldoc-var-docstring-with-value'

* lisp/progmodes/elisp-mode.el (elisp-eldoc-var-docstring-with-value):
Add newline. (Bug#)
---
 lisp/progmodes/elisp-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 7ebf499f7b6..76838c496c0 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1909,7 +1909,7 @@ elisp-eldoc-var-docstring-with-value
 	       (not (null cs))
 	       (not (eq cs t)))
       (funcall callback
-	       (format "%.100S %s"
+	       (format "%.100S\n%s"
 		       (symbol-value cs)
 		       (let* ((doc (documentation-property
                                     cs 'variable-documentation t))
-- 
2.49.0

-- 
                                          - E.G via GNU Emacs and Org.