* lisp/emacs-lisp/pkg.el (buffer-package): New function.
* lisp/simple.el (command-execute): Bind *package* to the Emacs
package.
(error "%s does not contain a symbol %s"
(package-name package) name))))
+(defun buffer-package (buffer)
+ "Return the value of *package* in BUFFER.
+BUFFER must be either a buffer object or the name of an existing buffer."
+ (buffer-local-value '*package*
+ (if (bufferp buffer)
+ buffer
+ (get-buffer buffer))))
\f
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Macros
executing a special event, so ignore the prefix argument and
don't clear it."
(setq debug-on-next-call nil)
- (let ((prefixarg (unless special
+ (let ((*package* *emacs-package*)
+ (prefixarg (unless special
;; FIXME: This should probably be done around
;; pre-command-hook rather than here!
(prog1 prefix-arg