Function: package-autoload-ensure-default-file

package-autoload-ensure-default-file is a byte-compiled function defined in package.el.gz.

Signature

(package-autoload-ensure-default-file FILE)

Documentation

Make sure that the autoload file FILE exists and if not create it.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package-autoload-ensure-default-file (file)
  "Make sure that the autoload file FILE exists and if not create it."
  (unless (file-exists-p file)
    (require 'autoload)
    (write-region (autoload-rubric file "package" nil) nil file nil 'silent))
  file)