Subject: Re: bug#79212: 31.0.50; Malformed C-h m output

From: Eshel Yaron <[email-masked]>
Date: Tue, 12 Aug 2025 13:57:31 +0200

close 79212 31.1
quit

Stefan Monnier <[email-masked]> writes:

>>> Good points, here's a slightly DRYer diff:
>>> 
>>> diff --git a/lisp/help-fns.el b/lisp/help-fns.el
>>> index 9cd30107002..e9601d52e33 100644
>>> --- a/lisp/help-fns.el
>>> +++ b/lisp/help-fns.el
>>> @@ -2253,13 +2253,14 @@ describe-mode
>>>                       (describe-function major))))
>>>            (insert " mode")
>>>            (when-let* ((file-name (find-lisp-object-file-name major nil)))
>>> -	    (insert (format " defined in %s:\n\n"
>>> +	    (insert (format " defined in %s"
>>>                              (buttonize
>>>                               (help-fns-short-filename file-name)
>>>                               (lambda (_)
>>>                                 (help-function-def--button-function
>>>                                  major file-name))))))
>>> -          (insert (help-split-fundoc (documentation major) nil 'doc)
>>> +          (insert ":\n\n"
>>> +                  (help-split-fundoc (documentation major) nil 'doc)
>>>                    (with-current-buffer buffer
>>>                      (help-fns--list-local-commands)))
>>>            (ensure-empty-lines 1)
>>> 
>>
>> Thanks, LGTM.
>
> +1

Great, now pushed to master in commit ae5287c37b7.  Closing.

Thanks,

Eshel