|
I'm using Borg with Emacs 30.2. When I'm building Consult ( I don't know much about the internals of Emacs, and especially little about the native compilation feature. I see that at the top of (eval-when-compile
(require 'cl-lib)
(require 'subr-x))It looks like things are happening with In Emacs 30.2 we have this in (defmacro cl-incf (place &optional x)
"Increment PLACE by X (1 by default).
PLACE may be a symbol, or any generalized variable allowed by `setf'.
The return value is the incremented value of PLACE.
If X is specified, it should be an expression that should
evaluate to a number."
(declare (debug (place &optional form)))
(if (symbolp place)
(list 'setq place (if x (list '+ place x) (list '1+ place)))
(list 'cl-callf '+ place (or x 1))))
(defmacro cl-decf (place &optional x)
"Decrement PLACE by X (1 by default).
PLACE may be a symbol, or any generalized variable allowed by `setf'.
The return value is the decremented value of PLACE.
If X is specified, it should be an expression that should
evaluate to a number."
(declare (debug cl-incf))
(if (symbolp place)
(list 'setq place (if x (list '- place x) (list '1- place)))
(list 'cl-callf '- place (or x 1))))and in upcoming Emacs 31.1 we have in the same file (defalias 'cl-incf #'incf
"Increment PLACE by X (1 by default).
PLACE may be a symbol, or any generalized variable allowed by `setf'.
The return value is the incremented value of PLACE.
If X is specified, it should be an expression that should
evaluate to a number.
This macro is deprecated in favor of the built-in macro `incf' that was
added in Emacs 31.1.")
(defalias 'cl-decf #'decf
"Decrement PLACE by X (1 by default).
PLACE may be a symbol, or any generalized variable allowed by `setf'.
The return value is the decremented value of PLACE.
If X is specified, it should be an expression that should
evaluate to a number.
This macro is deprecated in favor of the built-in macro `decf' that was
added in Emacs 31.1.")Relevant commits here on Emacs' master branch (in chronological order) is 23 Feb 2025, I'm doing something wrong? |
Replies: 1 comment
|
After some interaction with ChatGPT I found that my |
After some interaction with ChatGPT I found that my
compatinstallation was a few day to old, and I just updated it and everything works fine now.