]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/fns.c (Fsecure_hash): Doc fix.
authorGlenn Morris <rgm@gnu.org>
Fri, 10 Feb 2012 08:38:22 +0000 (00:38 -0800)
committerGlenn Morris <rgm@gnu.org>
Fri, 10 Feb 2012 08:38:22 +0000 (00:38 -0800)
* etc/NEWS: Related edit.

etc/NEWS
src/ChangeLog
src/fns.c

index 407f1edeaf6f88ce916fc7d0bad337c4a7bca669..816c636fdf7a893b32edc027ae6f03db0a19791c 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -408,10 +408,9 @@ in the corresponding way.
 +++
 ** The variable `focus-follows-mouse' now always defaults to nil.
 
-** New primitive `secure-hash' that supports many secure hash algorithms
-including md5, sha-1 and sha-2 (sha-224, sha-256, sha-384 and sha-512).
-The elisp implementation sha1.el is removed. Feature sha1 is provided
-by default.
+** New primitive `secure-hash' that supports many secure hash algorithms:
+md5, sha1, sha2, sha224, sha256, sha384, and sha512.  The lisp library
+sha1.el has been removed.  The `sha1' feature is provided by default.
 
 ** Menu-bar changes
 ---
index dfd0a05df3520c715a1a4854550b1daaa5f6fae4..61828474d5e1d25e1c7a900253594b36df58fcf2 100644 (file)
@@ -1,3 +1,7 @@
+2012-02-10  Glenn Morris  <rgm@gnu.org>
+
+       * fns.c (Fsecure_hash): Doc fix.
+
 2012-02-09  Kenichi Handa  <handa@m17n.org>
 
        * coding.c (produce_chars): Fix updating of src_end (Bug#10701).
index 2c9ce915ae55f7edbf275b241289dbab140cdbba..1edfe966098c5ef953ba864caf18f6bf9cfbd9d5 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -4847,12 +4847,15 @@ guesswork fails.  Normally, an error is signaled in such case.  */)
 }
 
 DEFUN ("secure-hash", Fsecure_hash, Ssecure_hash, 2, 5, 0,
-       doc: /* Return the secure hash of an OBJECT.
-ALGORITHM is a symbol: md5, sha1, sha224, sha256, sha384 or sha512.
-OBJECT is either a string or a buffer.
-Optional arguments START and END are character positions specifying
-which portion of OBJECT for computing the hash.  If BINARY is non-nil,
-return a string in binary form.  */)
+       doc: /* Return the secure hash of OBJECT, a buffer or string.
+ALGORITHM is a symbol specifying the hash to use:
+md5, sha1, sha224, sha256, sha384 or sha512.
+
+The two optional arguments START and END are positions specifying for
+which part of OBJECT to compute the hash.  If nil or omitted, uses the
+whole OBJECT.
+
+If BINARY is non-nil, returns a string in binary form.  */)
   (Lisp_Object algorithm, Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object binary)
 {
   return secure_hash (algorithm, object, start, end, Qnil, Qnil, binary);