diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 3e701076ef3..81890268dd7 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -903,7 +903,7 @@ the docstrings eventually produced, using interactive)) (make-callback (method origin) - (let ((pos (prog1 howmany (incf howmany)))) + (let ((pos (prog1 howmany (cl-incf howmany)))) (cl-ecase method (:enthusiast (lambda (string &rest plist) @@ -920,10 +920,10 @@ the docstrings eventually produced, using nil #'display-doc)) t)) (:patient - (incf want) + (cl-incf want) (lambda (string &rest plist) (register-doc pos string plist origin) - (when (zerop (decf want)) (display-doc)) + (when (zerop (cl-decf want)) (display-doc)) t)) (:eager (lambda (string &rest plist)