[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fload does not set the 'autoload property
From: |
Juanma Barranquero |
Subject: |
Fload does not set the 'autoload property |
Date: |
Thu, 11 Oct 2007 11:15:17 +0200 |
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
- Fload does not set the 'autoload property,
Juanma Barranquero <=