mirror of
https://github.com/golang/go
synced 2024-11-18 11:04:42 -07:00
cmd/guru: emacs: only check modified buffers with file names
We cannot determine the extension of buffers with no file names (not without throwing an error, anyway.) Change-Id: I2b10390da738d71b6f95a6f668d3b92b54db29ed Reviewed-on: https://go-review.googlesource.com/20470 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
fc3ceb1825
commit
74b98c2c7a
@ -241,6 +241,7 @@ Return the output buffer."
|
||||
current buffer in the format specified by guru's -modified flag."
|
||||
(mapc #'(lambda (b)
|
||||
(and (buffer-modified-p b)
|
||||
(buffer-file-name b)
|
||||
(string= (file-name-extension (buffer-file-name b)) "go")
|
||||
(go-guru--insert-modified-file (buffer-file-name b) b)))
|
||||
(buffer-list)))
|
||||
|
Loading…
Reference in New Issue
Block a user