Rearranged elinstall-actions-for-source-file, can correctly stop early.
authorTom Breton (Tehom) <tehom@panix.com>
Fri, 24 Dec 2010 20:54:33 +0000 (24 15:54 -0500)
committerTom Breton (Tehom) <tehom@panix.com>
Fri, 24 Dec 2010 20:54:33 +0000 (24 15:54 -0500)
elinstall.el

index ca5e9f7..8a7956b 100644 (file)
@@ -1058,7 +1058,8 @@ Special variables are as noted in \"List of special variables\"."
       (when
         (and
            (file-readable-p full-path)
-           (not (auto-save-file-name-p full-path)))
+           (not (auto-save-file-name-p full-path))
+           (string-match emacs-lisp-file-regexp filename))
         (let*
            (
               (visited (get-file-buffer full-path))
@@ -1080,7 +1081,6 @@ Special variables are as noted in \"List of special variables\"."
               ;;Figure out whether to run some actions, by file local vars.
               (autoloads-p
                  (and
-                    (string-match emacs-lisp-file-regexp filename)
                     (ignore-errors
                        (with-current-buffer buf 
                           (not no-update-autoloads)))
@@ -1093,7 +1093,6 @@ Special variables are as noted in \"List of special variables\"."
                  (and
                     byte-compile
                     (featurep 'byte-compile)
-                    (string-match emacs-lisp-file-regexp filename)
                     (ignore-errors 
                        (with-current-buffer buf 
                           (not no-byte-compile)))