aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorStefan Kangas2025-02-23 02:55:14 +0100
committerStefan Kangas2025-02-26 02:57:03 +0100
commitfa0131723c3d59240c3bf9b6cd6c0d8abc4ef63f (patch)
treee7282c29d826a0e94a149d5c517c86e8ef8021b1 /lisp/eshell
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.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-cmd.el2
-rw-r--r--lisp/eshell/esh-io.el12
2 files changed, 7 insertions, 7 deletions
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