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)
This commit is contained in:
Eli Zaretskii 2024-06-22 13:38:53 +03:00
parent fb1b188e1a
commit 75fdeef7b4

View file

@ -2292,6 +2292,9 @@ Returns the compilation buffer created."
(define-key map [mouse-2] 'compile-goto-error) (define-key map [mouse-2] 'compile-goto-error)
(define-key map [follow-link] 'mouse-face) (define-key map [follow-link] 'mouse-face)
(define-key map "\C-m" 'compile-goto-error) (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) map)
"Keymap for compilation-message buttons.") "Keymap for compilation-message buttons.")
(fset 'compilation-button-map compilation-button-map) (fset 'compilation-button-map compilation-button-map)