diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/pkg.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/pkg.el b/lisp/emacs-lisp/pkg.el index 9f84874f4e2..f905e6c390b 100644 --- a/lisp/emacs-lisp/pkg.el +++ b/lisp/emacs-lisp/pkg.el | |||
| @@ -179,7 +179,7 @@ Otherwise assume that " | |||
| 179 | (package-name package) name)))) | 179 | (package-name package) name)))) |
| 180 | 180 | ||
| 181 | ;;;###autoload | 181 | ;;;###autoload |
| 182 | (cl-defun buffer-package (buffer) | 182 | (cl-defun buffer-package (&optional (buffer (current-buffer))) |
| 183 | "Return the value of *package* set in BUFFER." | 183 | "Return the value of *package* set in BUFFER." |
| 184 | (default-buffer-local-value '*package* buffer)) | 184 | (default-buffer-local-value '*package* buffer)) |
| 185 | 185 | ||
| @@ -401,8 +401,9 @@ registered package." | |||
| 401 | (package-%nicknames (pkg--package-or-lose package))) | 401 | (package-%nicknames (pkg--package-or-lose package))) |
| 402 | 402 | ||
| 403 | ;;;###autoload | 403 | ;;;###autoload |
| 404 | (defun package-local-nicknames (package) | 404 | (cl-defun package-local-nicknames (&optional (package *package*)) |
| 405 | "Return an alist of package-local nicknames of PACKAGE. | 405 | "Return an alist of package-local nicknames of PACKAGE. |
| 406 | Optional PACKAGE defaults to the current package. | ||
| 406 | If PACKAGE is not a package object already, it must be the name of a | 407 | If PACKAGE is not a package object already, it must be the name of a |
| 407 | registered package." | 408 | registered package." |
| 408 | (package-%local-nicknames (pkg--package-or-lose package))) | 409 | (package-%local-nicknames (pkg--package-or-lose package))) |