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

lisp/progmodes/grep.el

index 5ea470aac372bc7cbf79890261db16beda35d2d3..33f8bb7aa6353e4d178dec823d5b7f951129e89a 100644 (file)
@@ -708,7 +708,7 @@ first capture group of `grep-heading-regexp'.")
                            (file-name-as-directory
                             (temporary-file-directory)))))
            (when (file-remote-p file-name)
-             (write-region "Copyright\n" nil result))
+             (write-region "Copyright\n" nil file-name))
            file-name))
         ((and (eq system-type 'android) (featurep 'android)) 
          ;; /assets/etc is not accessible to grep or other shell