aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el8
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0ab00336fe5..a31868f4ed1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-06-21 Leo Liu <sdl.web@gmail.com>
2
3 * subr.el (sha1): Implement sha1 using secure-hash.
4
12011-06-21 Martin Rudalics <rudalics@gmx.at> 52011-06-21 Martin Rudalics <rudalics@gmx.at>
2 6
3 * window.el (display-buffer-alist): In default value do not 7 * window.el (display-buffer-alist): In default value do not
diff --git a/lisp/subr.el b/lisp/subr.el
index b328b7e17b7..4d2f3b1808c 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2600,6 +2600,14 @@ Otherwise, return nil."
2600 (get-char-property (1- (field-end pos)) 'field) 2600 (get-char-property (1- (field-end pos)) 'field)
2601 raw-field))) 2601 raw-field)))
2602 2602
2603(defun sha1 (object &optional start end binary)
2604 "Return the SHA1 (Secure Hash Algorithm) of an OBJECT.
2605OBJECT is either a string or a buffer. Optional arguments START and
2606END are character positions specifying which portion of OBJECT for
2607computing the hash. If BINARY is non-nil, return a string in binary
2608form."
2609 (secure-hash 'sha1 object start end binary))
2610
2603 2611
2604;;;; Support for yanking and text properties. 2612;;;; Support for yanking and text properties.
2605 2613