Hi,

compare-buffer-substring allows all its arguments to be nil, but the docstring doesn't say that. Attached is a patch that amends the docstring.