diff options
| author | Stefan Kangas | 2025-02-23 02:55:14 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2025-02-26 02:57:03 +0100 |
| commit | fa0131723c3d59240c3bf9b6cd6c0d8abc4ef63f (patch) | |
| tree | e7282c29d826a0e94a149d5c517c86e8ef8021b1 /lisp/mh-e | |
| parent | e60103f130916a4632a108352360cb620c02e9f0 (diff) | |
| download | emacs-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.
Diffstat (limited to 'lisp/mh-e')
| -rw-r--r-- | lisp/mh-e/mh-e.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-folder.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-search.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-thread.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-utils.el | 4 |
6 files changed, 7 insertions, 7 deletions
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 | |||
| 750 | nested messages are opened)." | 750 | nested 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))) |