summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-04-08 15:48:38 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2014-04-08 15:48:38 -0400
commit5b9925ae30bfab909294bd18454413fdc821f103 (patch)
tree22fa22a78775144fab17a51cb6e618189d416bf0 /lisp/help.el
parentc17a8019bfda7ce6773a91fa3506750024fe9e23 (diff)
downloademacs-5b9925ae30bfab909294bd18454413fdc821f103.tar.gz
emacs-5b9925ae30bfab909294bd18454413fdc821f103.tar.bz2
emacs-5b9925ae30bfab909294bd18454413fdc821f103.zip
* lisp/help.el (describe-bindings): Fix buffer handling.
(describe-bindings-internal): Mark obsolete. Fixes: debbugs:17210
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/help.el b/lisp/help.el
index fdbf91f7dbd..72a95244716 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -485,8 +485,11 @@ or a buffer name."
(or buffer (setq buffer (current-buffer)))
(help-setup-xref (list #'describe-bindings prefix buffer)
(called-interactively-p 'interactive))
- (with-current-buffer buffer
- (describe-bindings-internal nil prefix)))
+ (with-help-window (help-buffer)
+ ;; Be aware that `describe-buffer-bindings' puts its output into
+ ;; the current buffer.
+ (with-current-buffer (help-buffer)
+ (describe-buffer-bindings buffer prefix))))
;; This function used to be in keymap.c.
(defun describe-bindings-internal (&optional menus prefix)
@@ -497,6 +500,7 @@ The optional argument MENUS, if non-nil, says to mention menu bindings.
\(Ordinarily these are omitted from the output.)
The optional argument PREFIX, if non-nil, should be a key sequence;
then we display only bindings that start with that prefix."
+ (declare (obsolete describe-buffer-bindings "24.4"))
(let ((buf (current-buffer)))
(with-help-window (help-buffer)
;; Be aware that `describe-buffer-bindings' puts its output into