Subject: bug#35663: 27.0.50; Eldoc support for apply

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 26 Aug 2020 12:32:36 +0200

Michael Heerdegen <[email-masked]> writes:

> when editing something like
>
> (apply #'call-process
>   (car command)
>   nil
>   (if stderr-file (list t stderr-file) t)
>   nil
>   (append (cdr command) (list archive name)))
>
> eldoc support would be useful to see the argument names of
> 'call-process' instead of the signature of 'apply'.

Yeah, that would be really nice...  Some people might want to know what
the signature to apply is, though, but probably a lot fewer.

> @@ -1356,6 +1356,16 @@ elisp-eldoc-documentation-function
>  	  ((eq current-symbol (car current-fnsym))
>  	   (or (apply #'elisp-get-fnsym-args-string current-fnsym)
>  	       (elisp-get-var-docstring current-symbol)))
> +          ((and (memq (car current-fnsym) '(apply apply-partially))
> +                (< 1 (cadr current-fnsym))
> +                (let ((args (save-excursion

[...]

The patch no longer applies, because eldoc has been rewritten
substantially over the last year.  Is there any interest in resurrecting
this patch and getting it applied?  I've added João to the Cc.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no