diff options
| author | Stefan Kangas | 2019-09-21 17:04:58 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-09-22 01:30:01 +0200 |
| commit | 14e7c01feeafd3852522c221187e7359d21079f5 (patch) | |
| tree | 1e5f979576a81706d6325cbfc2d7ccd338b48dbf /src | |
| parent | 2879c3ec1b91bcf3276c979155dd05494de20a0d (diff) | |
| download | emacs-14e7c01feeafd3852522c221187e7359d21079f5.tar.gz emacs-14e7c01feeafd3852522c221187e7359d21079f5.zip | |
* src/fns.c (Fbuffer_hash): Improve doc string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -5409,7 +5409,14 @@ of the other hash types instead, e.g. sha256 or sha512. */) | |||
| 5409 | DEFUN ("buffer-hash", Fbuffer_hash, Sbuffer_hash, 0, 1, 0, | 5409 | DEFUN ("buffer-hash", Fbuffer_hash, Sbuffer_hash, 0, 1, 0, |
| 5410 | doc: /* Return a hash of the contents of BUFFER-OR-NAME. | 5410 | doc: /* Return a hash of the contents of BUFFER-OR-NAME. |
| 5411 | This hash is performed on the raw internal format of the buffer, | 5411 | This hash is performed on the raw internal format of the buffer, |
| 5412 | disregarding any coding systems. If nil, use the current buffer. */ ) | 5412 | disregarding any coding systems. If nil, use the current buffer. |
| 5413 | |||
| 5414 | This function is useful for comparing two buffers running in the same | ||
| 5415 | Emacs, but is not guaranteed to return the same hash between different | ||
| 5416 | Emacs versions. | ||
| 5417 | |||
| 5418 | It should not be used for anything security-related. See | ||
| 5419 | `secure-hash' for these applications. */ ) | ||
| 5413 | (Lisp_Object buffer_or_name) | 5420 | (Lisp_Object buffer_or_name) |
| 5414 | { | 5421 | { |
| 5415 | Lisp_Object buffer; | 5422 | Lisp_Object buffer; |