]> git.eshelyaron.com Git - emacs.git/commitdiff
Make erc expand the final abbrev
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 16 Oct 2020 15:36:20 +0000 (17:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 16 Oct 2020 15:36:26 +0000 (17:36 +0200)
* lisp/erc/erc.el (erc-send-current-line): Expand abbrevs at the
end of lines (bug#42854).

lisp/erc/erc.el

index 1d5506e2816731b7c76e6b670310a77e1dbc48e9..6481446ba5e1f5040280f57f287cf6b3ef2aec16 100644 (file)
@@ -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")