GNU bug report logs - #77628
[PATCH] ; Fix `elisp-eldoc-funcall-with-docstring' when fn has no docstring.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Tue, 8 Apr 2025 05:08:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 77628 in the body.
You can then email your comments to 77628 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#77628; Package emacs. (Tue, 08 Apr 2025 05:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Elijah Gabe Pérez <eg642616 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 08 Apr 2025 05:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] ; Fix `elisp-eldoc-funcall-with-docstring' when fn has no
 docstring.
Date: Mon, 07 Apr 2025 23:06:45 -0600
Tags: patch

This patch makes `elisp-eldoc-funcall-with-docstring' handle functions
without a docstring and limit docstring to 1000 characters.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77628; Package emacs. (Tue, 08 Apr 2025 05:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 77628 <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: 77628 <at> debbugs.gnu.org
Subject: [PATCH] ; Fix `elisp-eldoc-funcall-with-docstring' when fn has no
 docstring.
Date: Mon, 07 Apr 2025 23:08:18 -0600
[0001-Fix-elisp-eldoc-funcall-with-docstring-when-fn-has-n.patch (text/patch, attachment)]
[Message part 2 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77628; Package emacs. (Sat, 12 Apr 2025 11:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 77628 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 77628 <at> debbugs.gnu.org
Subject: Re: bug#77628: [PATCH] ;
 Fix `elisp-eldoc-funcall-with-docstring' when fn has no docstring.
Date: Sat, 12 Apr 2025 14:17:42 +0300
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Date: Mon, 07 Apr 2025 23:08:18 -0600
> 
> * lisp/progmodes/elisp-mode.el (elisp-eldoc-funcall-with-docstring):
> Add "Undocumented" as docstring if the function as no docstring,
> and limit docstring length to 1000 characters.  (bug#)

Thanks, but should 1000 be hard-coded, or should we perhaps have a
variable for it?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77628; Package emacs. (Sat, 12 Apr 2025 18:24:02 GMT) Full text and rfc822 format available.

Message #14 received at 77628 <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77628 <at> debbugs.gnu.org
Subject: Re: bug#77628: [PATCH] ; Fix `elisp-eldoc-funcall-with-docstring'
 when fn has no docstring.
Date: Sat, 12 Apr 2025 12:23:06 -0600
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
>> Date: Mon, 07 Apr 2025 23:08:18 -0600
>> 
>> * lisp/progmodes/elisp-mode.el (elisp-eldoc-funcall-with-docstring):
>> Add "Undocumented" as docstring if the function as no docstring,
>> and limit docstring length to 1000 characters.  (bug#)
>
> Thanks, but should 1000 be hard-coded, or should we perhaps have a
> variable for it?

I've added a variable for limit both
`elisp-eldoc-funcall-with-docstring' and
`elisp-eldoc-var-docstring-with-value'.

`elisp-eldoc-var-docstring-with-value' also set a limit.

[0001-Add-variable-for-control-docstring-length-in-elisp-e.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 13 Apr 2025 10:06:02 GMT) Full text and rfc822 format available.

Notification sent to Elijah Gabe Pérez <eg642616 <at> gmail.com>:
bug acknowledged by developer. (Sun, 13 Apr 2025 10:06:02 GMT) Full text and rfc822 format available.

Message #19 received at 77628-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 77628-done <at> debbugs.gnu.org
Subject: Re: bug#77628: [PATCH] ; Fix `elisp-eldoc-funcall-with-docstring'
 when fn has no docstring.
Date: Sun, 13 Apr 2025 13:05:02 +0300
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Cc: 77628 <at> debbugs.gnu.org
> Date: Sat, 12 Apr 2025 12:23:06 -0600
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> >> Date: Mon, 07 Apr 2025 23:08:18 -0600
> >> 
> >> * lisp/progmodes/elisp-mode.el (elisp-eldoc-funcall-with-docstring):
> >> Add "Undocumented" as docstring if the function as no docstring,
> >> and limit docstring length to 1000 characters.  (bug#)
> >
> > Thanks, but should 1000 be hard-coded, or should we perhaps have a
> > variable for it?
> 
> I've added a variable for limit both
> `elisp-eldoc-funcall-with-docstring' and
> `elisp-eldoc-var-docstring-with-value'.
> 
> `elisp-eldoc-var-docstring-with-value' also set a limit.

Thanks, installed with a few minor corrections.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 May 2025 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.