unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fload does not set the 'autoload property
@ 2007-10-11  9:15 Juanma Barranquero
  2007-10-11 14:08 ` Stefan Monnier
  2007-10-12  2:46 ` Fload does not set the `autoload' property Richard Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Juanma Barranquero @ 2007-10-11  9:15 UTC (permalink / raw)
  To: Emacs Devel

A bug (I think) reported in the pre-22.1 past:

Let's assume a simple test.el with:

;;;; test.el ;;;;
(defun test-fun () (interactive) t)
(provide 'test)
;;;;;;;;;;;;;;;;;

Then, if you define an interactive autoload for the function, and load
it through the autoload mechanism:

 M-: (autoload 'test-fun "test" nil t) [RET]
 M-x test-fun [RET]

the autoload spec gets saved:

 (get 'test-fun 'autoload) => ("test" nil t nil)

However, if you load test-fun by loading or requiring test.el:

 M-: (autoload 'test-fun "test" nil t) [RET]
 M-x load-library [RET] test [RET]

the autoload spec is not saved:

 (get 'test-fun 'autoload) => nil

             Juanma

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-10-14 16:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-11  9:15 Fload does not set the 'autoload property Juanma Barranquero
2007-10-11 14:08 ` Stefan Monnier
2007-10-11 14:27   ` Juanma Barranquero
2007-10-12  2:46 ` Fload does not set the `autoload' property Richard Stallman
2007-10-12  4:06   ` Stefan Monnier
2007-10-13  1:26   ` Juanma Barranquero
2007-10-14 16:28     ` Richard Stallman

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).