]> git.eshelyaron.com Git - emacs.git/commit
* lisp/calc/calc-prog.el: Switch to new method of detecting end of kbd macro
authorTim Ruffing <crypto@timruffing.de>
Sat, 9 Mar 2024 11:29:39 +0000 (12:29 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:26:57 +0000 (10:26 +0100)
commit6768531193cd8a367033a82ea4f6f2caa900c498
tree87717467bb0e3b2dd5527f542f31110824c8630c
parent87fe6918d0e8bd2c48b354e8eadeb2df609593bf
* lisp/calc/calc-prog.el: Switch to new method of detecting end of kbd macro

'read-char' will no longer return -1 as of
ac82baea1c41ec974ad49f2861ae6c06bda2b4ed. This switches to a cleaner
method of detecting whether the end of a keyboard macro has been
reached.

* lisp/calc/calc-prog.el (calc--at-end-of-kmacro-p): New function.
(calc-kbd-skip-to-else-if): Use the function.

Co-authored-by: Stefan Monnier <monnier@iro.umontreal.ca>
(cherry picked from commit df3e0bcbdbcfe907d7572b5561dd2bf9c3715a4a)
lisp/calc/calc-prog.el