Function: org-buffer-hash

org-buffer-hash is a for buffer-hash, defined in fns.c.

Signature

(org-buffer-hash &optional BUFFER-OR-NAME)

Documentation

Return a hash of the contents of BUFFER-OR-NAME.

This hash is performed on the raw internal format of the buffer, disregarding any coding systems. If nil, use the current buffer.

This function is useful for comparing two buffers running in the same Emacs, but is not guaranteed to return the same hash between different Emacs versions. It should be somewhat more efficient on larger buffers than secure-hash is, and should not allocate more memory.

It should not be used for anything security-related. See secure-hash for these applications.

Aliases

org-buffer-hash