1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(unload-feature): Fix interactive spec [from

lijnzaad@ebi.ac.uk].
This commit is contained in:
Dave Love 2000-05-26 11:06:05 +00:00
parent ed62683d5a
commit 4370a375b2
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2000-05-26 Dave Love <fx@gnu.org>
* loadhist.el (unload-feature): Fix interactive spec [from
lijnzaad@ebi.ac.uk].
* emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Use
subr-arity to check primitives.
(byte-compile-flush-pending, byte-compile-file-form-progn)

View file

@ -116,9 +116,9 @@ pertinent symbols.")
;;;###autoload
(defun unload-feature (feature &optional force)
"Unload the library that provided FEATURE, restoring all its autoloads.
If the feature is required by any other loaded code, and optional FORCE
If the feature is required by any other loaded code, and prefix arg FORCE
is nil, raise an error."
(interactive (list (read-feature "Feature: ")))
(interactive (list (read-feature "Feature: ") current-prefix-arg))
(if (not (featurep feature))
(error "%s is not a currently loaded feature" (symbol-name feature)))
(if (not force)