1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-13 16:38:14 +00:00

Fix remaining byte-compile warnings in loaddefs.el

* 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.
This commit is contained in:
Lars Ingebrigtsen 2022-07-31 11:29:52 +02:00
parent e8d198a00a
commit 9c5d8d59cf
3 changed files with 3 additions and 0 deletions

View 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

View 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.

View 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"))))