|
From: | Hugh Daschbach |
Subject: | bug#40800: 27.0.90; Incorrect external definition for calc-twos-complement-mode |
Date: | Fri, 24 Apr 2020 09:48:38 -0700 |
User-agent: | mu4e 1.3.3; emacs 27.0.90 |
Mattias Engdegård writes:
Thank you! It seems that calc-twos-complement-mode is a variable, not a function, and there were more autoloads that didn't correspond to actual functions. Would this patch work for you?(By the way, how come you found this mistake?)
That does work, thank you. Moreover, (fboundp 'calc-twos-complement-mode) now returns nil.
I ran into this trying to generate a list of functions with an arity of zero, with:
(completing-read "Function: " (let (fns) (mapatoms (lambda (x) (when (and (fboundp x) (= 0 (car (func-arity x)))) (push (symbol-name x) fns)))) fns) nil t nil 'local/mapcar-dired-history)Still need to ignore autoloaded functions, as I don't want func-arity to cause the function to be loaded. But that's where I started.
Many thanks. Hugh
[Prev in Thread] | Current Thread | [Next in Thread] |