]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix many-compilations case of compilation-goto-in-progress-buffer
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 25 Jul 2019 16:44:13 +0000 (18:44 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 25 Jul 2019 16:44:17 +0000 (18:44 +0200)
* lisp/progmodes/compile.el (compilation-goto-in-progress-buffer):
Fix thinko in initial version of the function in the
many-compilations case.

lisp/progmodes/compile.el

index f4750c00590abeb996808dc7f8843eac3b48057f..a7575b5a1a1c55472565f8cf5766477a1938d1e5 100644 (file)
@@ -125,7 +125,10 @@ and a string describing how the process finished.")
    ((> (length compilation-in-progress) 1)
     (switch-to-buffer (completing-read
                        "Several compilation buffers; switch to: "
-                       (mapcar #'buffer-name compilation-in-progress)
+                       (mapcar
+                        (lambda (process)
+                          (buffer-name (process-buffer process)))
+                        compilation-in-progress)
                        nil t)))
    (compilation-in-progress
     (switch-to-buffer (process-buffer (car compilation-in-progress))))