]> git.eshelyaron.com Git - emacs.git/commit
Make important text props more resilient in ERC
authorF. Jason Park <jp@neverwas.me>
Fri, 8 Mar 2024 05:53:23 +0000 (21:53 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:25:49 +0000 (10:25 +0100)
commit9deb0a44d832deba19deeb0e5a5c54ad827a6277
treeb9e8b2f67095b31e064151b8d329d92b5ab33101
parentbb2a758761e520eea3db722d12b1cf3dfa6961f3
Make important text props more resilient in ERC

* lisp/erc/erc-button.el (erc-button-remove-old-buttons): Restore
original `mouse-face' values in areas marked as important after
clobbering.
* lisp/erc/erc.el (erc--reserve-important-text-props): New function.
(erc--restore-important-text-props): New function.
* test/lisp/erc/erc-tests.el (erc--restore-important-text-props): New
test.
(Bug#69597)

(cherry picked from commit e2620fd73441af19d478f7a9262de8c08a47ee2f)
lisp/erc/erc-button.el
lisp/erc/erc.el
test/lisp/erc/erc-tests.el