diff options
| author | Kevin Ryde | 2009-11-26 23:39:32 +0000 |
|---|---|---|
| committer | Kevin Ryde | 2009-11-26 23:39:32 +0000 |
| commit | 9d58f081301c7ec696b83a949c65477525e20ff3 (patch) | |
| tree | 95196f1f0f36df09064070db9ed37cfd6a1231d8 | |
| parent | c44a48223eb59f6ef3bdfd35c5bdfbb75107ce2d (diff) | |
| download | emacs-9d58f081301c7ec696b83a949c65477525e20ff3.tar.gz emacs-9d58f081301c7ec696b83a949c65477525e20ff3.zip | |
* 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.)
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/sha1.el | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a36645dc974..18ced5b6512 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,10 @@ | |||
| 3 | * log-view.el: Add "Keywords: tools", since its other keywords | 3 | * log-view.el: Add "Keywords: tools", since its other keywords |
| 4 | aren't in finder-known-keywords, and following vc.el. | 4 | aren't in finder-known-keywords, and following vc.el. |
| 5 | 5 | ||
| 6 | * sha1.el (sha1-string-external): default-directory "/" in case | ||
| 7 | otherwise non-existent. process-connection-type pipe for touch of | ||
| 8 | efficiency recommended by elisp manual. (An aside in Bug#3911.) | ||
| 9 | |||
| 6 | 2009-11-26 Stefan Monnier <monnier@iro.umontreal.ca> | 10 | 2009-11-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 11 | ||
| 8 | Misc coding convention cleanups. | 12 | Misc coding convention cleanups. |
diff --git a/lisp/sha1.el b/lisp/sha1.el index 4aca53f196c..9fe327e514e 100644 --- a/lisp/sha1.el +++ b/lisp/sha1.el | |||
| @@ -86,7 +86,9 @@ If this variable is set to nil, use internal function only." | |||
| 86 | :group 'sha1) | 86 | :group 'sha1) |
| 87 | 87 | ||
| 88 | (defun sha1-string-external (string &optional binary) | 88 | (defun sha1-string-external (string &optional binary) |
| 89 | (let (prog args digest) | 89 | (let ((default-directory "/") ;; in case otherwise non-existent |
| 90 | (process-connection-type nil) ;; pipe | ||
| 91 | prog args digest) | ||
| 90 | (if (consp sha1-program) | 92 | (if (consp sha1-program) |
| 91 | (setq prog (car sha1-program) | 93 | (setq prog (car sha1-program) |
| 92 | args (cdr sha1-program)) | 94 | args (cdr sha1-program)) |