2009-11-26 Kevin Ryde <user42@zip.com.au>
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Nov 2009 01:02:17 +0000 (01:02 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Nov 2009 01:02:17 +0000 (01:02 +0000)
* sha1.el (sha1-string-external): default-directory "/" in case
otherwise non-existent.  process-connection-type pipe for touch of
efficiency recommended by elisp manual.  (An aside in Bug#3911.)

lisp/ChangeLog
lisp/sha1.el

index 51d4b1c..2758128 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-26  Kevin Ryde  <user42@zip.com.au>
+
+       * sha1.el (sha1-string-external): default-directory "/" in case
+       otherwise non-existent.  process-connection-type pipe for touch of
+       efficiency recommended by elisp manual.  (An aside in Bug#3911.)
+
 2009-11-17  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * rfc2047.el (rfc2047-decode-region): Don't quote decoded words
index 4aca53f..9fe327e 100644 (file)
@@ -86,7 +86,9 @@ If this variable is set to nil, use internal function only."
   :group 'sha1)
 
 (defun sha1-string-external (string &optional binary)
-  (let (prog args digest)
+  (let ((default-directory "/") ;; in case otherwise non-existent
+        (process-connection-type nil) ;; pipe
+        prog args digest)
     (if (consp sha1-program)
        (setq prog (car sha1-program)
              args (cdr sha1-program))