mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-06 23:51:24 -08:00
Fix previous grep-file-at-point change
* lisp/progmodes/grep.el (grep-file-at-point): Fix previous change.
This commit is contained in:
parent
9ee418b7b9
commit
6b802a08ca
1 changed files with 1 additions and 1 deletions
|
|
@ -1348,7 +1348,7 @@ command before it's run."
|
|||
(defun grep-file-at-point (point)
|
||||
"Return the name of the file at POINT a `grep-mode' buffer.
|
||||
The returned file name is relative."
|
||||
(when-let ((msg (get-text-property (point) 'compilation-message))
|
||||
(when-let ((msg (get-text-property point 'compilation-message))
|
||||
(loc (compilation--message->loc msg)))
|
||||
(caar (compilation--loc->file-struct loc))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue