From d5cb3cb9a45dd9028789e10088a6ca491c370d10 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 16 Oct 2020 17:36:20 +0200 Subject: [PATCH] Make erc expand the final abbrev * lisp/erc/erc.el (erc-send-current-line): Expand abbrevs at the end of lines (bug#42854). --- lisp/erc/erc.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 1d5506e2816..6481446ba5e 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -5472,6 +5472,10 @@ submitted line to be intentional." (time-less-p erc-accidental-paste-threshold-seconds (time-subtract now erc-last-input-time))) (save-restriction + ;; If there's an abbrev at the end of the line, expand it. + (when (and abbrev-mode + (eolp)) + (expand-abbrev)) (widen) (if (< (point) (erc-beg-of-input-line)) (erc-error "Point is not in the input area") -- 2.39.2