unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/embark 09a7d69b01: eww-download-callback takes 2 args on 27.1 (fix #557)
       [not found] ` <20221108195739.EB60EC00AB5@vcs2.savannah.gnu.org>
@ 2022-11-08 20:02   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2022-11-08 20:02 UTC (permalink / raw)
  To: emacs-devel; +Cc: Omar Antolín Camarena

> +                  (if (= (car (func-arity #'eww-download-callback)) 3)
> +                      (list url dir)
> +                    (list url)))))

Hmm... `func-arity` will not give you the right answer when someone
installed an advice on `eww-download-callback`.  You're probably better
off checking `emacs-major-version` (or calling first with 2 args and if
it signals a `wrong-number-of-arguments` error then try again with 1 arg).


        Stefan




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-08 20:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <166793745965.20693.10172859917052078452@vcs2.savannah.gnu.org>
     [not found] ` <20221108195739.EB60EC00AB5@vcs2.savannah.gnu.org>
2022-11-08 20:02   ` [elpa] externals/embark 09a7d69b01: eww-download-callback takes 2 args on 27.1 (fix #557) Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).