larsmagne / meme

An Emacs meme generator
https://lars.ingebrigtsen.no/2016/06/27/an-emacs-meme-generator/
178 stars 8 forks source link

meme--insert-thumbnails: Wrong number of arguments: (1 . 1), 0 #10

Closed EnigmaCurry closed 5 months ago

EnigmaCurry commented 1 year ago

In my version of Emacs (28.2) image-compute-scaling-factor takes one required argument: scaling:

(defun image-compute-scaling-factor (scaling) 
    ...)

However, meme.el does not specify this argument, so it fails with:

meme--insert-thumbnails: Wrong number of arguments: (1 . 1), 0

It appears that the argument is now optional in emacs 29, but this library should probably provide one for earlier versions of emacs.