From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Fload does not set the 'autoload property Date: Thu, 11 Oct 2007 11:15:17 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1192094136 4751 80.91.229.12 (11 Oct 2007 09:15:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 09:15:36 +0000 (UTC) To: "Emacs Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 11:15:35 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ifu8h-0006BY-2j for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 11:15:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ifu8b-0002xj-0N for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 05:15:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ifu8V-0002xe-Qk for emacs-devel@gnu.org; Thu, 11 Oct 2007 05:15:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ifu8U-0002xS-ST for emacs-devel@gnu.org; Thu, 11 Oct 2007 05:15:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ifu8U-0002xP-Lp for emacs-devel@gnu.org; Thu, 11 Oct 2007 05:15:18 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.233]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ifu8U-0008Ul-AF for emacs-devel@gnu.org; Thu, 11 Oct 2007 05:15:18 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so441124wxc for ; Thu, 11 Oct 2007 02:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=yCq1+EK+3w1XW+bg7RqAxB0IxljgWkDeQDBxvYzp5Xg=; b=lmaBCyVOEZ2HP4y3cAC1ZA90Pze6HTHDLOSf/sZcQEZa2cKc5ivcVDq4APYXvtImWEkBIgW2MS8CUBfONp4F73A5jjuDrJ+3qgpCiCE4I+oADIXMR5gzLSXTL8L/UMWoEM9kgNw5Evb04gcg4OnrAYTTkmzIn0mcXsx/VCcFkSc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ha/05Z8ycIh2JfSnSjsflhGjuBrBHISYQWnFHngDoaChmKCAO3Kzo3Uf/vhPniu1PItf5yATFvKqfa7YhfCQTGAvYQg0ME3FCG0WCyJuVbawAgPhCO6VLlGXDAhpaGJBdWydLgY7oMO0od+h6QJHTDw08Rt/yAR7yq8pmIa4ntw= Original-Received: by 10.90.94.2 with SMTP id r2mr2594583agb.1192094117643; Thu, 11 Oct 2007 02:15:17 -0700 (PDT) Original-Received: by 10.90.103.8 with HTTP; Thu, 11 Oct 2007 02:15:17 -0700 (PDT) Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80595 Archived-At: 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