Skip to content
This repository
Browse code

Prefix arg allows regen-autoloads to force even if "up to date".

  • Loading branch information...
commit 2304babf7b6908bdaa46ee6eb0666b04bb248ac6 1 parent cc5b4ee
Phil Hagelberg authored December 09, 2008

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  starter-kit-defuns.el
8  starter-kit-defuns.el
@@ -107,12 +107,14 @@
107 107
   (interactive)
108 108
   (byte-recompile-directory (expand-file-name "~/.emacs.d") 0))
109 109
 
110  
-(defun regen-autoloads ()
  110
+(defun regen-autoloads (&optional force-regen)
111 111
   "Regenerate the autoload definitions file if necessary and load it."
112  
-  (interactive)
  112
+  (interactive "p")
  113
+  (setq reg force-regen)
113 114
   (let ((autoload-dir (concat dotfiles-dir "/elpa-to-submit"))
114 115
         (generated-autoload-file autoload-file))
115  
-    (when (or (not (file-exists-p autoload-file))
  116
+    (when (or (> force-regen 1) ;; prefix arg used
  117
+              (not (file-exists-p autoload-file))
116 118
               (some (lambda (f) (file-newer-than-file-p f autoload-file))
117 119
                     (directory-files autoload-dir t "\\.el$")))
118 120
       (message "Updating autoloads...")

0 notes on commit 2304bab

Please sign in to comment.
Something went wrong with that request. Please try again.