From unknown Wed Jun 18 23:06:10 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#77292 <77292@debbugs.gnu.org>
To: bug#77292 <77292@debbugs.gnu.org>
Subject: Status: [PATCH] ; Add newline to 'elisp-eldoc-var-docstring-with-value'
Reply-To: bug#77292 <77292@debbugs.gnu.org>
Date: Thu, 19 Jun 2025 06:06:10 +0000
retitle 77292 [PATCH] ; Add newline to 'elisp-eldoc-var-docstring-with-valu=
e'
reassign 77292 emacs
submitter 77292 Elijah Gabe P=C3=A9rez
severity 77292 normal
tag 77292 patch
thanks
From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 26 14:08:28 2025
Received: (at submit) by debbugs.gnu.org; 26 Mar 2025 18:08:28 +0000
Received: from localhost ([127.0.0.1]:44338 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1txVAx-0004a7-Ou
for submit@debbugs.gnu.org; Wed, 26 Mar 2025 14:08:28 -0400
Received: from lists.gnu.org ([2001:470:142::17]:51280)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from )
id 1txVAv-0004Zp-37
for submit@debbugs.gnu.org; Wed, 26 Mar 2025 14:08:25 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1txVAn-0003sh-SP
for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2025 14:08:18 -0400
Received: from mail-oa1-x41.google.com ([2001:4860:4864:20::41])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1txVAm-0008Ij-6G
for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2025 14:08:17 -0400
Received: by mail-oa1-x41.google.com with SMTP id
586e51a60fabf-2c7e5fb8c38so38982fac.1
for ; Wed, 26 Mar 2025 11:08:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1743012494; x=1743617294; darn=gnu.org;
h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
:date:message-id:reply-to;
bh=jB7Ff6mz+RUhFHVhnHmzNJaJqjt+1zA3KL2QgXtRKW4=;
b=K1sgujxDImS7qntUuBfvTVSquzNHFAG6H41LIZ3EUTCjh3hAKUi1DwycZqcKaUIGVc
DE8CvMPd7R8vEjuG5WbFJvlE7C+86JgwJfK8wNZHMirx2hBZm0FZUPux6IyBTig1SKSv
DAbF3I77OOTZHf3Bh66CCmLjhGHZeJjp9eYwUXtUV1cEACHc81r7Kl0XbijzLTT4yMST
xESTODe5k0KlUYXpbWn780DrfFDK8AIJxwzMA8ttqT4TFvSk5kZr0gXOSwSGjlnf9/fA
/ofA9xE3Qc6Qj9NO/a/DuhVpSVqAnWaHp3C9HcKj8qMMdLS0pOwKagJw0qIZPFmgNVsW
JSxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1743012494; x=1743617294;
h=mime-version:message-id:date:subject:to:from:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=jB7Ff6mz+RUhFHVhnHmzNJaJqjt+1zA3KL2QgXtRKW4=;
b=N2YkLZ/+6wrskuGI+D94dG41q+88jRipprDKSEMw94s62L/wK4cAAEHPI7BLcnlejt
iXDEZVZ5Up0R3uQuk7+AeFiC+EIXjBy68t/Kuqn4vl8Fe0LlWbRjsyohzv/CcS2N8h1d
sKJecAu6ZbaZ9F4shpXf13dKHIIlmjCMHxDFb3kkvnhIh/5ObfmN1S1HyczWVGU0732T
5dOl0B5ifq4c0wkDlVlpDuIPGylem/loD+JnWd8V4j9HBtsp3DNO+Cz+Z3drgz2+xx7A
oFmFTRE+OxnPl1CucpJpD3b4JRnkmuTYSbzg3cyOkxyzoFu3WkcFui+lAGN+g80S3Oj4
kktA==
X-Gm-Message-State: AOJu0YzPETj5Rp3HMa1Ps1TyHcNRrNxfxho5OudLezLqvyWG9wRki9Ky
+IYGyu2rm+v8EBY89RGnLIA1/pVSn4T8MaBj5dMdghd2O/g3j1gx/vScYeex
X-Gm-Gg: ASbGncsc1xc6/dZxDA//DucOkon+U2ktWRTPlCkf9iTWayFClgcK0rqwL/GdFNEIQfc
d+txgdqXM6k5EdlsMdJxY4O16oH1CBPA+DCro6Kg1auORfsVR8flezorY3p2saGPXz/YKWkZWt+
6efUaJXTM4AljOMlaI9IOdd8ZDUDuSqt+lJ17MpJObHyyB/WQYbBikCU8bv8+7E2APQT8lhmYqq
2UX6h8prGTLuelF4cb0YMkUsf0zzpR/eG6lk39ZqmdpRnSI6A/c8r1aCVAXIVDXNL0k+h5oH9jL
U6eHkufMTpeF
X-Google-Smtp-Source: AGHT+IFnHheXGK5h24fxS/nUubmk/Of8FjOtI2YAV+WjruMaB0dl2E/fp0pwRFcgKgNqnIM9sZFz2w==
X-Received: by 2002:a05:6870:e389:b0:296:e4bb:80f5 with SMTP id
586e51a60fabf-2c848290fdbmr275432fac.36.1743012493942;
Wed, 26 Mar 2025 11:08:13 -0700 (PDT)
Received: from fedora ([2806:10ae:e:5fce::1]) by smtp.gmail.com with ESMTPSA id
586e51a60fabf-2c77ebc8dd1sm3152459fac.2.2025.03.26.11.08.12
for
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 26 Mar 2025 11:08:13 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?=
To: bug-gnu-emacs@gnu.org
Subject: [PATCH] ; Add newline to 'elisp-eldoc-var-docstring-with-value'
X-Debbugs-Cc:
Date: Wed, 26 Mar 2025 12:08:11 -0600
Message-ID: <874izfzmus.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2001:4860:4864:20::41;
envelope-from=eg642616@gmail.com; helo=mail-oa1-x41.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: 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
Content analysis details: (1.2 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (eg642616[at]gmail.com)
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit (eg642616[at]gmail.com)
0.0 HTML_MESSAGE BODY: HTML included in message
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.2 (/)
--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="
--==-=-=
Content-Type: text/plain
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
--==-=-=
Content-Type: text/html
Tags: patch
This patch display variable docstring in
'elisp-eldoc-var-docstring-with-value' as:
font-lock-keywords: nil
A list of keywords and corresponding font-lock highlighting rules.
There are two kinds of values: user-level, and compiled.
[...]
instead:
font-lock-keywords: nil A list of keywords and corresponding font-lock highlighting rules.
There are two kinds of values: user-level, and compiled.
[...]
--==-=-=--
--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
filename=0001-Add-newline-to-elisp-eldoc-var-docstring-with-value.patch
>From 574852a2c77fc6b4ca2e9d6437dc7833c65f0912 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?=
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
--=-=-=
Content-Type: text/plain
--
- E.G via GNU Emacs and Org.
--=-=-=--
From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 26 15:01:51 2025
Received: (at 77292) by debbugs.gnu.org; 26 Mar 2025 19:01:51 +0000
Received: from localhost ([127.0.0.1]:44398 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1txW0c-0007Xz-VE
for submit@debbugs.gnu.org; Wed, 26 Mar 2025 15:01:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44858)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1txW0b-0007Xm-GF
for 77292@debbugs.gnu.org; Wed, 26 Mar 2025 15:01:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1txW0W-0007oz-14; Wed, 26 Mar 2025 15:01:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=02RFBzw3caq1T0vb4K8zCc39VXe0AOfjZAaZLWl3PG8=; b=K7F56xWh3UhlaeSAYkaN
lWpsQbG/WpUac4I1hOATgvIx+PDNg8cwcVUv2QtQ7ECEYkriQF7K3R7c2KQZO1qYsT5vI92CM6dh4
DQBsuCoRkjzI+AJEknayI482LCVuCTaOhZerSCQmt5STvJWXn3W3GfkKAOlCdJmZOA+UgIlRySjAa
YMgUS8aDgbUmeL2FLx7//T7BVyQJ4YgCQSGyXU17ATcgjx/A4C9qxbTRtJvfUIs1NdcND9c4yXwCs
bEwuKs+VAB6fbY2VmmSjDngqU0Hw7Ep0XLd7JGVrb+DfE3yYUEYk6gqestsJ4/i4asvSzoWwb6WdS
mLr/wdCuGmLX2g==;
Date: Wed, 26 Mar 2025 21:01:38 +0200
Message-Id: <86pli3d3al.fsf@gnu.org>
From: Eli Zaretskii
To: Elijah Gabe =?utf-8?Q?P=C3=A9rez?=
In-Reply-To: <874izfzmus.fsf@gmail.com> (message from Elijah Gabe
=?utf-8?Q?P=C3=A9rez?= on Wed, 26 Mar 2025 12:08:11 -0600)
Subject: Re: bug#77292: [PATCH] ;
Add newline to 'elisp-eldoc-var-docstring-with-value'
References: <874izfzmus.fsf@gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77292
Cc: 77292@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> From: Elijah Gabe Pérez
> Date: Wed, 26 Mar 2025 12:08:11 -0600
>
> This patch display variable docstring in
> 'elisp-eldoc-var-docstring-with-value' as:
>
>
> font-lock-keywords: nil
> A list of keywords and corresponding font-lock highlighting rules.
> There are two kinds of values: user-level, and compiled.
> [...]
>
> instead:
>
>
> font-lock-keywords: nil A list of keywords and corresponding font-lock highlighting rules.
> There are two kinds of values: user-level, and compiled.
> [...]
>
That has the disadvantage of enlarging the mini-window.
Also, what does that do when ElDoc displays the documentation on the
mode line for some reason (like when the mini-window is taken)?
From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 26 18:12:14 2025
Received: (at 77292) by debbugs.gnu.org; 26 Mar 2025 22:12:14 +0000
Received: from localhost ([127.0.0.1]:44790 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1txYys-0006YE-70
for submit@debbugs.gnu.org; Wed, 26 Mar 2025 18:12:14 -0400
Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]:58483)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1txYyp-0006Xf-4Y
for 77292@debbugs.gnu.org; Wed, 26 Mar 2025 18:12:11 -0400
Received: by mail-ot1-x341.google.com with SMTP id
46e09a7af769-726819aa3fcso268644a34.0
for <77292@debbugs.gnu.org>; Wed, 26 Mar 2025 15:12:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1743027125; x=1743631925; darn=debbugs.gnu.org;
h=mime-version:user-agent:message-id:date:references:in-reply-to
:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=ismM9FFb+MuUVFCY4yHlviLDYjWE146LrZ6QVRMpMQU=;
b=huRDLRHjonJpXw1n00wM2KNyeWJNNVJGEep9wrSXqsG1ampok8e+Zb3OWY71+wHwhT
8qEwEX3jeOhW5L3TY8oUcKAF5Xaz3s/v171SBFiesNpTDocE1i9QxIuzjSd3UFyWTSqA
EoUGmx33A4dsO/dtR1vFvXTRgQzewxx9F59HELctc2/5UisNMaMgB+QIZ4/mpbnM66qB
NN91R2EA0iKzI2KEgVRHX6QYNPdtRG+AHW6rrsqBAT8NrmdzBp0/yQIrSeDz8WgAEE54
QQCyThBtP6pQnvy01xjjE6l4VmQT2bFHAa4oXLKht6/t6JbDHtcTN/TowcADvfM4GJiw
9low==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1743027125; x=1743631925;
h=mime-version:user-agent:message-id:date:references:in-reply-to
:subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=ismM9FFb+MuUVFCY4yHlviLDYjWE146LrZ6QVRMpMQU=;
b=HM/F8Oe1GDJr5DDOuQ4xcypitVwgHeGq+X/HErjprFWW/3F6EZ+f7sI49vDvmNbPnZ
dzJW6LfxgB7Y4XLsIIQ0g9LYVYv0vjjK8U1YbySclvqBPNDONwBt0qzzRlR+fxX17Kwc
JYm8STOjrbnznlnb3MxbRbaJsw2mdsc9L22xKXgMsJzrGOslYX19/ISF2yOQI4+gIzfw
BIRoQd11/ylN9g8FPSV5OLuyvXUBI2Kpfo3azjH+wvAiQCs56Mm9bPKwmA4kzr9Z94H5
oarPP7p7XactZeK4ik08lmDLh4EV/4HEM41kSFET3GdTb7JvI2ptoF4Xzt8qGtDqkAGM
UjZA==
X-Gm-Message-State: AOJu0Yz8hzl0fh41e7uVx2HSzWW9XhieJLskYZfApnfQlMSyCuWwA9e9
rUEyLd/kQ9siblIXtZqzbVv12aQMs7NGovl5xbfPGRWdIBC5FBuC3bLsHDz4
X-Gm-Gg: ASbGncv0TqS1KrczmCf/gema8oEVqFyUuSOLVPSr4bPV+bmKAtKp80UVb2/oj6Al1ZF
0KcT1lqkQlm0Sz71uDJFm24E3kBRlQjlIOekEtsuvedyJgVaEQEozj1L0Bz68lvDzGMta08erJk
5DU5YAHFHGnR50FVfdtLfQZe/qI13jVArBko8YJMOlYlsLdHG6c0ja/IibKOHcVQ2DxbZD3l1Ua
531jXhR3oohWEO/KJ9a9WO1Yw2YTFz0YDMZLE3xBiMweFEi70uglCiMUJxzdnyakWc8Kjhwt1R+
cHyBLspiFusq
X-Google-Smtp-Source: AGHT+IFrm/oa2gqdbyZmdTnnKSZ5YcwLF7/9S8Kn1+va6cwAocx6tfFifSP1YGvjDK4Oyg5RBNRq4A==
X-Received: by 2002:a05:6830:f84:b0:72c:320c:d898 with SMTP id
46e09a7af769-72c4c9fc8a3mr1083862a34.22.1743027124704;
Wed, 26 Mar 2025 15:12:04 -0700 (PDT)
Received: from fedora ([2806:10ae:e:5fce::1]) by smtp.gmail.com with ESMTPSA id
46e09a7af769-72c0abba258sm2482088a34.23.2025.03.26.15.12.03
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 26 Mar 2025 15:12:04 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?=
To: Eli Zaretskii
Subject: Re: bug#77292: [PATCH] ; Add newline to
'elisp-eldoc-var-docstring-with-value'
In-Reply-To: <86pli3d3al.fsf@gnu.org>
References: <874izfzmus.fsf@gmail.com> <86pli3d3al.fsf@gnu.org>
Date: Wed, 26 Mar 2025 16:12:03 -0600
Message-ID: <87o6xntpak.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 77292
Cc: 77292@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.7 (/)
--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="
--==-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Eli Zaretskii writes:
>> From: Elijah Gabe P=C3=A9rez
>> Date: Wed, 26 Mar 2025 12:08:11 -0600
>> This patch display variable docstring in
>> 'elisp-eldoc-var-docstring-with-value' as:
>> font-lock-keywords: nil
>> A list of keywords and corresponding font-lock highlighting rules.
>> There are two kinds of values: user-level, and compiled.
>> [...]
>> instead:
>> font-lock-keywords: nil A list of keywords and corresponding font-lock h=
ighlighting rules.
>> There are two kinds of values: user-level, and compiled.
>> [...]
> That has the disadvantage of enlarging the mini-window.
Eldoc echo window will be truncated if documentation is very large.
Also since =3Delisp-eldoc-var-docstring-with-value=3D includes full
variable docstring (including docstring newlines and length)
I don't see any difference with an additional newline here.
> Also, what does that do when ElDoc displays the documentation on the
> mode line for some reason (like when the mini-window is taken)?
It displays (full) documentation without the newlines in the modeline.
/(Note: the newlines in modeline are displayed as a ^J char for some reason=
)/
I think there should be a length limit for the eldoc documentation in
modeline.
Like in the below patch:
#+begin_src diff
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index 966158024dd..f4726798e6d 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -314,8 +314,8 @@ eldoc-minibuffer-message
(setq mode-line-format
(funcall
(if (listp mode-line-format) #'append #'list)
- (list "" '(eldoc-mode-line-string
- (" " eldoc-mode-line-string " ")))
+ (list "" '((truncate-string-to-width eldoc-mode-line-st=
ring 50 nil nil t)
+ (" " (truncate-string-to-width eldoc-mode-line-string 50 nil nil =
t) " ")))
mode-line-format)))
(setq eldoc-mode-line-string
(when (stringp format-string)
#+end_src
--==-=-=
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Eli Zaretskii <eliz@gnu.org> writes:
From: Elijah Gabe P=C3=A9rez <eg642616@gmail.com>
Date: Wed, 26 Mar 2025 12:08:11 -0600
This patch display variable docstring in
'elisp-eldoc-var-docstring-with-value' as:
font-lock-keywords: nil
A list of keywords and corresponding font-lock highlighting rules.
There are two kinds of values: user-level, and compiled.
[…]
font-lock-keywords: nil A list of keywords and corresponding font-lock=
highlighting rules.
There are two kinds of values: user-level, and compiled.
[…]
That has the disadvantage of enlarging the mini-window.
Eldoc echo window will be truncated if documentation is very large.
Also since elisp-eldoc-var-docstring-with-value
includes full<=
br />
variable docstring (including docstring newlines and length)
I don't see any difference with an additional newline here.
Also, what does that do when ElDoc displays the documentation on the
mode line for some reason (like when the mini-window is taken)?
It displays (full) documentation without the newlines in the modeline.
(Note: the newlines in modeline are displayed as a ^J char for some reas=
on)
I think there should be a length limit for the eldoc documentation in
modeline.
Like in the below patch:
=
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index 966158024dd..f4726798e6d 100644
--- =
a/lisp/emacs-lisp/eldoc.el
+++ =
b/lisp/emacs-lisp/eldoc.el
@@ -314,8 +314,8 @@ eldoc-minibuffer-message
(setq mode-line-format
(funcall
(if (listp mode-line-fo=
rmat) #'append #'list)
- (list "" '(eldoc-mode-line-strin=
g
- (" " eldoc-mode-line-s=
tring " ")))
+ (list "" '((truncate-string-to-width eldoc-mode-li=
ne-string 50 nil nil t)
+ (" " (truncate-string-to-width<=
/span> eldoc-mod=
e-line-string 50 nil nil t) " ")))
mode-line-format)))
(setq eldoc-mode-line-string
(when (stringp format-string)
--==-=-=--
--=-=-=
Content-Type: text/plain
--
- E.G via GNU Emacs and Org.
--=-=-=--