mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
e60103f130
commit
fa0131723c
59 changed files with 169 additions and 169 deletions
20
lisp/mpc.el
20
lisp/mpc.el
|
|
@ -634,7 +634,7 @@ The songs are returned as alists."
|
|||
(i 0))
|
||||
(mapcar (lambda (s)
|
||||
(prog1 (cons (cons 'Pos (number-to-string i)) s)
|
||||
(cl-incf i)))
|
||||
(incf i)))
|
||||
l)))
|
||||
((eq tag 'Search)
|
||||
(mpc-proc-buf-to-alists
|
||||
|
|
@ -870,7 +870,7 @@ If PLAYLIST is t or nil or missing, use the main playlist."
|
|||
(if (< song-pos dest-pos)
|
||||
;; This move has shifted dest-pos by 1.
|
||||
(decf dest-pos))
|
||||
(cl-incf i)))
|
||||
(incf i)))
|
||||
;; Sort them from last to first, so the renumbering
|
||||
;; caused by the earlier deletions affect
|
||||
;; later ones a bit less.
|
||||
|
|
@ -1420,12 +1420,12 @@ string POST."
|
|||
(while (and (zerop (forward-line 1))
|
||||
(get-char-property (point) 'mpc-select))
|
||||
(setq end (1+ (point)))
|
||||
(cl-incf after))
|
||||
(incf after))
|
||||
(goto-char mid)
|
||||
(while (and (zerop (forward-line -1))
|
||||
(get-char-property (point) 'mpc-select))
|
||||
(setq start (point))
|
||||
(cl-incf before))
|
||||
(incf before))
|
||||
(if (and (= after 0) (= before 0))
|
||||
;; Shortening an already minimum-size region: do nothing.
|
||||
nil
|
||||
|
|
@ -1449,13 +1449,13 @@ string POST."
|
|||
(start (line-beginning-position)))
|
||||
(while (and (zerop (forward-line 1))
|
||||
(not (get-char-property (point) 'mpc-select)))
|
||||
(cl-incf count))
|
||||
(incf count))
|
||||
(unless (get-char-property (point) 'mpc-select)
|
||||
(setq count nil))
|
||||
(goto-char start)
|
||||
(while (and (zerop (forward-line -1))
|
||||
(not (get-char-property (point) 'mpc-select)))
|
||||
(cl-incf before))
|
||||
(incf before))
|
||||
(unless (get-char-property (point) 'mpc-select)
|
||||
(setq before nil))
|
||||
(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
|
|||
(cdr (assq 'file song1))
|
||||
(cdr (assq 'file song2)))))
|
||||
(and (integerp cmp) (< cmp 0)))))))
|
||||
(cl-incf totaltime (string-to-number (or (cdr (assq 'Time song)) "0")))
|
||||
(incf totaltime (string-to-number (or (cdr (assq 'Time song)) "0")))
|
||||
(mpc-format mpc-songs-format song)
|
||||
(delete-char (- (skip-chars-backward " "))) ;Remove trailing space.
|
||||
(insert "\n")
|
||||
|
|
@ -2305,12 +2305,12 @@ This is used so that they can be compared with `eq', which is needed for
|
|||
(dolist (song (car context))
|
||||
(and (zerop (forward-line -1))
|
||||
(eq (get-text-property (point) 'mpc-file) song)
|
||||
(cl-incf count)))
|
||||
(incf count)))
|
||||
(goto-char pos)
|
||||
(dolist (song (cdr context))
|
||||
(and (zerop (forward-line 1))
|
||||
(eq (get-text-property (point) 'mpc-file) song)
|
||||
(cl-incf count)))
|
||||
(incf count)))
|
||||
count))
|
||||
|
||||
(defun mpc-songpointer-refresh-hairy ()
|
||||
|
|
@ -2351,7 +2351,7 @@ This is used so that they can be compared with `eq', which is needed for
|
|||
((< score context-size) nil)
|
||||
(t
|
||||
;; Score is equal and increasing context might help: try it.
|
||||
(cl-incf context-size)
|
||||
(incf context-size)
|
||||
(let ((new-context
|
||||
(mpc-songpointer-context context-size plbuf)))
|
||||
(if (null new-context)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue