unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Hugh Daschbach <hdasch@fastmail.com>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: Hugh Daschbach <hdasch@fastmail.com>, 40800@debbugs.gnu.org
Subject: bug#40800: 27.0.90; Incorrect external definition for calc-twos-complement-mode
Date: Fri, 24 Apr 2020 09:48:38 -0700	[thread overview]
Message-ID: <87pnbwj0d5.fsf@ccss.com> (raw)
In-Reply-To: <4B3EA578-AA6A-4AE6-93E4-C6AFC3F6F41B@acm.org>


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





  reply	other threads:[~2020-04-24 16:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-23 20:27 bug#40800: 27.0.90; Incorrect external definition for calc-twos-complement-mode Hugh Daschbach
2020-04-24 10:59 ` Mattias Engdegård
2020-04-24 16:48   ` Hugh Daschbach [this message]
2020-04-24 18:23     ` Mattias Engdegård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pnbwj0d5.fsf@ccss.com \
    --to=hdasch@fastmail.com \
    --cc=40800@debbugs.gnu.org \
    --cc=mattiase@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).