]> git.eshelyaron.com Git - emacs.git/commit
Don't use negative positions for docstrings
authorStefan Kangas <stefankangas@gmail.com>
Thu, 23 Jan 2025 23:16:08 +0000 (00:16 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 25 Jan 2025 17:43:29 +0000 (18:43 +0100)
commitd3c5debc5a1f2f5c1fe1269fbb76f7c9f669aa5b
treeb303b89305a0b4f8bd732c4b1412af2b143e7488
parent83677db827cf529f10ea7b3747a432e24d79d0db
Don't use negative positions for docstrings

These were used for user-variables (doc starts with a '*'), but we don't
use that convention any more.  On my machine, there are no docstrings
starting with a '*' in etc/DOC.

* src/doc.c (Fsnarf_documentation): Never use negative positions.
(get_doc_string): Don't use eabs; position must now be positive, and all
callers are verified to do that.

(cherry picked from commit c7f6da7a4141a9f3492b8dbb0c1de710bd4757fa)
src/doc.c