Note that this library enumerates buffer positions starting from 1, just like Emacs.