changeset 105886:544761863e24

* emacs-lisp/autoload.el (autoload-rubric): Always issue a provide statement.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 06 Nov 2009 19:12:55 +0000
parents 8103235103a7
children c17b71571661
files lisp/ChangeLog lisp/emacs-lisp/autoload.el
diffstat 2 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Nov 06 18:47:48 2009 +0000
+++ b/lisp/ChangeLog	Fri Nov 06 19:12:55 2009 +0000
@@ -1,3 +1,8 @@
+2009-11-06  Chong Yidong  <cyd@stupidchicken.com>
+
+	* emacs-lisp/autoload.el (autoload-rubric): Always issue a provide
+	statement.
+
 2009-11-05  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* progmodes/ld-script.el (auto-mode-alist):
--- a/lisp/emacs-lisp/autoload.el	Fri Nov 06 18:47:48 2009 +0000
+++ b/lisp/emacs-lisp/autoload.el	Fri Nov 06 19:12:55 2009 +0000
@@ -266,12 +266,11 @@
 	    ";;; Code:\n\n"
 	    "\n"
 	    ;; This is used outside of autoload.el.
-	    (if feature
-		(concat "(provide '"
-			(if (stringp feature) feature
-			  (file-name-sans-extension basename))
-			")\n")
-	      "")
+	    "(provide '"
+	    (if (stringp feature)
+		feature
+	      (file-name-sans-extension basename))
+	    ")\n"
 	    ";; Local Variables:\n"
 	    ";; version-control: never\n"
 	    ";; no-byte-compile: t\n"