emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107227: * src/fns.c (Fsecure_hash):


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107227: * src/fns.c (Fsecure_hash): Doc fix.
Date: Fri, 10 Feb 2012 00:38:22 -0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107227
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Fri 2012-02-10 00:38:22 -0800
message:
  * src/fns.c (Fsecure_hash): Doc fix.
  * etc/NEWS: Related edit.
modified:
  etc/NEWS
  src/ChangeLog
  src/fns.c
=== modified file 'etc/NEWS'
--- a/etc/NEWS  2012-02-10 08:23:33 +0000
+++ b/etc/NEWS  2012-02-10 08:38:22 +0000
@@ -408,10 +408,9 @@
 +++
 ** 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
 ---

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-02-09 07:48:22 +0000
+++ b/src/ChangeLog     2012-02-10 08:38:22 +0000
@@ -1,3 +1,7 @@
+2012-02-10  Glenn Morris  <address@hidden>
+
+       * fns.c (Fsecure_hash): Doc fix.
+
 2012-02-09  Kenichi Handa  <address@hidden>
 
        * coding.c (produce_chars): Fix updating of src_end (Bug#10701).

=== modified file 'src/fns.c'
--- a/src/fns.c 2012-01-19 07:21:25 +0000
+++ b/src/fns.c 2012-02-10 08:38:22 +0000
@@ -4847,12 +4847,15 @@
 }
 
 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);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]