aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2025-02-23 02:55:14 +0100
committerStefan Kangas2025-02-26 02:57:03 +0100
commitfa0131723c3d59240c3bf9b6cd6c0d8abc4ef63f (patch)
treee7282c29d826a0e94a149d5c517c86e8ef8021b1
parente60103f130916a4632a108352360cb620c02e9f0 (diff)
downloademacs-fa0131723c3d59240c3bf9b6cd6c0d8abc4ef63f.tar.gz
emacs-fa0131723c3d59240c3bf9b6cd6c0d8abc4ef63f.zip
Prefer incf to cl-incf in remaining files
* admin/syncdoc-type-hierarchy.el (syncdoc-make-type-table): * admin/unidata/unidata-gen.el (unidata-gen-table-word-list): * lisp/arc-mode.el (archive--summarize-descs): * lisp/auth-source.el (auth-source-forget+): * lisp/battery.el (battery-linux-proc-acpi, battery-linux-sysfs): * lisp/calendar/parse-time.el (parse-time-tokenize): * lisp/calendar/time-date.el (decoded-time-add) (decoded-time--alter-month, decoded-time--alter-day): * lisp/cedet/semantic/ede-grammar.el (project-compile-target): * lisp/dired.el (dired-insert-set-properties): * lisp/edmacro.el (edmacro-format-keys): * lisp/epa-file.el (epa-file--replace-text): * lisp/eshell/esh-cmd.el (eshell-for-iterate): * lisp/eshell/esh-io.el (eshell-create-handles) (eshell-duplicate-handles, eshell-protect-handles) (eshell-copy-output-handle, eshell-buffered-print): * lisp/font-lock.el (font-lock-fontify-keywords-region): * lisp/help-fns.el: * lisp/ibuf-ext.el (ibuffer-generate-filter-groups) (ibuffer-insert-filter-group-before): * lisp/ibuffer.el (ibuffer-confirm-operation-on, ibuffer-map-lines): * lisp/image/image-dired-external.el (image-dired-thumb-queue-run): * lisp/image/image-dired.el (image-dired-display-thumbs) (image-dired-line-up): * lisp/imenu.el (imenu--split): * lisp/info-xref.el (info-xref-check-node, info-xref-check-all-custom): * lisp/international/quail.el (quail-insert-decode-map): * lisp/international/rfc1843.el (rfc1843-decode): * lisp/mail/ietf-drums-date.el (ietf-drums-date--tokenize-string): * lisp/mail/ietf-drums.el (ietf-drums-token-to-list): * lisp/mail/rfc2047.el (rfc2047-qp-or-base64): * lisp/mail/rfc2231.el (rfc2231-encode-string): * lisp/mail/yenc.el (yenc-decode-region): * lisp/mh-e/mh-e.el (mh-xargs): * lisp/mh-e/mh-folder.el (mh-recenter): * lisp/mh-e/mh-mime.el (mh-mime-part-index): * lisp/mh-e/mh-search.el (mh-search): * lisp/mh-e/mh-thread.el (mh-thread-current-indentation-level): * lisp/mh-e/mh-utils.el (mh-sub-folders-parse): * lisp/minibuffer.el (minibuffer--sort-by-position) (completion-pcm--pattern-point-idx): * lisp/mpc.el (mpc-cmd-find, mpc-cmd-move, mpc-select-extend) (mpc-songs-refresh, mpc-songpointer-score) (mpc-songpointer-refresh-hairy): * lisp/msb.el (msb--mode-menu-cond, msb--most-recently-used-menu) (msb--split-menus-2, msb--make-keymap-menu): * lisp/net/pop3.el (pop3-send-streaming-command): * lisp/net/puny.el (puny-encode-complex, puny-decode-string-internal): * lisp/net/shr-color.el (shr-color-hue-to-rgb): * lisp/net/soap-client.el (soap-encode-xs-complex-type) (soap-decode-xs-complex-type, soap-resolve-references-for-operation) (soap-wsdl-resolve-references): * lisp/play/5x5.el (5x5-made-move, 5x5-down, 5x5-right): * lisp/play/decipher.el (key, decipher-mode-syntax-table) (decipher-add-undo, decipher-complete-alphabet, decipher--analyze) (decipher--digram-counts, decipher--digram-total): * lisp/play/hanoi.el (hanoi-move-ring): * lisp/play/snake.el (snake-reset-game, snake-update-game): * lisp/profiler.el (profiler-calltree-depth, profiler-calltree-build-1) (profiler-calltree-build-unified) (profiler-calltree-compute-percentages): * lisp/registry.el (registry-reindex): * lisp/simple.el (completion-list-candidate-at-point): * lisp/strokes.el (strokes-xpm-to-compressed-string): * lisp/term.el (term-emulate-terminal, term--handle-colors-list): * lisp/treesit.el (treesit-node-index, treesit-indent-region): * lisp/url/url-cookie.el (url-cookie-parse-file-netscape): * lisp/url/url-dav.el (url-dav-file-name-completion): * lisp/url/url-queue.el (url-queue-setup-runners) (url-queue-run-queue): * lisp/wdired.el (wdired-finish-edit): * lisp/wid-edit.el (widget-move): * lisp/window-tool-bar.el (window-tool-bar-string): * lisp/winner.el (winner-undo): * lisp/xwidget.el (xwidget-webkit-isearch-forward) (xwidget-webkit-isearch-backward): Prefer incf to cl-incf.
-rw-r--r--admin/syncdoc-type-hierarchy.el2
-rw-r--r--admin/unidata/unidata-gen.el2
-rw-r--r--lisp/arc-mode.el2
-rw-r--r--lisp/auth-source.el2
-rw-r--r--lisp/battery.el28
-rw-r--r--lisp/calendar/parse-time.el4
-rw-r--r--lisp/calendar/time-date.el10
-rw-r--r--lisp/cedet/semantic/ede-grammar.el4
-rw-r--r--lisp/dired.el2
-rw-r--r--lisp/edmacro.el18
-rw-r--r--lisp/epa-file.el4
-rw-r--r--lisp/eshell/esh-cmd.el2
-rw-r--r--lisp/eshell/esh-io.el12
-rw-r--r--lisp/font-lock.el2
-rw-r--r--lisp/help-fns.el4
-rw-r--r--lisp/ibuf-ext.el4
-rw-r--r--lisp/ibuffer.el8
-rw-r--r--lisp/image/image-dired-external.el2
-rw-r--r--lisp/image/image-dired.el6
-rw-r--r--lisp/imenu.el2
-rw-r--r--lisp/info-xref.el10
-rw-r--r--lisp/international/quail.el4
-rw-r--r--lisp/international/rfc1843.el6
-rw-r--r--lisp/mail/ietf-drums-date.el12
-rw-r--r--lisp/mail/ietf-drums.el4
-rw-r--r--lisp/mail/rfc2047.el2
-rw-r--r--lisp/mail/rfc2231.el2
-rw-r--r--lisp/mail/yenc.el4
-rw-r--r--lisp/mh-e/mh-e.el2
-rw-r--r--lisp/mh-e/mh-folder.el2
-rw-r--r--lisp/mh-e/mh-mime.el2
-rw-r--r--lisp/mh-e/mh-search.el2
-rw-r--r--lisp/mh-e/mh-thread.el2
-rw-r--r--lisp/mh-e/mh-utils.el4
-rw-r--r--lisp/minibuffer.el4
-rw-r--r--lisp/mpc.el20
-rw-r--r--lisp/msb.el8
-rw-r--r--lisp/net/pop3.el4
-rw-r--r--lisp/net/puny.el12
-rw-r--r--lisp/net/shr-color.el2
-rw-r--r--lisp/net/soap-client.el20
-rw-r--r--lisp/play/5x5.el6
-rw-r--r--lisp/play/decipher.el22
-rw-r--r--lisp/play/hanoi.el2
-rw-r--r--lisp/play/snake.el8
-rw-r--r--lisp/profiler.el10
-rw-r--r--lisp/registry.el2
-rw-r--r--lisp/simple.el2
-rw-r--r--lisp/strokes.el2
-rw-r--r--lisp/term.el6
-rw-r--r--lisp/treesit.el4
-rw-r--r--lisp/url/url-cookie.el2
-rw-r--r--lisp/url/url-dav.el2
-rw-r--r--lisp/url/url-queue.el4
-rw-r--r--lisp/wdired.el2
-rw-r--r--lisp/wid-edit.el2
-rw-r--r--lisp/window-tool-bar.el8
-rw-r--r--lisp/winner.el2
-rw-r--r--lisp/xwidget.el4
59 files changed, 169 insertions, 169 deletions
diff --git a/admin/syncdoc-type-hierarchy.el b/admin/syncdoc-type-hierarchy.el
index c9266da1c45..e58675c6e3c 100644
--- a/admin/syncdoc-type-hierarchy.el
+++ b/admin/syncdoc-type-hierarchy.el
@@ -107,7 +107,7 @@
107 (insert "|\n||") 107 (insert "|\n||")
108 (setq x 0)) 108 (setq x 0))
109 do (insert (symbol-name child) " ") 109 do (insert (symbol-name child) " ")
110 do (cl-incf x (1+ child-len)) ) 110 do (incf x (1+ child-len)) )
111 do (insert "\n"))) 111 do (insert "\n")))
112 (require 'org-table) 112 (require 'org-table)
113 (declare-function org-table-align "org") 113 (declare-function org-table-align "org")
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el
index c65d10b27aa..ac3328787f0 100644
--- a/admin/unidata/unidata-gen.el
+++ b/admin/unidata/unidata-gen.el
@@ -1004,7 +1004,7 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
1004 (dotimes (i (length vec)) 1004 (dotimes (i (length vec))
1005 (dolist (elt (aref vec i)) 1005 (dolist (elt (aref vec i))
1006 (if (symbolp elt) 1006 (if (symbolp elt)
1007 (cl-incf (alist-get elt (cdr word-list) 0))))) 1007 (incf (alist-get elt (cdr word-list) 0)))))
1008 (set-char-table-range table (cons start limit) vec)))))) 1008 (set-char-table-range table (cons start limit) vec))))))
1009 (setq word-list (sort (cdr word-list) 1009 (setq word-list (sort (cdr word-list)
1010 #'(lambda (x y) (> (cdr x) (cdr y))))) 1010 #'(lambda (x y) (> (cdr x) (cdr y)))))
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index b28669ca4cf..d3f75090fab 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -1692,7 +1692,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1692 (t (+ (string-width uid) (string-width gid) 1))))) 1692 (t (+ (string-width uid) (string-width gid) 1)))))
1693 (if (> len maxidlen) (setq maxidlen len)))) 1693 (if (> len maxidlen) (setq maxidlen len))))
1694 (let ((size (archive--file-desc-size desc))) 1694 (let ((size (archive--file-desc-size desc)))
1695 (cl-incf totalsize size) 1695 (incf totalsize size)
1696 (if (> size maxsize) (setq maxsize size)))) 1696 (if (> size maxsize) (setq maxsize size))))
1697 (let* ((sizelen (length (number-to-string maxsize))) 1697 (let* ((sizelen (length (number-to-string maxsize)))
1698 (dash 1698 (dash
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index 376c061cd19..2d4fd396942 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -852,7 +852,7 @@ while \(:host t) would find all host entries."
852 (auth-source-specmatchp spec (cdr key))) 852 (auth-source-specmatchp spec (cdr key)))
853 ;; remove that key 853 ;; remove that key
854 (password-cache-remove key) 854 (password-cache-remove key)
855 (cl-incf count))) 855 (incf count)))
856 password-data) 856 password-data)
857 count)) 857 count))
858 858
diff --git a/lisp/battery.el b/lisp/battery.el
index 0f39b3f7087..240329e20a9 100644
--- a/lisp/battery.el
+++ b/lisp/battery.el
@@ -485,19 +485,19 @@ The following %-sequences are provided:
485 (when (re-search-forward (rx "design capacity:" (+ space) 485 (when (re-search-forward (rx "design capacity:" (+ space)
486 battery--acpi-capacity eol) 486 battery--acpi-capacity eol)
487 nil t) 487 nil t)
488 (cl-incf design-capacity (string-to-number (match-string 1)))) 488 (incf design-capacity (string-to-number (match-string 1))))
489 (when (re-search-forward (rx "last full capacity:" (+ space) 489 (when (re-search-forward (rx "last full capacity:" (+ space)
490 battery--acpi-capacity eol) 490 battery--acpi-capacity eol)
491 nil t) 491 nil t)
492 (cl-incf last-full-capacity (string-to-number (match-string 1)))) 492 (incf last-full-capacity (string-to-number (match-string 1))))
493 (when (re-search-forward (rx "design capacity warning:" (+ space) 493 (when (re-search-forward (rx "design capacity warning:" (+ space)
494 battery--acpi-capacity eol) 494 battery--acpi-capacity eol)
495 nil t) 495 nil t)
496 (cl-incf warn (string-to-number (match-string 1)))) 496 (incf warn (string-to-number (match-string 1))))
497 (when (re-search-forward (rx "design capacity low:" (+ space) 497 (when (re-search-forward (rx "design capacity low:" (+ space)
498 battery--acpi-capacity eol) 498 battery--acpi-capacity eol)
499 nil t) 499 nil t)
500 (cl-incf low (string-to-number (match-string 1))))))) 500 (incf low (string-to-number (match-string 1)))))))
501 (setq full-capacity (if (> last-full-capacity 0) 501 (setq full-capacity (if (> last-full-capacity 0)
502 last-full-capacity design-capacity)) 502 last-full-capacity design-capacity))
503 (and capacity rate 503 (and capacity rate
@@ -587,10 +587,10 @@ The following %-sequences are provided:
587 (when (re-search-forward 587 (when (re-search-forward
588 "POWER_SUPPLY_\\(CURRENT\\|POWER\\)_NOW=\\([0-9]*\\)$" 588 "POWER_SUPPLY_\\(CURRENT\\|POWER\\)_NOW=\\([0-9]*\\)$"
589 nil t) 589 nil t)
590 (cl-incf power-now 590 (incf power-now
591 (* (string-to-number (match-string 2)) 591 (* (string-to-number (match-string 2))
592 (if (eq (char-after (match-beginning 1)) ?C) 592 (if (eq (char-after (match-beginning 1)) ?C)
593 voltage-now 1)))) 593 voltage-now 1))))
594 (goto-char (point-min)) 594 (goto-char (point-min))
595 (when (re-search-forward "POWER_SUPPLY_TEMP=\\([0-9]*\\)$" nil t) 595 (when (re-search-forward "POWER_SUPPLY_TEMP=\\([0-9]*\\)$" nil t)
596 (setq temperature (match-string 1))) 596 (setq temperature (match-string 1)))
@@ -604,10 +604,10 @@ The following %-sequences are provided:
604 (re-search-forward 604 (re-search-forward
605 "POWER_SUPPLY_CHARGE_NOW=\\([0-9]*\\)$" nil t) 605 "POWER_SUPPLY_CHARGE_NOW=\\([0-9]*\\)$" nil t)
606 (setq now-string (match-string 1))) 606 (setq now-string (match-string 1)))
607 (cl-incf energy-full (* (string-to-number full-string) 607 (incf energy-full (* (string-to-number full-string)
608 voltage-now)) 608 voltage-now))
609 (cl-incf energy-now (* (string-to-number now-string) 609 (incf energy-now (* (string-to-number now-string)
610 voltage-now))) 610 voltage-now)))
611 ((and (goto-char (point-min)) 611 ((and (goto-char (point-min))
612 (re-search-forward 612 (re-search-forward
613 "POWER_SUPPLY_ENERGY_FULL=\\([0-9]*\\)$" nil t) 613 "POWER_SUPPLY_ENERGY_FULL=\\([0-9]*\\)$" nil t)
@@ -615,8 +615,8 @@ The following %-sequences are provided:
615 (re-search-forward 615 (re-search-forward
616 "POWER_SUPPLY_ENERGY_NOW=\\([0-9]*\\)$" nil t) 616 "POWER_SUPPLY_ENERGY_NOW=\\([0-9]*\\)$" nil t)
617 (setq now-string (match-string 1))) 617 (setq now-string (match-string 1)))
618 (cl-incf energy-full (string-to-number full-string)) 618 (incf energy-full (string-to-number full-string))
619 (cl-incf energy-now (string-to-number now-string))))) 619 (incf energy-now (string-to-number now-string)))))
620 (unless (zerop power-now) 620 (unless (zerop power-now)
621 (let ((remaining (if (string= charging-state "Discharging") 621 (let ((remaining (if (string= charging-state "Discharging")
622 energy-now 622 energy-now
diff --git a/lisp/calendar/parse-time.el b/lisp/calendar/parse-time.el
index 00dbc459e3f..33c5815ba7b 100644
--- a/lisp/calendar/parse-time.el
+++ b/lisp/calendar/parse-time.el
@@ -63,10 +63,10 @@ letters, digits, plus or minus signs or colons."
63 (while (< index end) 63 (while (< index end)
64 (while (and (< index end) ;Skip invalid characters. 64 (while (and (< index end) ;Skip invalid characters.
65 (not (setq c (parse-time-string-chars (aref string index))))) 65 (not (setq c (parse-time-string-chars (aref string index)))))
66 (cl-incf index)) 66 (incf index))
67 (setq start index 67 (setq start index
68 all-digits (eq c ?0)) 68 all-digits (eq c ?0))
69 (while (and (< (cl-incf index) end) ;Scan valid characters. 69 (while (and (< (incf index) end) ;Scan valid characters.
70 (setq c (parse-time-string-chars (aref string index)))) 70 (setq c (parse-time-string-chars (aref string index))))
71 (setq all-digits (and all-digits (eq c ?0)))) 71 (setq all-digits (and all-digits (eq c ?0))))
72 (if (<= index end) 72 (if (<= index end)
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index 959c4f17571..ce8c668c8cd 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -541,13 +541,13 @@ changes in daylight saving time are not taken into account."
541 seconds) 541 seconds)
542 ;; Years are simple. 542 ;; Years are simple.
543 (when (decoded-time-year delta) 543 (when (decoded-time-year delta)
544 (cl-incf (decoded-time-year time) (decoded-time-year delta))) 544 (incf (decoded-time-year time) (decoded-time-year delta)))
545 545
546 ;; Months are pretty simple, but start at 1 (for January). 546 ;; Months are pretty simple, but start at 1 (for January).
547 (when (decoded-time-month delta) 547 (when (decoded-time-month delta)
548 (let ((new (+ (1- (decoded-time-month time)) (decoded-time-month delta)))) 548 (let ((new (+ (1- (decoded-time-month time)) (decoded-time-month delta))))
549 (setf (decoded-time-month time) (1+ (mod new 12))) 549 (setf (decoded-time-month time) (1+ (mod new 12)))
550 (cl-incf (decoded-time-year time) (/ new 12)))) 550 (incf (decoded-time-year time) (/ new 12))))
551 551
552 ;; Adjust for month length (as described in the doc string). 552 ;; Adjust for month length (as described in the doc string).
553 (setf (decoded-time-day time) 553 (setf (decoded-time-day time)
@@ -581,10 +581,10 @@ changes in daylight saving time are not taken into account."
581 "Increase or decrease the month in TIME by 1." 581 "Increase or decrease the month in TIME by 1."
582 (if increase 582 (if increase
583 (progn 583 (progn
584 (cl-incf (decoded-time-month time)) 584 (incf (decoded-time-month time))
585 (when (> (decoded-time-month time) 12) 585 (when (> (decoded-time-month time) 12)
586 (setf (decoded-time-month time) 1) 586 (setf (decoded-time-month time) 1)
587 (cl-incf (decoded-time-year time)))) 587 (incf (decoded-time-year time))))
588 (decf (decoded-time-month time)) 588 (decf (decoded-time-month time))
589 (when (zerop (decoded-time-month time)) 589 (when (zerop (decoded-time-month time))
590 (setf (decoded-time-month time) 12) 590 (setf (decoded-time-month time) 12)
@@ -594,7 +594,7 @@ changes in daylight saving time are not taken into account."
594 "Increase or decrease the day in TIME by 1." 594 "Increase or decrease the day in TIME by 1."
595 (if increase 595 (if increase
596 (progn 596 (progn
597 (cl-incf (decoded-time-day time)) 597 (incf (decoded-time-day time))
598 (when (> (decoded-time-day time) 598 (when (> (decoded-time-day time)
599 (date-days-in-month (decoded-time-year time) 599 (date-days-in-month (decoded-time-year time)
600 (decoded-time-month time))) 600 (decoded-time-month time)))
diff --git a/lisp/cedet/semantic/ede-grammar.el b/lisp/cedet/semantic/ede-grammar.el
index 7d00e44f751..6ee4eb55e81 100644
--- a/lisp/cedet/semantic/ede-grammar.el
+++ b/lisp/cedet/semantic/ede-grammar.el
@@ -144,8 +144,8 @@ Lays claim to all -by.el, and -wy.el files."
144 (src (ede-expand-filename obj fname)) 144 (src (ede-expand-filename obj fname))
145 ;; (csrc (concat (file-name-sans-extension src) ".elc")) 145 ;; (csrc (concat (file-name-sans-extension src) ".elc"))
146 ) 146 )
147 (cl-incf (if (eq (byte-recompile-file src nil 0) t) 147 (incf (if (eq (byte-recompile-file src nil 0) t)
148 comp utd))))) 148 comp utd)))))
149 (oref obj source)) 149 (oref obj source))
150 (message "All Semantic Grammar sources are up to date in %s" (eieio-object-name obj)) 150 (message "All Semantic Grammar sources are up to date in %s" (eieio-object-name obj))
151 (cons comp utd))) 151 (cons comp utd)))
diff --git a/lisp/dired.el b/lisp/dired.el
index 90a70b057ec..aa766b6170e 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1996,7 +1996,7 @@ Overlays could be added when some user options are enabled, e.g.,
1996 (i 0)) 1996 (i 0))
1997 (put-text-property opoint end 'invisible 'dired-hide-details-detail) 1997 (put-text-property opoint end 'invisible 'dired-hide-details-detail)
1998 (while (re-search-forward "[^ ]+" end t) 1998 (while (re-search-forward "[^ ]+" end t)
1999 (when (member (cl-incf i) dired-hide-details-preserved-columns) 1999 (when (member (incf i) dired-hide-details-preserved-columns)
2000 (put-text-property opoint (point) 'invisible nil)) 2000 (put-text-property opoint (point) 'invisible nil))
2001 (setq opoint (point))))) 2001 (setq opoint (point)))))
2002 (let ((beg (point)) (end (save-excursion 2002 (let ((beg (point)) (end (save-excursion
diff --git a/lisp/edmacro.el b/lisp/edmacro.el
index 96a633fd667..b0ae2e9011a 100644
--- a/lisp/edmacro.el
+++ b/lisp/edmacro.el
@@ -560,7 +560,7 @@ doubt, use whitespace."
560 (when (stringp macro) 560 (when (stringp macro)
561 (cl-loop for i below (length macro) do 561 (cl-loop for i below (length macro) do
562 (when (>= (aref rest-mac i) 128) 562 (when (>= (aref rest-mac i) 128)
563 (cl-incf (aref rest-mac i) (- ?\M-\^@ 128))))) 563 (incf (aref rest-mac i) (- ?\M-\^@ 128)))))
564 (while (not (eq (aref rest-mac 0) 'end-macro)) 564 (while (not (eq (aref rest-mac 0) 'end-macro))
565 (let* ((prefix 565 (let* ((prefix
566 (or (and (integerp (aref rest-mac 0)) 566 (or (and (integerp (aref rest-mac 0))
@@ -569,7 +569,7 @@ doubt, use whitespace."
569 '(digit-argument negative-argument)) 569 '(digit-argument negative-argument))
570 (let ((i 1)) 570 (let ((i 1))
571 (while (memq (aref rest-mac i) (cdr mdigs)) 571 (while (memq (aref rest-mac i) (cdr mdigs))
572 (cl-incf i)) 572 (incf i))
573 (and (not (memq (aref rest-mac i) pkeys)) 573 (and (not (memq (aref rest-mac i) pkeys))
574 (prog1 (vconcat "M-" (cl-subseq rest-mac 0 i) " ") 574 (prog1 (vconcat "M-" (cl-subseq rest-mac 0 i) " ")
575 (cl-callf cl-subseq rest-mac i))))) 575 (cl-callf cl-subseq rest-mac i)))))
@@ -577,7 +577,7 @@ doubt, use whitespace."
577 (eq (key-binding [?\C-u]) 'universal-argument) 577 (eq (key-binding [?\C-u]) 'universal-argument)
578 (let ((i 1)) 578 (let ((i 1))
579 (while (eq (aref rest-mac i) ?\C-u) 579 (while (eq (aref rest-mac i) ?\C-u)
580 (cl-incf i)) 580 (incf i))
581 (and (not (memq (aref rest-mac i) pkeys)) 581 (and (not (memq (aref rest-mac i) pkeys))
582 (prog1 (cl-loop repeat i concat "C-u ") 582 (prog1 (cl-loop repeat i concat "C-u ")
583 (cl-callf cl-subseq rest-mac i))))) 583 (cl-callf cl-subseq rest-mac i)))))
@@ -585,10 +585,10 @@ doubt, use whitespace."
585 (eq (key-binding [?\C-u]) 'universal-argument) 585 (eq (key-binding [?\C-u]) 'universal-argument)
586 (let ((i 1)) 586 (let ((i 1))
587 (when (eq (aref rest-mac i) ?-) 587 (when (eq (aref rest-mac i) ?-)
588 (cl-incf i)) 588 (incf i))
589 (while (memq (aref rest-mac i) 589 (while (memq (aref rest-mac i)
590 '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9)) 590 '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9))
591 (cl-incf i)) 591 (incf i))
592 (and (not (memq (aref rest-mac i) pkeys)) 592 (and (not (memq (aref rest-mac i) pkeys))
593 (prog1 (vconcat "C-u " (cl-subseq rest-mac 1 i) " ") 593 (prog1 (vconcat "C-u " (cl-subseq rest-mac 1 i) " ")
594 (cl-callf cl-subseq rest-mac i))))))) 594 (cl-callf cl-subseq rest-mac i)))))))
@@ -685,8 +685,8 @@ doubt, use whitespace."
685 (while (not (cl-mismatch rest-mac rest-mac 685 (while (not (cl-mismatch rest-mac rest-mac
686 :start1 0 :end1 bind-len 686 :start1 0 :end1 bind-len
687 :start2 pos :end2 (+ bind-len pos))) 687 :start2 pos :end2 (+ bind-len pos)))
688 (cl-incf times) 688 (incf times)
689 (cl-incf pos bind-len)) 689 (incf pos bind-len))
690 (when (> times 1) 690 (when (> times 1)
691 (setq desc (format "%d*%s" times desc)) 691 (setq desc (format "%d*%s" times desc))
692 (setq bind-len (* bind-len times))))) 692 (setq bind-len (* bind-len times)))))
@@ -706,9 +706,9 @@ doubt, use whitespace."
706 (setq len 1)) 706 (setq len 1))
707 (unless (equal res "") 707 (unless (equal res "")
708 (cl-callf concat res " ") 708 (cl-callf concat res " ")
709 (cl-incf len))) 709 (incf len)))
710 (cl-callf concat res desc) 710 (cl-callf concat res desc)
711 (cl-incf len (length desc))))) 711 (incf len (length desc)))))
712 res)) 712 res))
713 713
714(defun edmacro-sanitize-for-string (seq) 714(defun edmacro-sanitize-for-string (seq)
diff --git a/lisp/epa-file.el b/lisp/epa-file.el
index b1767903954..729360449b1 100644
--- a/lisp/epa-file.el
+++ b/lisp/epa-file.el
@@ -250,8 +250,8 @@ encryption is used."
250 (while (and (< p1 new-start) 250 (while (and (< p1 new-start)
251 (< p2 (point-max)) 251 (< p2 (point-max))
252 (eql (char-after p1) (char-after p2))) 252 (eql (char-after p1) (char-after p2)))
253 (cl-incf p1) 253 (incf p1)
254 (cl-incf p2)) 254 (incf p2))
255 (delete-region new-start p2) 255 (delete-region new-start p2)
256 (delete-region p1 new-start))) 256 (delete-region p1 new-start)))
257 ;; Restore point, if possible. 257 ;; Restore point, if possible.
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index 8c582968dc5..f0c3a6a3e14 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -542,7 +542,7 @@ If ARGS is not a sequence, treat it as a list of one element."
542 (cl-assert (and i end)) 542 (cl-assert (and i end))
543 (while (< i end) 543 (while (< i end)
544 (iter-yield i) 544 (iter-yield i)
545 (cl-incf i)))) 545 (incf i))))
546 ((stringp arg) 546 ((stringp arg)
547 (iter-yield arg)) 547 (iter-yield arg))
548 ((listp arg) 548 ((listp arg)
diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el
index c4f7ebf12e0..11efb428799 100644
--- a/lisp/eshell/esh-io.el
+++ b/lisp/eshell/esh-io.el
@@ -345,7 +345,7 @@ calling this function)."
345 (if stderr 345 (if stderr
346 (let ((target (eshell-get-target stderr error-mode))) 346 (let ((target (eshell-get-target stderr error-mode)))
347 (cons (when target (list target)) 1)) 347 (cons (when target (list target)) 1))
348 (cl-incf (cdr output-target)) 348 (incf (cdr output-target))
349 output-target))) 349 output-target)))
350 (aset handles eshell-output-handle (list output-target t)) 350 (aset handles eshell-output-handle (list output-target t))
351 (aset handles eshell-error-handle (list error-target t)) 351 (aset handles eshell-error-handle (list error-target t))
@@ -366,7 +366,7 @@ is not shared with the original handles."
366 (dotimes (idx eshell-number-of-handles) 366 (dotimes (idx eshell-number-of-handles)
367 (when-let* ((handle (aref handles idx))) 367 (when-let* ((handle (aref handles idx)))
368 (unless steal-p 368 (unless steal-p
369 (cl-incf (cdar handle))) 369 (incf (cdar handle)))
370 (aset dup-handles idx (list (car handle) t)))) 370 (aset dup-handles idx (list (car handle) t))))
371 dup-handles)) 371 dup-handles))
372 372
@@ -374,7 +374,7 @@ is not shared with the original handles."
374 "Protect the handles in HANDLES from a being closed." 374 "Protect the handles in HANDLES from a being closed."
375 (dotimes (idx eshell-number-of-handles) 375 (dotimes (idx eshell-number-of-handles)
376 (when-let* ((handle (aref handles idx))) 376 (when-let* ((handle (aref handles idx)))
377 (cl-incf (cdar handle)))) 377 (incf (cdar handle))))
378 handles) 378 handles)
379 379
380(declare-function eshell-exit-success-p "esh-cmd") 380(declare-function eshell-exit-success-p "esh-cmd")
@@ -442,7 +442,7 @@ If HANDLES is nil, use `eshell-current-handles'."
442 (let* ((handles (or handles eshell-current-handles)) 442 (let* ((handles (or handles eshell-current-handles))
443 (handle-to-copy (car (aref handles index-to-copy)))) 443 (handle-to-copy (car (aref handles index-to-copy))))
444 (when handle-to-copy 444 (when handle-to-copy
445 (cl-incf (cdr handle-to-copy))) 445 (incf (cdr handle-to-copy)))
446 (eshell-close-handle (aref handles index) nil) 446 (eshell-close-handle (aref handles index) nil)
447 (setcar (aref handles index) handle-to-copy))) 447 (setcar (aref handles index) handle-to-copy)))
448 448
@@ -527,8 +527,8 @@ When the buffer exceeds `eshell-buffered-print-size' in characters, this
527will flush it using `eshell-flush' (which see)." 527will flush it using `eshell-flush' (which see)."
528 (setq eshell--buffered-print-queue 528 (setq eshell--buffered-print-queue
529 (nconc eshell--buffered-print-queue strings)) 529 (nconc eshell--buffered-print-queue strings))
530 (cl-incf eshell--buffered-print-current-size 530 (incf eshell--buffered-print-current-size
531 (apply #'+ (mapcar #'length strings))) 531 (apply #'+ (mapcar #'length strings)))
532 (when (> eshell--buffered-print-current-size eshell-buffered-print-size) 532 (when (> eshell--buffered-print-current-size eshell-buffered-print-size)
533 (eshell-flush))) 533 (eshell-flush)))
534 534
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 5746ae2a027..c846ed63c4d 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1713,7 +1713,7 @@ LOUDLY, if non-nil, allows progress-meter bar."
1713 ;; Fontify each item in `font-lock-keywords' from `start' to `end'. 1713 ;; Fontify each item in `font-lock-keywords' from `start' to `end'.
1714 (while keywords 1714 (while keywords
1715 (if loudly (message "Fontifying %s... (regexps..%s)" bufname 1715 (if loudly (message "Fontifying %s... (regexps..%s)" bufname
1716 (make-string (cl-incf count) ?.))) 1716 (make-string (incf count) ?.)))
1717 ;; 1717 ;;
1718 ;; Find an occurrence of `matcher' from `start' to `end'. 1718 ;; Find an occurrence of `matcher' from `start' to `end'.
1719 (setq keyword (car keywords) matcher (car keyword)) 1719 (setq keyword (car keywords) matcher (car keyword))
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 6112df99850..bbc7700c49e 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -958,7 +958,7 @@ TYPE indicates the namespace and is `fun' or `var'."
958;; (let ((count 0)) 958;; (let ((count 0))
959;; (obarray-map (lambda (sym) 959;; (obarray-map (lambda (sym)
960;; (when (or (fboundp sym) (boundp sym)) 960;; (when (or (fboundp sym) (boundp sym))
961;; (cl-incf count))) 961;; (incf count)))
962;; obarray) 962;; obarray)
963;; count)) 963;; count))
964;; (p (make-progress-reporter "Check first releases..." 0 count))) 964;; (p (make-progress-reporter "Check first releases..." 0 count)))
@@ -971,7 +971,7 @@ TYPE indicates the namespace and is `fun' or `var'."
971;; (obarray-map 971;; (obarray-map
972;; (lambda (sym) 972;; (lambda (sym)
973;; (when (or (fboundp sym) (boundp sym)) 973;; (when (or (fboundp sym) (boundp sym))
974;; (cl-incf count) 974;; (incf count)
975;; (progress-reporter-update p count) 975;; (progress-reporter-update p count)
976;; (let ((vt (progn (setq quoted t) 976;; (let ((vt (progn (setq quoted t)
977;; (help-fns--first-release sym))) 977;; (help-fns--first-release sym)))
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index 94742cded01..e57ac772ede 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -752,7 +752,7 @@ specification, with the same structure as an element of the list
752 (hip-crowd (cdr (assq t res))) 752 (hip-crowd (cdr (assq t res)))
753 (lamers (cdr (assq nil res)))) 753 (lamers (cdr (assq nil res))))
754 (aset vec i hip-crowd) 754 (aset vec i hip-crowd)
755 (cl-incf i) 755 (incf i)
756 (setq bmarklist lamers)))) 756 (setq bmarklist lamers))))
757 (let (ret) 757 (let (ret)
758 (dotimes (j i) 758 (dotimes (j i)
@@ -898,7 +898,7 @@ See also `ibuffer-kill-filter-group'."
898 (if (equal (car groups) group) 898 (if (equal (car groups) group)
899 (setq found t 899 (setq found t
900 groups nil) 900 groups nil)
901 (cl-incf res) 901 (incf res)
902 (setq groups (cdr groups)))) 902 (setq groups (cdr groups))))
903 res))) 903 res)))
904 (cond ((not found) 904 (cond ((not found)
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index bba8d554215..53cf62b142b 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1119,7 +1119,7 @@ a new window in the current frame, splitting vertically."
1119 (setq trying nil)) 1119 (setq trying nil))
1120 (error 1120 (error
1121 ;; Handle a failure 1121 ;; Handle a failure
1122 (if (or (> (cl-incf attempts) 4) 1122 (if (or (> (incf attempts) 4)
1123 (and (stringp (cadr err)) 1123 (and (stringp (cadr err))
1124 ;; This definitely falls in the 1124 ;; This definitely falls in the
1125 ;; ghetto hack category... 1125 ;; ghetto hack category...
@@ -1917,18 +1917,18 @@ the buffer object itself and the current mark symbol."
1917 ;; nil if it chose not to affect the buffer 1917 ;; nil if it chose not to affect the buffer
1918 ;; `kill' means the remove line from the buffer list 1918 ;; `kill' means the remove line from the buffer list
1919 ;; t otherwise 1919 ;; t otherwise
1920 (cl-incf ibuffer-map-lines-total) 1920 (incf ibuffer-map-lines-total)
1921 (cond ((null result) 1921 (cond ((null result)
1922 (forward-line 1)) 1922 (forward-line 1))
1923 ((eq result 'kill) 1923 ((eq result 'kill)
1924 (delete-region (line-beginning-position) 1924 (delete-region (line-beginning-position)
1925 (1+ (line-end-position))) 1925 (1+ (line-end-position)))
1926 (cl-incf ibuffer-map-lines-count) 1926 (incf ibuffer-map-lines-count)
1927 (when (< ibuffer-map-lines-total 1927 (when (< ibuffer-map-lines-total
1928 orig-target-line) 1928 orig-target-line)
1929 (decf target-line-offset))) 1929 (decf target-line-offset)))
1930 (t 1930 (t
1931 (cl-incf ibuffer-map-lines-count) 1931 (incf ibuffer-map-lines-count)
1932 (forward-line 1))))) 1932 (forward-line 1)))))
1933 ;; With `ibuffer-auto-mode' enabled, `ibuffer-expert' nil 1933 ;; With `ibuffer-auto-mode' enabled, `ibuffer-expert' nil
1934 ;; and more than one marked buffer lines, the preceding loop 1934 ;; and more than one marked buffer lines, the preceding loop
diff --git a/lisp/image/image-dired-external.el b/lisp/image/image-dired-external.el
index f09f676893d..51aa886507f 100644
--- a/lisp/image/image-dired-external.el
+++ b/lisp/image/image-dired-external.el
@@ -517,7 +517,7 @@ Number of simultaneous jobs is limited by `image-dired-queue-active-limit'."
517 image-dired-queue-active-limit))) 517 image-dired-queue-active-limit)))
518 (while (and image-dired-queue 518 (while (and image-dired-queue
519 (< image-dired-queue-active-jobs max-jobs)) 519 (< image-dired-queue-active-jobs max-jobs))
520 (cl-incf image-dired-queue-active-jobs) 520 (incf image-dired-queue-active-jobs)
521 (apply #'image-dired-create-thumb-1 (pop image-dired-queue)))) 521 (apply #'image-dired-create-thumb-1 (pop image-dired-queue))))
522 ;; We are on MS-Windows with ImageMagick/GraphicsMagick, and need to 522 ;; We are on MS-Windows with ImageMagick/GraphicsMagick, and need to
523 ;; generate thumbnails by our lonesome selves. 523 ;; generate thumbnails by our lonesome selves.
diff --git a/lisp/image/image-dired.el b/lisp/image/image-dired.el
index aff452b0f5c..5bcf238e699 100644
--- a/lisp/image/image-dired.el
+++ b/lisp/image/image-dired.el
@@ -608,7 +608,7 @@ thumbnail buffer to be selected."
608 (when (string-match-p (image-dired--file-name-regexp) file) 608 (when (string-match-p (image-dired--file-name-regexp) file)
609 (image-dired-insert-thumbnail 609 (image-dired-insert-thumbnail
610 (image-dired--get-create-thumbnail-file file) file dired-buf) 610 (image-dired--get-create-thumbnail-file file) file dired-buf)
611 (cl-incf image-dired--number-of-thumbnails)))) 611 (incf image-dired--number-of-thumbnails))))
612 (if (plusp image-dired--number-of-thumbnails) 612 (if (plusp image-dired--number-of-thumbnails)
613 (if do-not-pop 613 (if do-not-pop
614 (display-buffer buf) 614 (display-buffer buf)
@@ -1216,9 +1216,9 @@ See also `image-dired-line-up-dynamic'."
1216 (forward-char) 1216 (forward-char)
1217 (if (= image-dired-thumbs-per-row 1) 1217 (if (= image-dired-thumbs-per-row 1)
1218 (insert "\n") 1218 (insert "\n")
1219 (cl-incf thumb-prev-pos thumb-width-chars) 1219 (incf thumb-prev-pos thumb-width-chars)
1220 (insert (propertize " " 'display `(space :align-to ,thumb-prev-pos))) 1220 (insert (propertize " " 'display `(space :align-to ,thumb-prev-pos)))
1221 (cl-incf seen) 1221 (incf seen)
1222 (when (and (= seen (- image-dired-thumbs-per-row 1)) 1222 (when (and (= seen (- image-dired-thumbs-per-row 1))
1223 (not (eobp))) 1223 (not (eobp)))
1224 (forward-char) 1224 (forward-char)
diff --git a/lisp/imenu.el b/lisp/imenu.el
index f91fbff4300..0cf18447f62 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -391,7 +391,7 @@ The returned list DOES NOT share structure with LIST."
391 (i 0)) 391 (i 0))
392 (while remain 392 (while remain
393 (push (pop remain) sublist) 393 (push (pop remain) sublist)
394 (cl-incf i) 394 (incf i)
395 (and (= i n) 395 (and (= i n)
396 ;; We have finished a sublist 396 ;; We have finished a sublist
397 (progn (push (nreverse sublist) result) 397 (progn (push (nreverse sublist) result)
diff --git a/lisp/info-xref.el b/lisp/info-xref.el
index 8637550c508..63df259c88f 100644
--- a/lisp/info-xref.el
+++ b/lisp/info-xref.el
@@ -259,11 +259,11 @@ buffer's line and column of point."
259 259
260 ;; if the file exists, try the node 260 ;; if the file exists, try the node
261 (cond ((not (cdr (assoc file info-xref-xfile-alist))) 261 (cond ((not (cdr (assoc file info-xref-xfile-alist)))
262 (cl-incf info-xref-unavail)) 262 (incf info-xref-unavail))
263 ((info-xref-goto-node-p node) 263 ((info-xref-goto-node-p node)
264 (cl-incf info-xref-good)) 264 (incf info-xref-good))
265 (t 265 (t
266 (cl-incf info-xref-bad) 266 (incf info-xref-bad)
267 (info-xref-output-error "No such node: %s" node))))))) 267 (info-xref-output-error "No such node: %s" node)))))))
268 268
269 269
@@ -482,8 +482,8 @@ and can take a long time."
482 (if (eq :tag (cadr link)) 482 (if (eq :tag (cadr link))
483 (setq link (cddr link))) 483 (setq link (cddr link)))
484 (if (info-xref-goto-node-p (cadr link)) 484 (if (info-xref-goto-node-p (cadr link))
485 (cl-incf info-xref-good) 485 (incf info-xref-good)
486 (cl-incf info-xref-bad) 486 (incf info-xref-bad)
487 ;; symbol-file gives nil for preloaded variables, would need 487 ;; symbol-file gives nil for preloaded variables, would need
488 ;; to copy what describe-variable does to show the right place 488 ;; to copy what describe-variable does to show the right place
489 (info-xref-output "Symbol `%s' (file %s): cannot goto node: %s" 489 (info-xref-output "Symbol `%s' (file %s): cannot goto node: %s"
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index daa55b14b87..2874d6cbe60 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -2419,10 +2419,10 @@ should be made by `quail-build-decode-map' (which see)."
2419 (let ((last-col-elt (or (nth (1- (* (1+ col) newrows)) 2419 (let ((last-col-elt (or (nth (1- (* (1+ col) newrows))
2420 single-list) 2420 single-list)
2421 (car (last single-list))))) 2421 (car (last single-list)))))
2422 (cl-incf width (+ (max 3 (length (car last-col-elt))) 2422 (incf width (+ (max 3 (length (car last-col-elt)))
2423 1 single-trans-width 1)))) 2423 1 single-trans-width 1))))
2424 (< width window-width)) 2424 (< width window-width))
2425 (cl-incf cols)) 2425 (incf cols))
2426 (setq rows (/ (+ len cols -1) cols)) ;Round up. 2426 (setq rows (/ (+ len cols -1) cols)) ;Round up.
2427 (let ((key-width (max 3 (length (car (nth (1- rows) single-list)))))) 2427 (let ((key-width (max 3 (length (car (nth (1- rows) single-list))))))
2428 (insert "key") 2428 (insert "key")
diff --git a/lisp/international/rfc1843.el b/lisp/international/rfc1843.el
index 133d6f2b35c..f0bd8fb556f 100644
--- a/lisp/international/rfc1843.el
+++ b/lisp/international/rfc1843.el
@@ -116,15 +116,15 @@ e-mail transmission, news posting, etc."
116 "Decode HZ WORD and return it." 116 "Decode HZ WORD and return it."
117 (let ((i -1) (s (substring word 0)) v) 117 (let ((i -1) (s (substring word 0)) v)
118 (if (or (not firstc) (eq firstc ?{)) 118 (if (or (not firstc) (eq firstc ?{))
119 (while (< (cl-incf i) (length s)) 119 (while (< (incf i) (length s))
120 (if (eq (setq v (aref s i)) ? ) nil 120 (if (eq (setq v (aref s i)) ? ) nil
121 (aset s i (+ 128 v)))) 121 (aset s i (+ 128 v))))
122 (while (< (cl-incf i) (length s)) 122 (while (< (incf i) (length s))
123 (if (eq (setq v (aref s i)) ? ) nil 123 (if (eq (setq v (aref s i)) ? ) nil
124 (setq v (+ (* 94 v) (aref s (1+ i)) -3135)) 124 (setq v (+ (* 94 v) (aref s (1+ i)) -3135))
125 (aset s i (+ (/ v 157) (if (eq firstc ?<) 201 161))) 125 (aset s i (+ (/ v 157) (if (eq firstc ?<) 201 161)))
126 (setq v (% v 157)) 126 (setq v (% v 157))
127 (aset s (cl-incf i) (+ v (if (< v 63) 64 98)))))) 127 (aset s (incf i) (+ v (if (< v 63) 64 98))))))
128 s)) 128 s))
129 129
130(provide 'rfc1843) 130(provide 'rfc1843)
diff --git a/lisp/mail/ietf-drums-date.el b/lisp/mail/ietf-drums-date.el
index 0f79e9353d3..bbb27bd1f37 100644
--- a/lisp/mail/ietf-drums-date.el
+++ b/lisp/mail/ietf-drums-date.el
@@ -80,14 +80,14 @@ treat them as whitespace (per RFC822)."
80 (or (> nest 0) 80 (or (> nest 0)
81 (ietf-drums-date--ignore-char-p char) 81 (ietf-drums-date--ignore-char-p char)
82 (and (not comment-eof) (eql char ?\()))) 82 (and (not comment-eof) (eql char ?\())))
83 (cl-incf index) 83 (incf index)
84 ;; FWS bookkeeping. 84 ;; FWS bookkeeping.
85 (cond ((and (eq char ?\\) 85 (cond ((and (eq char ?\\)
86 (< (1+ index) end)) 86 (< (1+ index) end))
87 ;; Move to the next char but don't check 87 ;; Move to the next char but don't check
88 ;; it to see if it might be a paren. 88 ;; it to see if it might be a paren.
89 (cl-incf index)) 89 (incf index))
90 ((eq char ?\() (cl-incf nest)) 90 ((eq char ?\() (incf nest))
91 ((eq char ?\)) (decf nest))))))) 91 ((eq char ?\)) (decf nest)))))))
92 (skip-ignored) ;; Skip leading whitespace. 92 (skip-ignored) ;; Skip leading whitespace.
93 (while (and (< index end) 93 (while (and (< index end)
@@ -106,8 +106,8 @@ treat them as whitespace (per RFC822)."
106 ;; RFC2?822 dates need escaping anyway, so it shouldn't 106 ;; RFC2?822 dates need escaping anyway, so it shouldn't
107 ;; matter that this is not done strictly correctly. -- 107 ;; matter that this is not done strictly correctly. --
108 ;; rgr, 24-Dec-21. 108 ;; rgr, 24-Dec-21.
109 (cl-incf index)) 109 (incf index))
110 (while (and (< (cl-incf index) end) 110 (while (and (< (incf index) end)
111 (setq char (aref string index)) 111 (setq char (aref string index))
112 (not (or (ietf-drums-date--ignore-char-p char) 112 (not (or (ietf-drums-date--ignore-char-p char)
113 (eq char ?\()))) 113 (eq char ?\())))
@@ -116,7 +116,7 @@ treat them as whitespace (per RFC822)."
116 (when (and (eq char ?\\) 116 (when (and (eq char ?\\)
117 (< (1+ index) end)) 117 (< (1+ index) end))
118 ;; Escaped character, see above. 118 ;; Escaped character, see above.
119 (cl-incf index))) 119 (incf index)))
120 (push (if all-digits 120 (push (if all-digits
121 (cl-parse-integer string :start start :end index) 121 (cl-parse-integer string :start start :end index)
122 (substring string start index)) 122 (substring string start index))
diff --git a/lisp/mail/ietf-drums.el b/lisp/mail/ietf-drums.el
index a756d0e7d03..15638b24b35 100644
--- a/lisp/mail/ietf-drums.el
+++ b/lisp/mail/ietf-drums.el
@@ -86,7 +86,7 @@ backslash and doublequote.")
86 b c out range) 86 b c out range)
87 (while (< i (length token)) 87 (while (< i (length token))
88 (setq c (aref token i)) 88 (setq c (aref token i))
89 (cl-incf i) 89 (incf i)
90 (cond 90 (cond
91 ((eq c ?-) 91 ((eq c ?-)
92 (if b 92 (if b
@@ -95,7 +95,7 @@ backslash and doublequote.")
95 (range 95 (range
96 (while (<= b c) 96 (while (<= b c)
97 (push (make-char 'ascii b) out) 97 (push (make-char 'ascii b) out)
98 (cl-incf b)) 98 (incf b))
99 (setq range nil)) 99 (setq range nil))
100 ((= i (length token)) 100 ((= i (length token))
101 (push (make-char 'ascii c) out)) 101 (push (make-char 'ascii c) out))
diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el
index 13d1ac320b0..66760a6595b 100644
--- a/lisp/mail/rfc2047.el
+++ b/lisp/mail/rfc2047.el
@@ -157,7 +157,7 @@ This is either `base64' or `quoted-printable'."
157 (goto-char (point-min)) 157 (goto-char (point-min))
158 (skip-chars-forward "\x20-\x7f\r\n\t" limit) 158 (skip-chars-forward "\x20-\x7f\r\n\t" limit)
159 (while (< (point) limit) 159 (while (< (point) limit)
160 (cl-incf n8bit) 160 (incf n8bit)
161 (forward-char 1) 161 (forward-char 1)
162 (skip-chars-forward "\x20-\x7f\r\n\t" limit)) 162 (skip-chars-forward "\x20-\x7f\r\n\t" limit))
163 (if (or (< (* 6 n8bit) (- limit (point-min))) 163 (if (or (< (* 6 n8bit) (- limit (point-min)))
diff --git a/lisp/mail/rfc2231.el b/lisp/mail/rfc2231.el
index 04527c78f8b..3426c909696 100644
--- a/lisp/mail/rfc2231.el
+++ b/lisp/mail/rfc2231.el
@@ -293,7 +293,7 @@ the result of this function."
293 (insert param "*=") 293 (insert param "*=")
294 (while (not (eobp)) 294 (while (not (eobp))
295 (insert (if (>= num 0) " " "") 295 (insert (if (>= num 0) " " "")
296 param "*" (format "%d" (cl-incf num)) "*=") 296 param "*" (format "%d" (incf num)) "*=")
297 (forward-line 1)))) 297 (forward-line 1))))
298 (spacep 298 (spacep
299 (goto-char (point-min)) 299 (goto-char (point-min))
diff --git a/lisp/mail/yenc.el b/lisp/mail/yenc.el
index 81cbab13b1f..ed7fb0fc6b2 100644
--- a/lisp/mail/yenc.el
+++ b/lisp/mail/yenc.el
@@ -97,14 +97,14 @@
97 (cond ((or (eq char ?\r) 97 (cond ((or (eq char ?\r)
98 (eq char ?\n))) 98 (eq char ?\n)))
99 ((eq char ?=) 99 ((eq char ?=)
100 (setq char (char-after (cl-incf first))) 100 (setq char (char-after (incf first)))
101 (with-current-buffer work-buffer 101 (with-current-buffer work-buffer
102 (insert-char (mod (- char 106) 256) 1))) 102 (insert-char (mod (- char 106) 256) 1)))
103 (t 103 (t
104 (with-current-buffer work-buffer 104 (with-current-buffer work-buffer
105 ;;(insert-char (mod (- char 42) 256) 1) 105 ;;(insert-char (mod (- char 42) 256) 1)
106 (insert-char (aref yenc-decoding-vector char) 1)))) 106 (insert-char (aref yenc-decoding-vector char) 1))))
107 (cl-incf first)) 107 (incf first))
108 (setq bytes (buffer-size work-buffer)) 108 (setq bytes (buffer-size work-buffer))
109 (unless (and (= (cdr (assq 'size header-alist)) bytes) 109 (unless (and (= (cdr (assq 'size header-alist)) bytes)
110 (= (cdr (assq 'size footer-alist)) bytes)) 110 (= (cdr (assq 'size footer-alist)) bytes))
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index ac13d3b2adb..e9e4e271065 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -463,7 +463,7 @@ all the strings have been used."
463 (push (buffer-substring-no-properties (point) 463 (push (buffer-substring-no-properties (point)
464 (line-end-position)) 464 (line-end-position))
465 arg-list) 465 arg-list)
466 (cl-incf count) 466 (incf count)
467 (forward-line)) 467 (forward-line))
468 (apply #'call-process cmd nil (list out nil) nil 468 (apply #'call-process cmd nil (list out nil) nil
469 (nreverse arg-list)))) 469 (nreverse arg-list))))
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el
index 0f0cd88d212..5009c2c4f98 100644
--- a/lisp/mh-e/mh-folder.el
+++ b/lisp/mh-e/mh-folder.el
@@ -1472,7 +1472,7 @@ function doesn't recenter the folder buffer."
1472 (let ((lines-from-end 2)) 1472 (let ((lines-from-end 2))
1473 (save-excursion 1473 (save-excursion
1474 (while (> (point-max) (progn (forward-line) (point))) 1474 (while (> (point-max) (progn (forward-line) (point)))
1475 (cl-incf lines-from-end))) 1475 (incf lines-from-end)))
1476 (recenter (- lines-from-end)))) 1476 (recenter (- lines-from-end))))
1477 ;; '(4) is the same as C-u prefix argument. 1477 ;; '(4) is the same as C-u prefix argument.
1478 (t (recenter (or arg '(4)))))) 1478 (t (recenter (or arg '(4))))))
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el
index 568d196ef05..00a6293ba70 100644
--- a/lisp/mh-e/mh-mime.el
+++ b/lisp/mh-e/mh-mime.el
@@ -750,7 +750,7 @@ buttons need to be displayed multiple times (for instance when
750nested messages are opened)." 750nested messages are opened)."
751 (or (gethash handle (mh-mime-part-index-hash (mh-buffer-data))) 751 (or (gethash handle (mh-mime-part-index-hash (mh-buffer-data)))
752 (setf (gethash handle (mh-mime-part-index-hash (mh-buffer-data))) 752 (setf (gethash handle (mh-mime-part-index-hash (mh-buffer-data)))
753 (cl-incf (mh-mime-parts-count (mh-buffer-data)))))) 753 (incf (mh-mime-parts-count (mh-buffer-data))))))
754 754
755(defun mh-small-image-p (handle) 755(defun mh-small-image-p (handle)
756 "Decide whether HANDLE is a \"small\" image that can be displayed inline. 756 "Decide whether HANDLE is a \"small\" image that can be displayed inline.
diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el
index a0925684637..2dd50d3134a 100644
--- a/lisp/mh-e/mh-search.el
+++ b/lisp/mh-e/mh-search.el
@@ -287,7 +287,7 @@ folder containing the index search results."
287 "-sequence" 287 "-sequence"
288 "cur" (format "%s" cur))) 288 "cur" (format "%s" cur)))
289 (cl-loop for msg in msgs 289 (cl-loop for msg in msgs
290 do (cl-incf result-count) 290 do (incf result-count)
291 (setf (gethash result-count origin-map) 291 (setf (gethash result-count origin-map)
292 (cons folder msg))))) 292 (cons folder msg)))))
293 folder-results-map) 293 folder-results-map)
diff --git a/lisp/mh-e/mh-thread.el b/lisp/mh-e/mh-thread.el
index f7ab461b924..d7d5b1828b1 100644
--- a/lisp/mh-e/mh-thread.el
+++ b/lisp/mh-e/mh-thread.el
@@ -248,7 +248,7 @@ sibling."
248 (beginning-of-line) 248 (beginning-of-line)
249 (forward-char address-start-offset) 249 (forward-char address-start-offset)
250 (while (char-equal (char-after) ? ) 250 (while (char-equal (char-after) ? )
251 (cl-incf level) 251 (incf level)
252 (forward-char)) 252 (forward-char))
253 level))) 253 level)))
254 254
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el
index 1c6bc6833f0..205c13c849c 100644
--- a/lisp/mh-e/mh-utils.el
+++ b/lisp/mh-e/mh-utils.el
@@ -579,9 +579,9 @@ This function is a testable helper of `mh-sub-folders-actual'."
579 (when (integerp has-pos) 579 (when (integerp has-pos)
580 (while (equal (char-after has-pos) ? ) 580 (while (equal (char-after has-pos) ? )
581 (decf has-pos)) 581 (decf has-pos))
582 (cl-incf has-pos) 582 (incf has-pos)
583 (while (equal (char-after start-pos) ? ) 583 (while (equal (char-after start-pos) ? )
584 (cl-incf start-pos)) 584 (incf start-pos))
585 (let* ((name (buffer-substring start-pos has-pos)) 585 (let* ((name (buffer-substring start-pos has-pos))
586 (first-char (aref name 0)) 586 (first-char (aref name 0))
587 (second-char (and (length> name 1) (aref name 1))) 587 (second-char (and (length> name 1) (aref name 1)))
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 0368e533dab..76061652161 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1758,7 +1758,7 @@ KEYFUN takes an element of ELEMS and should return a numerical value."
1758 (dolist (c hist) 1758 (dolist (c hist)
1759 (unless (gethash c hash) 1759 (unless (gethash c hash)
1760 (puthash c index hash)) 1760 (puthash c index hash))
1761 (cl-incf index)) 1761 (incf index))
1762 (minibuffer--sort-by-key 1762 (minibuffer--sort-by-key
1763 elems (lambda (x) (gethash x hash most-positive-fixnum))))) 1763 elems (lambda (x) (gethash x hash most-positive-fixnum)))))
1764 1764
@@ -4068,7 +4068,7 @@ Return nil if there's no such element."
4068 (i 0)) 4068 (i 0))
4069 (dolist (x pattern) 4069 (dolist (x pattern)
4070 (unless (stringp x) 4070 (unless (stringp x)
4071 (cl-incf i) 4071 (incf i)
4072 (if (eq x 'point) (setq idx i)))) 4072 (if (eq x 'point) (setq idx i))))
4073 idx)) 4073 idx))
4074 4074
diff --git a/lisp/mpc.el b/lisp/mpc.el
index 9e63c76a323..7c96bdb3ac7 100644
--- a/lisp/mpc.el
+++ b/lisp/mpc.el
@@ -634,7 +634,7 @@ The songs are returned as alists."
634 (i 0)) 634 (i 0))
635 (mapcar (lambda (s) 635 (mapcar (lambda (s)
636 (prog1 (cons (cons 'Pos (number-to-string i)) s) 636 (prog1 (cons (cons 'Pos (number-to-string i)) s)
637 (cl-incf i))) 637 (incf i)))
638 l))) 638 l)))
639 ((eq tag 'Search) 639 ((eq tag 'Search)
640 (mpc-proc-buf-to-alists 640 (mpc-proc-buf-to-alists
@@ -870,7 +870,7 @@ If PLAYLIST is t or nil or missing, use the main playlist."
870 (if (< song-pos dest-pos) 870 (if (< song-pos dest-pos)
871 ;; This move has shifted dest-pos by 1. 871 ;; This move has shifted dest-pos by 1.
872 (decf dest-pos)) 872 (decf dest-pos))
873 (cl-incf i))) 873 (incf i)))
874 ;; Sort them from last to first, so the renumbering 874 ;; Sort them from last to first, so the renumbering
875 ;; caused by the earlier deletions affect 875 ;; caused by the earlier deletions affect
876 ;; later ones a bit less. 876 ;; later ones a bit less.
@@ -1420,12 +1420,12 @@ string POST."
1420 (while (and (zerop (forward-line 1)) 1420 (while (and (zerop (forward-line 1))
1421 (get-char-property (point) 'mpc-select)) 1421 (get-char-property (point) 'mpc-select))
1422 (setq end (1+ (point))) 1422 (setq end (1+ (point)))
1423 (cl-incf after)) 1423 (incf after))
1424 (goto-char mid) 1424 (goto-char mid)
1425 (while (and (zerop (forward-line -1)) 1425 (while (and (zerop (forward-line -1))
1426 (get-char-property (point) 'mpc-select)) 1426 (get-char-property (point) 'mpc-select))
1427 (setq start (point)) 1427 (setq start (point))
1428 (cl-incf before)) 1428 (incf before))
1429 (if (and (= after 0) (= before 0)) 1429 (if (and (= after 0) (= before 0))
1430 ;; Shortening an already minimum-size region: do nothing. 1430 ;; Shortening an already minimum-size region: do nothing.
1431 nil 1431 nil
@@ -1449,13 +1449,13 @@ string POST."
1449 (start (line-beginning-position))) 1449 (start (line-beginning-position)))
1450 (while (and (zerop (forward-line 1)) 1450 (while (and (zerop (forward-line 1))
1451 (not (get-char-property (point) 'mpc-select))) 1451 (not (get-char-property (point) 'mpc-select)))
1452 (cl-incf count)) 1452 (incf count))
1453 (unless (get-char-property (point) 'mpc-select) 1453 (unless (get-char-property (point) 'mpc-select)
1454 (setq count nil)) 1454 (setq count nil))
1455 (goto-char start) 1455 (goto-char start)
1456 (while (and (zerop (forward-line -1)) 1456 (while (and (zerop (forward-line -1))
1457 (not (get-char-property (point) 'mpc-select))) 1457 (not (get-char-property (point) 'mpc-select)))
1458 (cl-incf before)) 1458 (incf before))
1459 (unless (get-char-property (point) 'mpc-select) 1459 (unless (get-char-property (point) 'mpc-select)
1460 (setq before nil)) 1460 (setq before nil))
1461 (when (and before (or (null count) (< before count))) 1461 (when (and before (or (null count) (< before count)))
@@ -2063,7 +2063,7 @@ This is used so that they can be compared with `eq', which is needed for
2063 (cdr (assq 'file song1)) 2063 (cdr (assq 'file song1))
2064 (cdr (assq 'file song2))))) 2064 (cdr (assq 'file song2)))))
2065 (and (integerp cmp) (< cmp 0))))))) 2065 (and (integerp cmp) (< cmp 0)))))))
2066 (cl-incf totaltime (string-to-number (or (cdr (assq 'Time song)) "0"))) 2066 (incf totaltime (string-to-number (or (cdr (assq 'Time song)) "0")))
2067 (mpc-format mpc-songs-format song) 2067 (mpc-format mpc-songs-format song)
2068 (delete-char (- (skip-chars-backward " "))) ;Remove trailing space. 2068 (delete-char (- (skip-chars-backward " "))) ;Remove trailing space.
2069 (insert "\n") 2069 (insert "\n")
@@ -2305,12 +2305,12 @@ This is used so that they can be compared with `eq', which is needed for
2305 (dolist (song (car context)) 2305 (dolist (song (car context))
2306 (and (zerop (forward-line -1)) 2306 (and (zerop (forward-line -1))
2307 (eq (get-text-property (point) 'mpc-file) song) 2307 (eq (get-text-property (point) 'mpc-file) song)
2308 (cl-incf count))) 2308 (incf count)))
2309 (goto-char pos) 2309 (goto-char pos)
2310 (dolist (song (cdr context)) 2310 (dolist (song (cdr context))
2311 (and (zerop (forward-line 1)) 2311 (and (zerop (forward-line 1))
2312 (eq (get-text-property (point) 'mpc-file) song) 2312 (eq (get-text-property (point) 'mpc-file) song)
2313 (cl-incf count))) 2313 (incf count)))
2314 count)) 2314 count))
2315 2315
2316(defun mpc-songpointer-refresh-hairy () 2316(defun mpc-songpointer-refresh-hairy ()
@@ -2351,7 +2351,7 @@ This is used so that they can be compared with `eq', which is needed for
2351 ((< score context-size) nil) 2351 ((< score context-size) nil)
2352 (t 2352 (t
2353 ;; Score is equal and increasing context might help: try it. 2353 ;; Score is equal and increasing context might help: try it.
2354 (cl-incf context-size) 2354 (incf context-size)
2355 (let ((new-context 2355 (let ((new-context
2356 (mpc-songpointer-context context-size plbuf))) 2356 (mpc-songpointer-context context-size plbuf)))
2357 (if (null new-context) 2357 (if (null new-context)
diff --git a/lisp/msb.el b/lisp/msb.el
index 6d8f976ee37..103f6ff838f 100644
--- a/lisp/msb.el
+++ b/lisp/msb.el
@@ -803,7 +803,7 @@ results in
803(defun msb--mode-menu-cond () 803(defun msb--mode-menu-cond ()
804 (let ((key msb-modes-key)) 804 (let ((key msb-modes-key))
805 (mapcar (lambda (item) 805 (mapcar (lambda (item)
806 (cl-incf key) 806 (incf key)
807 (list `( eq major-mode (quote ,(car item))) 807 (list `( eq major-mode (quote ,(car item)))
808 key 808 key
809 (concat (cdr item) " (%d)"))) 809 (concat (cdr item) " (%d)")))
@@ -837,7 +837,7 @@ It takes the form ((TITLE . BUFFER-LIST)...)."
837 buffer 837 buffer
838 max-buffer-name-length) 838 max-buffer-name-length)
839 buffer)) 839 buffer))
840 and do (cl-incf n) 840 and do (incf n)
841 until (>= n msb-display-most-recently-used)))) 841 until (>= n msb-display-most-recently-used))))
842 (cons (if (stringp msb-most-recently-used-title) 842 (cons (if (stringp msb-most-recently-used-title)
843 (format msb-most-recently-used-title 843 (format msb-most-recently-used-title
@@ -1025,7 +1025,7 @@ variable `msb-menu-cond'."
1025 (tmp-list nil)) 1025 (tmp-list nil))
1026 (while (< count msb-max-menu-items) 1026 (while (< count msb-max-menu-items)
1027 (push (pop list) tmp-list) 1027 (push (pop list) tmp-list)
1028 (cl-incf count)) 1028 (incf count))
1029 (setq tmp-list (nreverse tmp-list)) 1029 (setq tmp-list (nreverse tmp-list))
1030 (setq sub-name (concat (car (car tmp-list)) "...")) 1030 (setq sub-name (concat (car (car tmp-list)) "..."))
1031 (push (nconc (list mcount sub-name 1031 (push (nconc (list mcount sub-name
@@ -1065,7 +1065,7 @@ variable `msb-menu-cond'."
1065 (cons (buffer-name (cdr item)) 1065 (cons (buffer-name (cdr item))
1066 (cons (car item) 'msb--select-buffer))) 1066 (cons (car item) 'msb--select-buffer)))
1067 (cdr sub-menu)))) 1067 (cdr sub-menu))))
1068 (nconc (list (cl-incf mcount) (car sub-menu) 1068 (nconc (list (incf mcount) (car sub-menu)
1069 'keymap (car sub-menu)) 1069 'keymap (car sub-menu))
1070 (msb--split-menus buffers)))))) 1070 (msb--split-menus buffers))))))
1071 raw-menu))) 1071 raw-menu)))
diff --git a/lisp/net/pop3.el b/lisp/net/pop3.el
index a4de429311c..4d64cf153da 100644
--- a/lisp/net/pop3.el
+++ b/lisp/net/pop3.el
@@ -233,8 +233,8 @@ Use streaming commands."
233 (setq start-point 233 (setq start-point
234 (pop3-wait-for-messages process pop3-stream-length 234 (pop3-wait-for-messages process pop3-stream-length
235 total-size start-point)) 235 total-size start-point))
236 (cl-incf waited-for pop3-stream-length)) 236 (incf waited-for pop3-stream-length))
237 (cl-incf i)) 237 (incf i))
238 (pop3-wait-for-messages process (- count waited-for) 238 (pop3-wait-for-messages process (- count waited-for)
239 total-size start-point))) 239 total-size start-point)))
240 240
diff --git a/lisp/net/puny.el b/lisp/net/puny.el
index 809e1832f07..456c0eefac3 100644
--- a/lisp/net/puny.el
+++ b/lisp/net/puny.el
@@ -114,7 +114,7 @@ For instance \"xn--bcher-kva\" => \"bücher\"."
114 n m) 114 n m)
115 (cl-loop for char across string 115 (cl-loop for char across string
116 when (< char n) 116 when (< char n)
117 do (cl-incf delta) 117 do (incf delta)
118 when (= char ijv) 118 when (= char ijv)
119 do (progn 119 do (progn
120 (setq q delta) 120 (setq q delta)
@@ -137,8 +137,8 @@ For instance \"xn--bcher-kva\" => \"bücher\"."
137 (setq bias (puny-adapt delta (+ h 1) (= h insertion-points)) 137 (setq bias (puny-adapt delta (+ h 1) (= h insertion-points))
138 delta 0 138 delta 0
139 h (1+ h)))) 139 h (1+ h))))
140 (cl-incf delta) 140 (incf delta)
141 (cl-incf n)) 141 (incf n))
142 (nreverse result))) 142 (nreverse result)))
143 143
144(defun puny-decode-digit (cp) 144(defun puny-decode-digit (cp)
@@ -174,8 +174,8 @@ For instance \"xn--bcher-kva\" => \"bücher\"."
174 digit t1) 174 digit t1)
175 (cl-loop do (progn 175 (cl-loop do (progn
176 (setq digit (puny-decode-digit (aref encoded ic))) 176 (setq digit (puny-decode-digit (aref encoded ic)))
177 (cl-incf ic) 177 (incf ic)
178 (cl-incf i (* digit w)) 178 (incf i (* digit w))
179 (setq t1 (cond 179 (setq t1 (cond
180 ((<= k bias) 180 ((<= k bias)
181 puny-tmin) 181 puny-tmin)
@@ -194,7 +194,7 @@ For instance \"xn--bcher-kva\" => \"bücher\"."
194 (goto-char (point-min)) 194 (goto-char (point-min))
195 (forward-char i) 195 (forward-char i)
196 (insert (format "%c" n)) 196 (insert (format "%c" n))
197 (cl-incf i))) 197 (incf i)))
198 (buffer-string))) 198 (buffer-string)))
199 199
200;; https://www.unicode.org/reports/tr39/#Restriction_Level_Detection 200;; https://www.unicode.org/reports/tr39/#Restriction_Level_Detection
diff --git a/lisp/net/shr-color.el b/lisp/net/shr-color.el
index 3f7b6f6df8f..bbb7bd6afaa 100644
--- a/lisp/net/shr-color.el
+++ b/lisp/net/shr-color.el
@@ -208,7 +208,7 @@ This will convert \"80 %\" to 204, \"100 %\" to 255 but \"123\" to \"123\"."
208 208
209(defun shr-color-hue-to-rgb (x y h) 209(defun shr-color-hue-to-rgb (x y h)
210 "Convert X Y H to RGB value." 210 "Convert X Y H to RGB value."
211 (when (< h 0) (cl-incf h)) 211 (when (< h 0) (incf h))
212 (when (> h 1) (decf h)) 212 (when (> h 1) (decf h))
213 (cond ((< h (/ 6.0)) (+ x (* (- y x) h 6))) 213 (cond ((< h (/ 6.0)) (+ x (* (- y x) h 6)))
214 ((< h 0.5) y) 214 ((< h 0.5) y)
diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el
index 84c40895227..c4d816aa60a 100644
--- a/lisp/net/soap-client.el
+++ b/lisp/net/soap-client.el
@@ -1768,7 +1768,7 @@ This is a specialization of `soap-encode-value' for
1768 (let ((e-name (intern e-name))) 1768 (let ((e-name (intern e-name)))
1769 (dolist (v value) 1769 (dolist (v value)
1770 (when (equal (car v) e-name) 1770 (when (equal (car v) e-name)
1771 (cl-incf instance-count) 1771 (incf instance-count)
1772 (soap-encode-value (cdr v) candidate)))) 1772 (soap-encode-value (cdr v) candidate))))
1773 (if (soap-xs-complex-type-indicator type) 1773 (if (soap-xs-complex-type-indicator type)
1774 (let ((current-point (point))) 1774 (let ((current-point (point)))
@@ -1776,12 +1776,12 @@ This is a specialization of `soap-encode-value' for
1776 ;; characters were inserted in the buffer. 1776 ;; characters were inserted in the buffer.
1777 (soap-encode-value value candidate) 1777 (soap-encode-value value candidate)
1778 (when (not (equal current-point (point))) 1778 (when (not (equal current-point (point)))
1779 (cl-incf instance-count))) 1779 (incf instance-count)))
1780 (dolist (v value) 1780 (dolist (v value)
1781 (let ((current-point (point))) 1781 (let ((current-point (point)))
1782 (soap-encode-value v candidate) 1782 (soap-encode-value v candidate)
1783 (when (not (equal current-point (point))) 1783 (when (not (equal current-point (point)))
1784 (cl-incf instance-count)))))))) 1784 (incf instance-count))))))))
1785 ;; Do some sanity checking 1785 ;; Do some sanity checking
1786 (let* ((indicator (soap-xs-complex-type-indicator type)) 1786 (let* ((indicator (soap-xs-complex-type-indicator type))
1787 (element-type (soap-xs-element-type element)) 1787 (element-type (soap-xs-element-type element))
@@ -1997,7 +1997,7 @@ This is a specialization of `soap-decode-type' for
1997 (list node))) 1997 (list node)))
1998 (element-type (soap-xs-element-type element))) 1998 (element-type (soap-xs-element-type element)))
1999 (dolist (node children) 1999 (dolist (node children)
2000 (cl-incf instance-count) 2000 (incf instance-count)
2001 (let* ((attributes 2001 (let* ((attributes
2002 (soap-decode-xs-attributes element-type node)) 2002 (soap-decode-xs-attributes element-type node))
2003 ;; Attributes may specify xsi:type override. 2003 ;; Attributes may specify xsi:type override.
@@ -2316,7 +2316,7 @@ See also `soap-resolve-references' and
2316 (message (cdr input))) 2316 (message (cdr input)))
2317 ;; Name this part if it was not named 2317 ;; Name this part if it was not named
2318 (when (or (null name) (equal name "")) 2318 (when (or (null name) (equal name ""))
2319 (setq name (format "in%d" (cl-incf counter)))) 2319 (setq name (format "in%d" (incf counter))))
2320 (when (soap-name-p message) 2320 (when (soap-name-p message)
2321 (setf (soap-operation-input operation) 2321 (setf (soap-operation-input operation)
2322 (cons (intern name) 2322 (cons (intern name)
@@ -2327,7 +2327,7 @@ See also `soap-resolve-references' and
2327 (let ((name (car output)) 2327 (let ((name (car output))
2328 (message (cdr output))) 2328 (message (cdr output)))
2329 (when (or (null name) (equal name "")) 2329 (when (or (null name) (equal name ""))
2330 (setq name (format "out%d" (cl-incf counter)))) 2330 (setq name (format "out%d" (incf counter))))
2331 (when (soap-name-p message) 2331 (when (soap-name-p message)
2332 (setf (soap-operation-output operation) 2332 (setf (soap-operation-output operation)
2333 (cons (intern name) 2333 (cons (intern name)
@@ -2339,7 +2339,7 @@ See also `soap-resolve-references' and
2339 (let ((name (car fault)) 2339 (let ((name (car fault))
2340 (message (cdr fault))) 2340 (message (cdr fault)))
2341 (when (or (null name) (equal name "")) 2341 (when (or (null name) (equal name ""))
2342 (setq name (format "fault%d" (cl-incf counter)))) 2342 (setq name (format "fault%d" (incf counter))))
2343 (if (soap-name-p message) 2343 (if (soap-name-p message)
2344 (push (cons (intern name) 2344 (push (cons (intern name)
2345 (soap-wsdl-get message wsdl 'soap-message-p)) 2345 (soap-wsdl-get message wsdl 'soap-message-p))
@@ -2425,19 +2425,19 @@ traverse an element tree."
2425 ;; If this namespace does not have an alias, create one for it. 2425 ;; If this namespace does not have an alias, create one for it.
2426 (catch 'done 2426 (catch 'done
2427 (while t 2427 (while t
2428 (setq nstag (format "ns%d" (cl-incf nstag-id))) 2428 (setq nstag (format "ns%d" (incf nstag-id)))
2429 (unless (assoc nstag alias-table) 2429 (unless (assoc nstag alias-table)
2430 (soap-wsdl-add-alias nstag (soap-namespace-name ns) wsdl) 2430 (soap-wsdl-add-alias nstag (soap-namespace-name ns) wsdl)
2431 (throw 'done t))))) 2431 (throw 'done t)))))
2432 2432
2433 (maphash (lambda (_name element) 2433 (maphash (lambda (_name element)
2434 (cond ((soap-element-p element) ; skip links 2434 (cond ((soap-element-p element) ; skip links
2435 (cl-incf nprocessed) 2435 (incf nprocessed)
2436 (soap-resolve-references element wsdl)) 2436 (soap-resolve-references element wsdl))
2437 ((listp element) 2437 ((listp element)
2438 (dolist (e element) 2438 (dolist (e element)
2439 (when (soap-element-p e) 2439 (when (soap-element-p e)
2440 (cl-incf nprocessed) 2440 (incf nprocessed)
2441 (soap-resolve-references e wsdl)))))) 2441 (soap-resolve-references e wsdl))))))
2442 (soap-namespace-elements ns))))) 2442 (soap-namespace-elements ns)))))
2443 wsdl) 2443 wsdl)
diff --git a/lisp/play/5x5.el b/lisp/play/5x5.el
index 31b398a4bc1..159ed29adba 100644
--- a/lisp/play/5x5.el
+++ b/lisp/play/5x5.el
@@ -335,7 +335,7 @@ Quit current game \\[5x5-quit-game]"
335 335
336(defun 5x5-made-move () 336(defun 5x5-made-move ()
337 "Keep track of how many moves have been made." 337 "Keep track of how many moves have been made."
338 (cl-incf 5x5-moves)) 338 (incf 5x5-moves))
339 339
340(defun 5x5-make-random-grid (&optional move) 340(defun 5x5-make-random-grid (&optional move)
341 "Make a random grid." 341 "Make a random grid."
@@ -865,7 +865,7 @@ lest."
865 "Move down." 865 "Move down."
866 (interactive nil 5x5-mode) 866 (interactive nil 5x5-mode)
867 (unless (= 5x5-y-pos (1- 5x5-grid-size)) 867 (unless (= 5x5-y-pos (1- 5x5-grid-size))
868 (cl-incf 5x5-y-pos) 868 (incf 5x5-y-pos)
869 (5x5-position-cursor))) 869 (5x5-position-cursor)))
870 870
871(defun 5x5-left () 871(defun 5x5-left ()
@@ -879,7 +879,7 @@ lest."
879 "Move right." 879 "Move right."
880 (interactive nil 5x5-mode) 880 (interactive nil 5x5-mode)
881 (unless (= 5x5-x-pos (1- 5x5-grid-size)) 881 (unless (= 5x5-x-pos (1- 5x5-grid-size))
882 (cl-incf 5x5-x-pos) 882 (incf 5x5-x-pos)
883 (5x5-position-cursor))) 883 (5x5-position-cursor)))
884 884
885(defun 5x5-bol () 885(defun 5x5-bol ()
diff --git a/lisp/play/decipher.el b/lisp/play/decipher.el
index 6b5a8d570db..ebcd50e736d 100644
--- a/lisp/play/decipher.el
+++ b/lisp/play/decipher.el
@@ -155,7 +155,7 @@ the tail of the list."
155(let ((key ?a)) 155(let ((key ?a))
156 (while (<= key ?z) 156 (while (<= key ?z)
157 (keymap-set decipher-mode-map (char-to-string key) #'decipher-keypress) 157 (keymap-set decipher-mode-map (char-to-string key) #'decipher-keypress)
158 (cl-incf key))) 158 (incf key)))
159 159
160(defvar-keymap decipher-stats-mode-map 160(defvar-keymap decipher-stats-mode-map
161 :doc "Keymap for Decipher-Stats mode." 161 :doc "Keymap for Decipher-Stats mode."
@@ -170,7 +170,7 @@ the tail of the list."
170 (c ?0)) 170 (c ?0))
171 (while (<= c ?9) 171 (while (<= c ?9)
172 (modify-syntax-entry c "_" table) ;Digits are not part of words 172 (modify-syntax-entry c "_" table) ;Digits are not part of words
173 (cl-incf c)) 173 (incf c))
174 table) 174 table)
175 "Decipher mode syntax table.") 175 "Decipher mode syntax table.")
176 176
@@ -373,7 +373,7 @@ The most useful commands are:
373 (if undo-rec 373 (if undo-rec
374 (progn 374 (progn
375 (push undo-rec decipher-undo-list) 375 (push undo-rec decipher-undo-list)
376 (cl-incf decipher-undo-list-size) 376 (incf decipher-undo-list-size)
377 (if (> decipher-undo-list-size decipher-undo-limit) 377 (if (> decipher-undo-list-size decipher-undo-limit)
378 (let ((new-size (- decipher-undo-limit 100))) 378 (let ((new-size (- decipher-undo-limit 100)))
379 ;; Truncate undo list to NEW-SIZE elements: 379 ;; Truncate undo list to NEW-SIZE elements:
@@ -547,7 +547,7 @@ you have determined the keyword."
547 (progn 547 (progn
548 (while (rassoc cipher-char decipher-alphabet) 548 (while (rassoc cipher-char decipher-alphabet)
549 ;; Find the next unused letter 549 ;; Find the next unused letter
550 (cl-incf cipher-char)) 550 (incf cipher-char))
551 (push (cons ?\s cipher-char) undo-rec) 551 (push (cons ?\s cipher-char) undo-rec)
552 (decipher-set-map cipher-char (car plain-map) t)))) 552 (decipher-set-map cipher-char (car plain-map) t))))
553 (decipher-add-undo undo-rec))) 553 (decipher-add-undo undo-rec)))
@@ -797,17 +797,17 @@ TOTAL is the total number of letters in the ciphertext."
797 ;; A vector of 26 integers, counting the number of occurrences 797 ;; A vector of 26 integers, counting the number of occurrences
798 ;; of the corresponding characters. 798 ;; of the corresponding characters.
799 (setq decipher--digram (format "%c%c" decipher--prev-char decipher-char)) 799 (setq decipher--digram (format "%c%c" decipher--prev-char decipher-char))
800 (cl-incf (cdr (or (assoc decipher--digram decipher--digram-list) 800 (incf (cdr (or (assoc decipher--digram decipher--digram-list)
801 (car (push (cons decipher--digram 0) 801 (car (push (cons decipher--digram 0)
802 decipher--digram-list))))) 802 decipher--digram-list)))))
803 (and (>= decipher--prev-char ?A) 803 (and (>= decipher--prev-char ?A)
804 (cl-incf (aref (aref decipher--before (- decipher--prev-char ?A)) 804 (incf (aref (aref decipher--before (- decipher--prev-char ?A))
805 (if (equal decipher-char ?\s) 805 (if (equal decipher-char ?\s)
806 26 806 26
807 (- decipher-char ?A))))) 807 (- decipher-char ?A)))))
808 (and (>= decipher-char ?A) 808 (and (>= decipher-char ?A)
809 (cl-incf (aref decipher--freqs (- decipher-char ?A))) 809 (incf (aref decipher--freqs (- decipher-char ?A)))
810 (cl-incf (aref (aref decipher--after (- decipher-char ?A)) 810 (incf (aref (aref decipher--after (- decipher-char ?A))
811 (if (equal decipher--prev-char ?\s) 811 (if (equal decipher--prev-char ?\s)
812 26 812 26
813 (- decipher--prev-char ?A))))) 813 (- decipher--prev-char ?A)))))
@@ -818,8 +818,8 @@ TOTAL is the total number of letters in the ciphertext."
818 (let ((total 0)) 818 (let ((total 0))
819 (concat 819 (concat
820 (mapconcat (lambda (x) 820 (mapconcat (lambda (x)
821 (cond ((> x 99) (cl-incf total) "XX") 821 (cond ((> x 99) (incf total) "XX")
822 ((> x 0) (cl-incf total) (format "%2d" x)) 822 ((> x 0) (incf total) (format "%2d" x))
823 (t " "))) 823 (t " ")))
824 counts 824 counts
825 "") 825 "")
@@ -835,7 +835,7 @@ TOTAL is the total number of letters in the ciphertext."
835 (while (>= (decf i) 0) 835 (while (>= (decf i) 0)
836 (if (or (> (aref before-count i) 0) 836 (if (or (> (aref before-count i) 0)
837 (> (aref after-count i) 0)) 837 (> (aref after-count i) 0))
838 (cl-incf total))) 838 (incf total)))
839 total)) 839 total))
840 840
841(defun decipher-analyze-buffer () 841(defun decipher-analyze-buffer ()
diff --git a/lisp/play/hanoi.el b/lisp/play/hanoi.el
index 41e5de7c1f4..2b0a67105ef 100644
--- a/lisp/play/hanoi.el
+++ b/lisp/play/hanoi.el
@@ -337,7 +337,7 @@ BITS must be of length nrings. Start at START-TIME."
337 337
338;; do one pole-to-pole move and update the ring and pole pairs. 338;; do one pole-to-pole move and update the ring and pole pairs.
339(defun hanoi-move-ring (ring from to start-time) 339(defun hanoi-move-ring (ring from to start-time)
340 (cl-incf (car from) baseward-step) 340 (incf (car from) baseward-step)
341 (decf (car to) baseward-step) 341 (decf (car to) baseward-step)
342 (let* ;; We move flywards-steps steps up the pole to the fly row, 342 (let* ;; We move flywards-steps steps up the pole to the fly row,
343 ;; then fly fly-steps steps across the fly row, then go 343 ;; then fly fly-steps steps across the fly row, then go
diff --git a/lisp/play/snake.el b/lisp/play/snake.el
index c06e53047af..3a446db439c 100644
--- a/lisp/play/snake.el
+++ b/lisp/play/snake.el
@@ -269,8 +269,8 @@ and then start moving it leftwards.")
269 (dotimes (_ snake-length) 269 (dotimes (_ snake-length)
270 (gamegrid-set-cell x y snake-snake) 270 (gamegrid-set-cell x y snake-snake)
271 (setq snake-positions (cons (vector x y) snake-positions)) 271 (setq snake-positions (cons (vector x y) snake-positions))
272 (cl-incf x snake-velocity-x) 272 (incf x snake-velocity-x)
273 (cl-incf y snake-velocity-y))) 273 (incf y snake-velocity-y)))
274 (snake-update-score)) 274 (snake-update-score))
275 275
276(defun snake-set-dot () 276(defun snake-set-dot ()
@@ -296,8 +296,8 @@ Argument SNAKE-BUFFER is the name of the buffer."
296 (= c snake-snake)) 296 (= c snake-snake))
297 (snake-end-game) 297 (snake-end-game)
298 (cond ((= c snake-dot) 298 (cond ((= c snake-dot)
299 (cl-incf snake-length) 299 (incf snake-length)
300 (cl-incf snake-score) 300 (incf snake-score)
301 (snake-update-score) 301 (snake-update-score)
302 (snake-set-dot)) 302 (snake-set-dot))
303 (t 303 (t
diff --git a/lisp/profiler.el b/lisp/profiler.el
index 57bd56af593..291bcb4a6b1 100644
--- a/lisp/profiler.el
+++ b/lisp/profiler.el
@@ -240,7 +240,7 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
240(defun profiler-calltree-depth (tree) 240(defun profiler-calltree-depth (tree)
241 (let ((d 0)) 241 (let ((d 0))
242 (while (setq tree (profiler-calltree-parent tree)) 242 (while (setq tree (profiler-calltree-parent tree))
243 (cl-incf d)) 243 (incf d))
244 d)) 244 d))
245 245
246(defun profiler-calltree-find (tree entry) 246(defun profiler-calltree-find (tree entry)
@@ -274,7 +274,7 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
274 (setq child (profiler-make-calltree 274 (setq child (profiler-make-calltree
275 :entry entry :parent node)) 275 :entry entry :parent node))
276 (push child (profiler-calltree-children node))) 276 (push child (profiler-calltree-children node)))
277 (cl-incf (profiler-calltree-count child) count) 277 (incf (profiler-calltree-count child) count)
278 (setq node child))))))) 278 (setq node child)))))))
279 log)) 279 log))
280 280
@@ -367,7 +367,7 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
367 (push tmp parents) 367 (push tmp parents)
368 (setq tmp (cdr tmp))) 368 (setq tmp (cdr tmp)))
369 (when (aref (cdar parents) (1- max)) 369 (when (aref (cdar parents) (1- max))
370 (cl-incf (profiler-calltree-count leftover-tree) count) 370 (incf (profiler-calltree-count leftover-tree) count)
371 (setq node leftover-tree)) 371 (setq node leftover-tree))
372 (pcase-dolist (`(,i . ,parent) parents) 372 (pcase-dolist (`(,i . ,parent) parents)
373 (let ((j (1- max))) 373 (let ((j (1- max)))
@@ -380,7 +380,7 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
380 (setq child (profiler-make-calltree 380 (setq child (profiler-make-calltree
381 :entry f :parent node)) 381 :entry f :parent node))
382 (push child (profiler-calltree-children node))) 382 (push child (profiler-calltree-children node)))
383 (cl-incf (profiler-calltree-count child) count) 383 (incf (profiler-calltree-count child) count)
384 (setq node child))))))))) 384 (setq node child)))))))))
385 log))) 385 log)))
386 386
@@ -388,7 +388,7 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
388 (let ((total-count 0)) 388 (let ((total-count 0))
389 ;; FIXME: the memory profiler's total wraps around all too easily! 389 ;; FIXME: the memory profiler's total wraps around all too easily!
390 (dolist (child (profiler-calltree-children tree)) 390 (dolist (child (profiler-calltree-children tree))
391 (cl-incf total-count (profiler-calltree-count child))) 391 (incf total-count (profiler-calltree-count child)))
392 (unless (zerop total-count) 392 (unless (zerop total-count)
393 (profiler-calltree-walk 393 (profiler-calltree-walk
394 tree (lambda (node) 394 tree (lambda (node)
diff --git a/lisp/registry.el b/lisp/registry.el
index 520b8c1267e..3b489ea88b7 100644
--- a/lisp/registry.el
+++ b/lisp/registry.el
@@ -310,7 +310,7 @@ Errors out if the key exists already."
310 (dolist (tr (oref db tracked)) 310 (dolist (tr (oref db tracked))
311 (maphash 311 (maphash
312 (lambda (key v) 312 (lambda (key v)
313 (cl-incf count) 313 (incf count)
314 (when (and (< 0 expected) 314 (when (and (< 0 expected)
315 (= 0 (mod count 1000))) 315 (= 0 (mod count 1000)))
316 (message "reindexing: %d of %d (%.2f%%)" 316 (message "reindexing: %d of %d (%.2f%%)"
diff --git a/lisp/simple.el b/lisp/simple.el
index c46b094f5a3..25c4bd36123 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -10256,7 +10256,7 @@ The optional argument PT defaults to (point)."
10256 (when (cond 10256 (when (cond
10257 ((and (/= pt (point-max)) 10257 ((and (/= pt (point-max))
10258 (get-text-property pt 'completion--string)) 10258 (get-text-property pt 'completion--string))
10259 (cl-incf pt)) 10259 (incf pt))
10260 ((and (/= pt (point-min)) 10260 ((and (/= pt (point-min))
10261 (get-text-property (1- pt) 'completion--string)))) 10261 (get-text-property (1- pt) 'completion--string))))
10262 (setq pt (or (previous-single-property-change pt 'completion--string) pt)) 10262 (setq pt (or (previous-single-property-change pt 'completion--string) pt))
diff --git a/lisp/strokes.el b/lisp/strokes.el
index 4020538c942..10c88845fed 100644
--- a/lisp/strokes.el
+++ b/lisp/strokes.el
@@ -1561,7 +1561,7 @@ XPM-BUFFER defaults to \" *strokes-xpm*\"."
1561 ;; yet another of the same bit-type, so we continue 1561 ;; yet another of the same bit-type, so we continue
1562 ;; counting... 1562 ;; counting...
1563 (progn 1563 (progn
1564 (cl-incf count) 1564 (incf count)
1565 (forward-char 1)) 1565 (forward-char 1))
1566 ;; otherwise, it's the opposite bit-type, so we do a 1566 ;; otherwise, it's the opposite bit-type, so we do a
1567 ;; write and then restart count ### NOTE (for myself 1567 ;; write and then restart count ### NOTE (for myself
diff --git a/lisp/term.el b/lisp/term.el
index a0ab2fc14e5..3f6b5c8f123 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -3110,7 +3110,7 @@ See `term-prompt-regexp'."
3110 (eq (char-charset (aref decoded-substring 3110 (eq (char-charset (aref decoded-substring
3111 (- count 1 partial))) 3111 (- count 1 partial)))
3112 'eight-bit)) 3112 'eight-bit))
3113 (cl-incf partial)) 3113 (incf partial))
3114 (when (> count partial 0) 3114 (when (> count partial 0)
3115 (setq term-terminal-undecoded-bytes 3115 (setq term-terminal-undecoded-bytes
3116 (substring decoded-substring (- partial))) 3116 (substring decoded-substring (- partial)))
@@ -3487,7 +3487,7 @@ color is unset in the terminal state."
3487 (pcase (pop parameters) 3487 (pcase (pop parameters)
3488 ;; 256 color 3488 ;; 256 color
3489 (5 (if (setq term-ansi-current-color (pop parameters)) 3489 (5 (if (setq term-ansi-current-color (pop parameters))
3490 (cl-incf term-ansi-current-color) 3490 (incf term-ansi-current-color)
3491 (term-ansi-reset))) 3491 (term-ansi-reset)))
3492 ;; Full 24-bit color 3492 ;; Full 24-bit color
3493 (2 (cl-loop with color = (1+ 256) ; Base 3493 (2 (cl-loop with color = (1+ 256) ; Base
@@ -3517,7 +3517,7 @@ color is unset in the terminal state."
3517 (pcase (pop parameters) 3517 (pcase (pop parameters)
3518 ;; 256 color 3518 ;; 256 color
3519 (5 (if (setq term-ansi-current-bg-color (pop parameters)) 3519 (5 (if (setq term-ansi-current-bg-color (pop parameters))
3520 (cl-incf term-ansi-current-bg-color) 3520 (incf term-ansi-current-bg-color)
3521 (term-ansi-reset))) 3521 (term-ansi-reset)))
3522 ;; Full 24-bit color 3522 ;; Full 24-bit color
3523 (2 (cl-loop with color = (1+ 256) ; Base 3523 (2 (cl-loop with color = (1+ 256) ; Base
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 6b7f54a04e7..97764e3ef80 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -426,7 +426,7 @@ If NAMED is non-nil, collect named child only."
426If NAMED is non-nil, count named child only." 426If NAMED is non-nil, count named child only."
427 (let ((count 0)) 427 (let ((count 0))
428 (while (setq node (treesit-node-prev-sibling node named)) 428 (while (setq node (treesit-node-prev-sibling node named))
429 (cl-incf count)) 429 (incf count))
430 count)) 430 count))
431 431
432(defun treesit-node-field-name (node) 432(defun treesit-node-field-name (node)
@@ -2367,7 +2367,7 @@ Similar to `treesit-indent', but indent a region instead."
2367 (copy-marker anchor t))) 2367 (copy-marker anchor t)))
2368 ;; SET OFFSET. 2368 ;; SET OFFSET.
2369 (setf (aref meta-vec (+ 1 (* idx meta-len))) offset)))) 2369 (setf (aref meta-vec (+ 1 (* idx meta-len))) offset))))
2370 (cl-incf idx) 2370 (incf idx)
2371 (setq lines-left-to-move (forward-line 1))) 2371 (setq lines-left-to-move (forward-line 1)))
2372 ;; Now IDX = last valid IDX + 1. 2372 ;; Now IDX = last valid IDX + 1.
2373 (goto-char starting-pos) 2373 (goto-char starting-pos)
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el
index c4656c12e2d..c2cbdf131cd 100644
--- a/lisp/url/url-cookie.el
+++ b/lisp/url/url-cookie.el
@@ -112,7 +112,7 @@ i.e. 1970-1-1) are loaded as expiring one year from now instead."
112 s)))) 112 s))))
113 (key (nth 5 fields)) 113 (key (nth 5 fields))
114 (val (nth 6 fields))) 114 (val (nth 6 fields)))
115 (cl-incf n) 115 (incf n)
116 ;;(message "adding <%s>=<%s> exp=<%s> dom=<%s> path=<%s> sec=%S" key val expires dom path secure) 116 ;;(message "adding <%s>=<%s> exp=<%s> dom=<%s> path=<%s> sec=%S" key val expires dom path secure)
117 (url-cookie-store key val expires dom path secure) 117 (url-cookie-store key val expires dom path secure)
118 )) 118 ))
diff --git a/lisp/url/url-dav.el b/lisp/url/url-dav.el
index 21ed8c5ab05..1d617ceb874 100644
--- a/lisp/url/url-dav.el
+++ b/lisp/url/url-dav.el
@@ -865,7 +865,7 @@ Returns nil if URL contains no name starting with FILE."
865 (setq failed t))) 865 (setq failed t)))
866 (if failed 866 (if failed
867 (setq searching nil) 867 (setq searching nil)
868 (cl-incf n))) 868 (incf n)))
869 (substring (car matches) 0 n)))))) 869 (substring (car matches) 0 n))))))
870 870
871(defun url-dav-register-handler (op) 871(defun url-dav-register-handler (op)
diff --git a/lisp/url/url-queue.el b/lisp/url/url-queue.el
index 48d2c7b0733..746648e0aa1 100644
--- a/lisp/url/url-queue.el
+++ b/lisp/url/url-queue.el
@@ -87,7 +87,7 @@ The variable `url-queue-timeout' sets a timeout."
87 (cond 87 (cond
88 ((or (url-queue-start-time entry) 88 ((or (url-queue-start-time entry)
89 (url-queue-pre-triggered entry)) 89 (url-queue-pre-triggered entry))
90 (cl-incf running)) 90 (incf running))
91 ((not waiting) 91 ((not waiting)
92 (setq waiting entry)))) 92 (setq waiting entry))))
93 (when (and waiting 93 (when (and waiting
@@ -108,7 +108,7 @@ The variable `url-queue-timeout' sets a timeout."
108 (dolist (entry url-queue) 108 (dolist (entry url-queue)
109 (cond 109 (cond
110 ((url-queue-start-time entry) 110 ((url-queue-start-time entry)
111 (cl-incf running)) 111 (incf running))
112 ((not waiting) 112 ((not waiting)
113 (setq waiting entry)))) 113 (setq waiting entry))))
114 (when (and waiting 114 (when (and waiting
diff --git a/lisp/wdired.el b/lisp/wdired.el
index c7409446b19..03cbf7131cf 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -527,7 +527,7 @@ non-nil means return old filename."
527 (when files-renamed 527 (when files-renamed
528 (pcase-let ((`(,errs . ,successful-renames) 528 (pcase-let ((`(,errs . ,successful-renames)
529 (wdired-do-renames files-renamed))) 529 (wdired-do-renames files-renamed)))
530 (cl-incf errors errs) 530 (incf errors errs)
531 ;; Some of the renames may fail -- in that case, don't mark an 531 ;; Some of the renames may fail -- in that case, don't mark an
532 ;; already-existing file with the same name as renamed. 532 ;; already-existing file with the same name as renamed.
533 (pcase-dolist (`(,file . _) wdired--old-marks) 533 (pcase-dolist (`(,file . _) wdired--old-marks)
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 38c8d34792a..84e1cec24bc 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -1341,7 +1341,7 @@ nothing is shown in the echo area."
1341 (when new 1341 (when new
1342 (if (eq new old) 1342 (if (eq new old)
1343 (setq pos (point)) 1343 (setq pos (point))
1344 (cl-incf tabable) 1344 (incf tabable)
1345 (setq arg (cond (fwd (1- arg)) 1345 (setq arg (cond (fwd (1- arg))
1346 (bwd (1+ arg)))) 1346 (bwd (1+ arg))))
1347 (setq old new)))))) 1347 (setq old new))))))
diff --git a/lisp/window-tool-bar.el b/lisp/window-tool-bar.el
index 96726960fea..b8f84bd2da7 100644
--- a/lisp/window-tool-bar.el
+++ b/lisp/window-tool-bar.el
@@ -234,10 +234,10 @@ This is for when you want more customizations than the command
234 (propertize " " 'invisible t)))) 234 (propertize " " 'invisible t))))
235 (mem2 (memory-use-counts))) 235 (mem2 (memory-use-counts)))
236 (cl-mapl (lambda (l-init l0 l1) 236 (cl-mapl (lambda (l-init l0 l1)
237 (cl-incf (car l-init) (- (car l1) (car l0)))) 237 (incf (car l-init) (- (car l1) (car l0))))
238 window-tool-bar--memory-use-delta-step1 mem0 mem1) 238 window-tool-bar--memory-use-delta-step1 mem0 mem1)
239 (cl-mapl (lambda (l-init l1 l2) 239 (cl-mapl (lambda (l-init l1 l2)
240 (cl-incf (car l-init) (- (car l2) (car l1)))) 240 (incf (car l-init) (- (car l2) (car l1))))
241 window-tool-bar--memory-use-delta-step2 mem1 mem2) 241 window-tool-bar--memory-use-delta-step2 mem1 mem2)
242 242
243 (setf window-tool-bar-string--cache 243 (setf window-tool-bar-string--cache
@@ -251,8 +251,8 @@ This is for when you want more customizations than the command
251 '(:box (line-width 1))) 251 '(:box (line-width 1)))
252 (propertize " " 'display '(space :width (1)))) 252 (propertize " " 'display '(space :width (1))))
253 result)) 253 result))
254 (cl-incf window-tool-bar--refresh-done-count)) 254 (incf window-tool-bar--refresh-done-count))
255 (cl-incf window-tool-bar--refresh-skipped-count)) 255 (incf window-tool-bar--refresh-skipped-count))
256 256
257 window-tool-bar-string--cache) 257 window-tool-bar-string--cache)
258 258
diff --git a/lisp/winner.el b/lisp/winner.el
index e56ddf92965..a129417b08c 100644
--- a/lisp/winner.el
+++ b/lisp/winner.el
@@ -381,7 +381,7 @@ In other words, \"undo\" changes in window configuration."
381 (setq winner-pending-undo-ring (winner-ring (selected-frame))) 381 (setq winner-pending-undo-ring (winner-ring (selected-frame)))
382 (setq winner-undo-counter 0) 382 (setq winner-undo-counter 0)
383 (setq winner-undone-data (list (winner-win-data)))) 383 (setq winner-undone-data (list (winner-win-data))))
384 (cl-incf winner-undo-counter) ; starting at 1 384 (incf winner-undo-counter) ; starting at 1
385 (when (and (winner-undo-this) 385 (when (and (winner-undo-this)
386 (not (window-minibuffer-p))) 386 (not (window-minibuffer-p)))
387 (message "Winner undo (%d / %d)" 387 (message "Winner undo (%d / %d)"
diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index a209e288f10..01f287c08ee 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -1090,7 +1090,7 @@ With argument, add COUNT copies of CHAR."
1090 (let ((i 0)) 1090 (let ((i 0))
1091 (while (< i count) 1091 (while (< i count)
1092 (xwidget-webkit-next-result (xwidget-webkit-current-session)) 1092 (xwidget-webkit-next-result (xwidget-webkit-current-session))
1093 (cl-incf i))) 1093 (incf i)))
1094 (xwidget-webkit-isearch--update t)) 1094 (xwidget-webkit-isearch--update t))
1095 1095
1096(defun xwidget-webkit-isearch-backward (count) 1096(defun xwidget-webkit-isearch-backward (count)
@@ -1104,7 +1104,7 @@ With argument, add COUNT copies of CHAR."
1104 (let ((i 0)) 1104 (let ((i 0))
1105 (while (< i count) 1105 (while (< i count)
1106 (xwidget-webkit-previous-result (xwidget-webkit-current-session)) 1106 (xwidget-webkit-previous-result (xwidget-webkit-current-session))
1107 (cl-incf i))) 1107 (incf i)))
1108 (xwidget-webkit-isearch--update t)) 1108 (xwidget-webkit-isearch--update t))
1109 1109
1110(defun xwidget-webkit-isearch-exit () 1110(defun xwidget-webkit-isearch-exit ()