From 1074dba5f9ea8be907006d4771b3c19bd10b2fcc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 22 Jun 2024 13:38:53 +0300 Subject: [PATCH] Allow to expand truncated long lines in *Compilation* buffers * lisp/progmodes/compile.el (compilation-button-map): Bind keys in 'compilation-button-map' to allow expanding the truncated text. (Bug#71683) (cherry picked from commit 75fdeef7b494b0acffb69822ff9bec148140de16) --- lisp/progmodes/compile.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 498aa39be62..539bcded315 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -2315,6 +2315,9 @@ Returns the compilation buffer created." (define-key map [mouse-2] 'compile-goto-error) (define-key map [follow-link] 'mouse-face) (define-key map "\C-m" 'compile-goto-error) + (define-key map "\M-\C-m" 'push-button) + (define-key map [M-down-mouse-2] 'push-button) + (define-key map [M-mouse-2] 'push-button) map) "Keymap for compilation-message buttons.") (fset 'compilation-button-map compilation-button-map) -- 2.39.2