]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix remaining byte-compile warnings in loaddefs.el
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Jul 2022 09:29:52 +0000 (11:29 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Jul 2022 09:29:52 +0000 (11:29 +0200)
* lisp/progmodes/compile.el (compilation--default-buffer-name):
* lisp/kmacro.el (kmacro-name-last-macro):
* lisp/emacs-lisp/package.el (package--activate-all): Autoload to
avoid byte-compilation warnings when byte-compiling loaddefs.el.

lisp/emacs-lisp/package.el
lisp/kmacro.el
lisp/progmodes/compile.el

index 97be7d6e5082e5e542df87ce00375ca4bd071ca8..df70f908dafb9fef38804a276e2b859b89621d92 100644 (file)
@@ -1663,6 +1663,7 @@ The variable `package-load-list' controls which packages to load."
       (require 'package)
       (package--activate-all)))))
 
+;;;###autoload
 (defun package--activate-all ()
   (dolist (elt (package--alist))
     (condition-case err
index 92118ad1433c5acd169935e594def91636f185fe..72420a67309637ee1e361458f82e569bed5a7402 100644 (file)
@@ -920,6 +920,7 @@ The ARG parameter is unused."
          (vectorp f)                   ;FIXME: Deprecated.
          (kmacro-p f)))))
 
+;;;###autoload
 (defun kmacro-name-last-macro (symbol)
   "Assign a name to the last keyboard macro defined.
 Argument SYMBOL is the name to define.
index 9ecea7d21b639078e3d4221f8ff7915bf1a6a21a..5ce80e065776f84eff5a5842ae7bec339f3fc011 100644 (file)
@@ -1792,6 +1792,7 @@ Otherwise, construct a buffer name from NAME-OF-MODE."
                #'compilation--default-buffer-name)
            name-of-mode))
 
+;;;###autoload
 (defun compilation--default-buffer-name (name-of-mode)
   (cond ((or (eq major-mode (intern-soft name-of-mode))
              (eq major-mode (intern-soft (concat name-of-mode "-mode"))))