From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 25166@debbugs.gnu.org, Philipp Stephani <p.stephani2@gmail.com>
Subject: bug#25166: 26.0.50; It shouldn't be possible to set the function cell of nil and t
Date: Sat, 28 Oct 2017 12:45:57 -0400 [thread overview]
Message-ID: <87r2tnb4qi.fsf@users.sourceforge.net> (raw)
In-Reply-To: <jwv60azxn7f.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Sat, 28 Oct 2017 12:16:28 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> PS for an example of why singling out nil makes sense (but this
>> doesn't apply to t) see [1].
>> Summary: (autoload #'nil "something" nil t) silently succeeds but
>> makes forward-word, backward-word, etc, (fail to) funcall nil.
>
> Why would someone do (autoload #'nil "something" nil t) ?
By accident. It's a bug in use-package.
(use-package foo-pkg :commands <commands-to-autoload>)
Creates autoloads for all the commands in <commands-to-autoload>, which
can be a symbol, or a list of symbols. But nil is also a symbol, so
passing an empty list makes an autoload for nil (because use-package
checks for symbolp before listp), rather than making autoloads for 0
commands.
next prev parent reply other threads:[~2017-10-28 16:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-11 9:41 bug#25166: 26.0.50; It shouldn't be possible to set the function cell of nil and t Philipp
2016-12-11 18:38 ` Glenn Morris
2016-12-12 20:25 ` Glenn Morris
2016-12-26 19:29 ` Philipp Stephani
2016-12-26 19:41 ` Philipp Stephani
2016-12-26 19:47 ` Eli Zaretskii
2016-12-27 15:15 ` Stefan Monnier
2016-12-27 22:49 ` Eli Zaretskii
2016-12-27 23:11 ` Stefan Monnier
2017-05-01 14:44 ` Philipp Stephani
2017-05-01 15:12 ` Eli Zaretskii
2017-10-27 17:59 ` Noam Postavsky
2017-10-28 16:16 ` Stefan Monnier
2017-10-28 16:45 ` Noam Postavsky [this message]
2017-10-29 18:10 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2tnb4qi.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=25166@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=p.stephani2@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.