]> git.eshelyaron.com Git - emacs.git/commitdiff
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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 22 Jun 2024 15:40:53 +0000 (17:40 +0200)
* 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

index 498aa39be62b06cb951b3edf8b07392cf2109415..539bcded31506ebdd0cb2a2c1b326c2c871be813 100644 (file)
@@ -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)