branch: elpa/markdown-mode commit 31eabd897b9b027b21380484fea2f428a6860d49 Author: Zach Kost-Smith <zachkostsm...@gmail.com> Commit: GitHub <nore...@github.com>
Change kill-this-buffer to kill-current-buffer From the docs regarding 'kill-this-buffer': This command must be bound to a mouse event, and can be reliably invoked only from the menu bar, otherwise it could decide to silently do nothing or signal an error. Use ‘kill-current-buffer’ if you need to invoke a similar command from keyboard. --- markdown-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown-mode.el b/markdown-mode.el index 671210e5a8..74d958a7d7 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -10522,7 +10522,7 @@ rows and columns and the column alignment." (define-key map (kbd "SPC") #'scroll-up-command) (define-key map (kbd ">") #'end-of-buffer) (define-key map (kbd "<") #'beginning-of-buffer) - (define-key map (kbd "q") #'kill-this-buffer) + (define-key map (kbd "q") #'kill-current-buffer) (define-key map (kbd "?") #'describe-mode) map) "Keymap for `markdown-view-mode'.")