aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/grep.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 370bdd55163..91c72a9429f 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -1348,7 +1348,7 @@ command before it's run."
1348(defun grep-file-at-point (point) 1348(defun grep-file-at-point (point)
1349 "Return the name of the file at POINT a `grep-mode' buffer. 1349 "Return the name of the file at POINT a `grep-mode' buffer.
1350The returned file name is relative." 1350The returned file name is relative."
1351 (when-let ((msg (get-text-property (point) 'compilation-message)) 1351 (when-let ((msg (get-text-property point 'compilation-message))
1352 (loc (compilation--message->loc msg))) 1352 (loc (compilation--message->loc msg)))
1353 (caar (compilation--loc->file-struct loc)))) 1353 (caar (compilation--loc->file-struct loc))))
1354 1354