aboutsummaryrefslogtreecommitdiffstats
path: root/java/org
diff options
context:
space:
mode:
authorF. Jason Park2023-11-18 23:44:20 -0800
committerF. Jason Park2023-11-24 13:38:52 -0800
commit0d6c8d41ab7172a496c6db951c270821807dce99 (patch)
treecec32be0beef207b55923480bf983abfb152d94d /java/org
parent3c9cba9df3d392a89314e06a6396c4157065f3b0 (diff)
downloademacs-0d6c8d41ab7172a496c6db951c270821807dce99.tar.gz
emacs-0d6c8d41ab7172a496c6db951c270821807dce99.zip
Use overlay instead of text prop to hide ERC's prompt
* lisp/erc/erc-backend.el (erc--hidden-prompt-overlay): New variable, a buffer-local handle for the prompt overlay. (erc--reveal-prompt): Delete overlay instead of text prop. (erc--conceal-prompt): Add overlay instead of text prop. (erc--unhide-prompt): Run `erc--refresh-prompt-hook' after revealing. (erc--hide-prompt): Run `erc--refresh-prompt-hook' after hiding. * lisp/erc/erc-stamp.el (erc-stamp--adjust-margin): Attempt a more accurate estimate of the prompt's width in columns when initially setting left-margin. (erc-stamp--skip-left-margin-prompt-p): New variable to inhibit normal behavior of displaying prompt in left margin. (erc-stamp--display-margin-mode): Allow opting out of prompt-in-left-margin behavior. (erc--reveal-prompt): Delete unneeded method implementation. (erc--conceal-prompt): Put overlay in margin. * test/lisp/erc/erc-tests.el (erc-hide-prompt): Use `get-char-property' instead of `get-text-property' in order to accommodate overlay-based prompt hiding. (Bug#51082)
Diffstat (limited to 'java/org')
0 files changed, 0 insertions, 0 deletions