emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ac40a65f75a: * lisp/progmodes/grep.el (grep-hello-file): Fix typo


From: Po Lu
Subject: master ac40a65f75a: * lisp/progmodes/grep.el (grep-hello-file): Fix typos.
Date: Tue, 29 Apr 2025 00:54:43 -0400 (EDT)

branch: master
commit ac40a65f75a132e47e0d4c68e7ca8b2247153b3c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * lisp/progmodes/grep.el (grep-hello-file): Fix typos.
---
 lisp/progmodes/grep.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 09610fdc74f..a07ac664f6f 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]