branch: externals/inspector
commit bff76c25f2f96e94a95113fec544d8750de86bc0
Author: Kristoffer Balintona <[email protected]>
Commit: Kristoffer Balintona <[email protected]>
Fix "q" binding in pprint buffer
`kill-this-buffer` is meant to be used in the menu bar or tool bar.
Use `kill-current-buffer` instead.
---
inspector.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inspector.el b/inspector.el
index c092b0f2d7..6704650b2e 100644
--- a/inspector.el
+++ b/inspector.el
@@ -923,7 +923,7 @@ When PRESERVE-HISTORY is T, inspector history is not
cleared."
;; local-set-key modifies the mode map of the entire buffer's major mode
(emacs-lisp-mode-map).
;; to modify the map for this buffer only, we need to use a copy of the
mode-map:
(use-local-map (copy-keymap emacs-lisp-mode-map))
- (local-set-key "q" #'kill-this-buffer)
+ (local-set-key "q" #'kill-current-buffer)
(let ((pp-use-max-width inspector-pp-use-max-width)
(pp-max-width inspector-pp-max-width))
(ignore pp-use-max-width pp-max-width)