diff options
author | Glenn Morris <rgm@gnu.org> | 2014-04-08 20:37:56 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-04-08 20:37:56 -0700 |
commit | 559836fbccf9c79c621da96fe8ca0080b980b14c (patch) | |
tree | 4bf9792cdcf01bc71746845f5a1277da4a8ea687 /lisp/help.el | |
parent | 6bc76cee212aab0a2c02f8c28213fc842cc7880f (diff) | |
parent | 50c9a9b8a871ce281b43a196bd912f3d2fdda5fa (diff) | |
download | emacs-559836fbccf9c79c621da96fe8ca0080b980b14c.tar.gz |
Merge from emacs-24; up to 2014-04-02T16:17:08Z!dmantipov@yandex.ru
Diffstat (limited to 'lisp/help.el')
-rw-r--r-- | lisp/help.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/help.el b/lisp/help.el index 76c27de8da6..932270204c5 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -482,8 +482,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) @@ -494,6 +497,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 |