]> git.eshelyaron.com Git - emacs.git/commit
Run erc--scrolltobottom-on-pre-insert unconditionally
authorF. Jason Park <jp@neverwas.me>
Wed, 13 Sep 2023 12:42:24 +0000 (05:42 -0700)
committerF. Jason Park <jp@neverwas.me>
Sun, 17 Sep 2023 23:06:49 +0000 (16:06 -0700)
commit69a154616e11149df80d22a9279818e1d3fda317
tree447159e04b0938ffd89994ccdf310369655c4793
parentc1e86203b00182a478c168e3a0a0adab85ae6d47
Run erc--scrolltobottom-on-pre-insert unconditionally

* lisp/erc/erc-goodies.el (erc--scrolltobottom-all): Pass `no-force'
argument to `set-window-start'.
(erc--scrolltobottom-on-pre-insert): Convert from generic to normal
function and drop `erc-input' method completely.  A non-nil `insertp'
slot means a message is marked for insertion in the read-only portion
of the buffer, above the prompt.  But conditionally restoring window
parameters based on that flag is insufficient because the window still
needs adjusting whenever input is typed, regardless of whether it's
erased or "inserted."  (Bug#64855)
lisp/erc/erc-goodies.el