Allow to expand truncated long lines in *Compilation* buffers
authorEli Zaretskii <eliz@gnu.org>
Sat, 22 Jun 2024 10:38:53 +0000 (13:38 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 22 Jun 2024 10:40:11 +0000 (13:40 +0300)
* lisp/progmodes/compile.el (compilation-button-map): Bind keys
in 'compilation-button-map' to allow expanding the truncated
text.  (Bug#71683)

lisp/progmodes/compile.el

index 4d43a715fefddf6464a46e162347c7633ddb5230..d2e74aa44a663235f0bf437b9b0f3ef71543fece 100644 (file)
@@ -2292,6 +2292,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)