]> git.eshelyaron.com Git - emacs.git/commit
Fix overlooked case in erc--get-inserted-msg-beg-at
authorF. Jason Park <jp@neverwas.me>
Wed, 28 Aug 2024 06:05:35 +0000 (23:05 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 30 Sep 2024 20:33:52 +0000 (22:33 +0200)
commit3401f3d5eeeb1e7c63298fa18b1f29e709a0c606
tree4769c07cf7c07a526564de91d42bb806acda0759
parentfd28c894af9538c5a80235c91e9a272cd68dc59e
Fix overlooked case in erc--get-inserted-msg-beg-at

* lisp/erc/erc.el (erc--get-inserted-msg-beg-at): Account for the start
of a props header being `bobp' when searching backwards.
(erc--get-inserted-msg-prop): Add optional `point' parameter.
* test/lisp/erc/erc-goodies-tests.el
(erc--get-inserted-msg-beg/truncated/readonly): New test.
* test/lisp/erc/erc-tests.el (erc--get-inserted-msg-beg/truncated): New
test.
* test/lisp/erc/resources/erc-tests-common.el
(erc-tests-common-assert-get-inserted-msg/truncated): New test helper.
(Bug#72736)

(cherry picked from commit 08f662da1123f50f3f62d0af747bff88d2c73938)
lisp/erc/erc.el
test/lisp/erc/erc-goodies-tests.el
test/lisp/erc/erc-tests.el
test/lisp/erc/resources/erc-tests-common.el