From: Po Lu Date: Tue, 29 Apr 2025 04:53:51 +0000 (+0800) Subject: * lisp/progmodes/grep.el (grep-hello-file): Fix typos. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ada4a969d9b8b3e591d9cd27a4b94a83b23bd2ca;p=emacs.git * lisp/progmodes/grep.el (grep-hello-file): Fix typos. (cherry picked from commit ac40a65f75a132e47e0d4c68e7ca8b2247153b3c) --- diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index b23eabe200e..5ea470aac37 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