; Add newline to erc--scrolltobottom-window-info

* lisp/erc/erc-goodies.el (erc--scrolltobottom-window-info): Add
`newline'.  (Bug#64855)
* lisp/erc/erc.el (erc-check-text-conversion): Quote variable.
This commit is contained in:
F. Jason Park 2023-09-10 19:29:09 -07:00
parent 8d13ad2318
commit 374ed006ff
2 changed files with 2 additions and 1 deletions

View file

@ -122,6 +122,7 @@ may be nil, is the number of lines between `window-start' and
(defvar erc--scrolltobottom-post-force-commands
'(beginning-of-buffer
electric-newline-and-maybe-indent
newline
default-indent-new-line)
"Commands that force a scroll after execution at prompt.
That is, ERC recalculates the window's start instead of blindly

View file

@ -8040,7 +8040,7 @@ prompt or `nil' otherwise, set it to such a value, so as to
guarantee that the input method functions properly for the
purpose of typing within the ERC prompt."
(when (and (eq major-mode 'erc-mode)
(boundp set-text-conversion-style))
(boundp 'text-conversion-style))
(if (>= (point) (erc-beg-of-input-line))
(unless (eq text-conversion-style 'action)
(set-text-conversion-style 'action))