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:
parent
e8d198a00a
commit
9c5d8d59cf
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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"))))
|
||||
|
Loading…
Reference in New Issue
Block a user