]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/grep.el (grep-hello-file): Fix typos.
authorPo Lu <luangruo@yahoo.com>
Tue, 29 Apr 2025 04:53:51 +0000 (12:53 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 29 Apr 2025 07:34:19 +0000 (09:34 +0200)
(cherry picked from commit ac40a65f75a132e47e0d4c68e7ca8b2247153b3c)

lisp/progmodes/grep.el

index b23eabe200e0bfcfeb396ef77487ee70e799f974..5ea470aac372bc7cbf79890261db16beda35d2d3 100644 (file)
@@ -707,8 +707,9 @@ first capture group of `grep-heading-regexp'.")
          (let ((file-name (make-temp-file
                            (file-name-as-directory
                             (temporary-file-directory)))))
-           (when (file-remote-p result)
-             (write-region "Copyright\n" nil result))))
+           (when (file-remote-p file-name)
+             (write-region "Copyright\n" nil result))
+           file-name))
         ((and (eq system-type 'android) (featurep 'android)) 
          ;; /assets/etc is not accessible to grep or other shell
          ;; commands on Android, and therefore the template must