diff options
| author | Stefan Monnier | 2014-04-08 15:48:38 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-04-08 15:48:38 -0400 |
| commit | 5b9925ae30bfab909294bd18454413fdc821f103 (patch) | |
| tree | 22fa22a78775144fab17a51cb6e618189d416bf0 /lisp | |
| parent | c17a8019bfda7ce6773a91fa3506750024fe9e23 (diff) | |
| download | emacs-5b9925ae30bfab909294bd18454413fdc821f103.tar.gz emacs-5b9925ae30bfab909294bd18454413fdc821f103.zip | |
* lisp/help.el (describe-bindings): Fix buffer handling.
(describe-bindings-internal): Mark obsolete.
Fixes: debbugs:17210
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/help.el | 8 |
2 files changed, 18 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ad6805f7685..3b5b7898933 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-04-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * help.el (describe-bindings): Fix buffer handling (bug#17210). | ||
| 4 | (describe-bindings-internal): Mark obsolete. | ||
| 5 | |||
| 1 | 2014-04-07 João Távora <joaotavora@gmail.com> | 6 | 2014-04-07 João Távora <joaotavora@gmail.com> |
| 2 | 7 | ||
| 3 | * elec-pair.el: | 8 | * elec-pair.el: |
| @@ -12,10 +17,9 @@ | |||
| 12 | 17 | ||
| 13 | 2014-04-07 João Távora <joaotavora@gmail.com> | 18 | 2014-04-07 João Távora <joaotavora@gmail.com> |
| 14 | 19 | ||
| 15 | * elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit | 20 | * elec-pair.el (electric-pair-inhibit-if-helps-balance): |
| 16 | quote pairing if point-max is inside an unterminated string. | 21 | Inhibit quote pairing if point-max is inside an unterminated string. |
| 17 | (electric-pair--looking-at-unterminated-string-p): | 22 | (electric-pair--looking-at-unterminated-string-p): Delete. |
| 18 | Delete. | ||
| 19 | (electric-pair--in-unterminated-string-p): New function. | 23 | (electric-pair--in-unterminated-string-p): New function. |
| 20 | 24 | ||
| 21 | 2014-04-07 Glenn Morris <rgm@gnu.org> | 25 | 2014-04-07 Glenn Morris <rgm@gnu.org> |
| @@ -35,13 +39,13 @@ | |||
| 35 | 39 | ||
| 36 | 2014-04-06 João Távora <joaotavora@gmail.com> | 40 | 2014-04-06 João Távora <joaotavora@gmail.com> |
| 37 | 41 | ||
| 38 | * progmodes/python.el (python-electric-pair-string-delimiter): Fix | 42 | * progmodes/python.el (python-electric-pair-string-delimiter): |
| 39 | triple-quoting electricity. (Bug#17192) | 43 | Fix triple-quoting electricity. (Bug#17192) |
| 40 | 44 | ||
| 41 | 2014-04-06 João Távora <joaotavora@gmail.com> | 45 | 2014-04-06 João Távora <joaotavora@gmail.com> |
| 42 | 46 | ||
| 43 | * elec-pair.el (electric-pair-post-self-insert-function): Don't | 47 | * elec-pair.el (electric-pair-post-self-insert-function): |
| 44 | skip whitespace when `electric-pair-text-pairs' and | 48 | Don't skip whitespace when `electric-pair-text-pairs' and |
| 45 | `electric-pair-pairs' were used. syntax to | 49 | `electric-pair-pairs' were used. syntax to |
| 46 | electric-pair--skip-whitespace. (Bug#17183) | 50 | electric-pair--skip-whitespace. (Bug#17183) |
| 47 | 51 | ||
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." | |||
| 485 | (or buffer (setq buffer (current-buffer))) | 485 | (or buffer (setq buffer (current-buffer))) |
| 486 | (help-setup-xref (list #'describe-bindings prefix buffer) | 486 | (help-setup-xref (list #'describe-bindings prefix buffer) |
| 487 | (called-interactively-p 'interactive)) | 487 | (called-interactively-p 'interactive)) |
| 488 | (with-current-buffer buffer | 488 | (with-help-window (help-buffer) |
| 489 | (describe-bindings-internal nil prefix))) | 489 | ;; Be aware that `describe-buffer-bindings' puts its output into |
| 490 | ;; the current buffer. | ||
| 491 | (with-current-buffer (help-buffer) | ||
| 492 | (describe-buffer-bindings buffer prefix)))) | ||
| 490 | 493 | ||
| 491 | ;; This function used to be in keymap.c. | 494 | ;; This function used to be in keymap.c. |
| 492 | (defun describe-bindings-internal (&optional menus prefix) | 495 | (defun describe-bindings-internal (&optional menus prefix) |
| @@ -497,6 +500,7 @@ The optional argument MENUS, if non-nil, says to mention menu bindings. | |||
| 497 | \(Ordinarily these are omitted from the output.) | 500 | \(Ordinarily these are omitted from the output.) |
| 498 | The optional argument PREFIX, if non-nil, should be a key sequence; | 501 | The optional argument PREFIX, if non-nil, should be a key sequence; |
| 499 | then we display only bindings that start with that prefix." | 502 | then we display only bindings that start with that prefix." |
| 503 | (declare (obsolete describe-buffer-bindings "24.4")) | ||
| 500 | (let ((buf (current-buffer))) | 504 | (let ((buf (current-buffer))) |
| 501 | (with-help-window (help-buffer) | 505 | (with-help-window (help-buffer) |
| 502 | ;; Be aware that `describe-buffer-bindings' puts its output into | 506 | ;; Be aware that `describe-buffer-bindings' puts its output into |