]> git.eshelyaron.com Git - emacs.git/commit
Better compilation of char-before, backward-char and backward-word
authorMattias Engdegård <mattiase@acm.org>
Thu, 27 Jul 2023 09:51:26 +0000 (11:51 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 27 Jul 2023 15:09:30 +0000 (17:09 +0200)
commit93eccb5e040c8fff4c4527819888e01683df5aaa
tree10585a8bb9296f805f450a67fc42e45f08b690ab
parente055c635b0d73efe3826e418690a3d91eee69647
Better compilation of char-before, backward-char and backward-word

Implement char-before, backward-char and backward-word as compiler
macros instead of byte-compile handlers so that the source-level
optimiser gets to simplify the result.  In particular, this removes
some branches.

* lisp/emacs-lisp/bytecomp.el (byte-compile-char-before)
(byte-compile-backward-char, byte-compile-backward-word): Remove.
(bytecomp--char-before, bytecomp--backward-char)
(bytecomp--backward-word): New.
lisp/emacs-lisp/bytecomp.el