Re: [COMMIT] Autoload within #'keymapp, as documented.
Aidan Kehoe <[email protected]> Thu, 3 Jul 2014 08:25:58 +0100
| Newsgroups | gmane.emacs.xemacs.patches |
|---|---|
| Message-ID | <[email protected]> |
Ar an triú lá de mí Iúil, scríobh Stephen J. Turnbull: > Aidan Kehoe writes: > > > I’d welcome discussion on this. > > What's to discuss? AFAICS your patch fixes a bug. Autoloads are > supposed to be transparent to callers. If something that autoloads > would be keymapp after loading, it should be keymapp even though it > hasn't been loaded yet. Good! An alternative would be what #'functionp does, which is return t for autoload objects without loading them. But, it’s currently documented as autoloading and that’s what the other code assumes. > If you think there may be applications that want to know if something > is an autoload, we could defun #'autoloadp. > > > src/ChangeLog addition: > > > > 2014-07-02 Aidan Kehoe <[email protected]> > > > > * keymap.c (Fkeymapp): > > Autoload within this, as documented. Our callers are not prepared > > to do the intelligent thing if a symbol that is fboundp to an > > autoloaded keymap, is not itself #'keymapp. -- ‘Liston operated so fast that he once accidentally amputated an assistant’s fingers along with a patient’s leg, […] The patient and the assistant both died of sepsis, and a spectator reportedly died of shock, resulting in the only known procedure with a 300% mortality.’ (Atul Gawande, NEJM, 2012) _______________________________________________ XEmacs-Patches mailing list [email protected] http://lists.xemacs.org/mailman/listinfo/xemacs-patches