From 3f30d98af9401562c68f3a0388cf16593eb572e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Wed, 4 Sep 2019 14:35:18 +0200 Subject: [PATCH] Repair change to compilation-context-lines (bug#36832) * lisp/progmodes/compile.el (compilation-set-window): Restore proper behaviour when compilation-context-lines is nil, which is the default. --- lisp/progmodes/compile.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index b7bd2243d90..c1f23b16aa6 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -2600,7 +2600,8 @@ column zero points to the current message." (goto-char mk) (beginning-of-line 1) (point))) - (set-window-point w mk)))) + (set-window-point w mk)) + (t (set-window-point w mk)))) (defvar-local compilation-arrow-overlay nil "Overlay with the before-string property of `overlay-arrow-string'. -- 2.39.5