mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-19 02:10:10 +00:00
Prefer incf to cl-incf in emacs-lisp/*.el
* lisp/emacs-lisp/backtrace.el (backtrace--print-func-and-args): * lisp/emacs-lisp/bindat.el (bindat--type): * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): * lisp/emacs-lisp/chart.el (chart-file-count): * lisp/emacs-lisp/cl-extra.el (cl-parse-integer, cl--print-table): * lisp/emacs-lisp/cl-generic.el (cl--defmethod-doc-pos): * lisp/emacs-lisp/cl-indent.el (common-lisp-loop-part-indentation) (common-lisp-indent-function-1, lisp-indent-defmethod): * lisp/emacs-lisp/cl-lib.el (cl--set-substring): * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause): * lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): * lisp/emacs-lisp/cl-print.el (cl-print--cons-tail) (cl-print--vector-contents, cl-print--struct-contents) (cl-print--string-props): * lisp/emacs-lisp/cl-seq.el (cl-substitute): * lisp/emacs-lisp/comp-cstr.el (comp--range-union) (comp--range-intersection): * lisp/emacs-lisp/comp.el (comp-vec-append, comp--gen-counter) (comp--op-case, comp--limplify-lap-inst, comp--limplify-block) (comp--limplify-function, comp--maybe-add-vmvar, comp--fwprop*): * lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): * lisp/emacs-lisp/eldoc.el (eldoc--invoke-strategy): * lisp/emacs-lisp/elp.el (elp--make-wrapper): * lisp/emacs-lisp/ert-x.el (ert-kill-all-test-buffers): * lisp/emacs-lisp/ert.el (ert--stats-set-test-and-result) (ert-write-junit-test-summary-report): * lisp/emacs-lisp/memory-report.el (memory-report--symbol-plist) (memory-report--object-size-1): * lisp/emacs-lisp/oclosure.el (oclosure--index-table) (oclosure--define-functions): * lisp/emacs-lisp/package.el (package-menu--perform-transaction): * lisp/emacs-lisp/smie.el (smie-set-prec2tab, smie-prec2->grammar) (smie-config--guess, smie-config--guess-1): * lisp/emacs-lisp/syntax.el (syntax-propertize-rules) (syntax-ppss--update-stats): * lisp/emacs-lisp/track-changes.el (track-changes--after): Prefer incf to cl-incf.
This commit is contained in:
parent
042dc5929b
commit
ae37a1cc3d
25 changed files with 97 additions and 97 deletions
|
@ -176,7 +176,7 @@
|
|||
;; don't hide real conflicts.
|
||||
(puthash key (gethash key override) table)
|
||||
(display-warning 'smie (format "Conflict: %s %s/%s %s" x old val y))
|
||||
(cl-incf smie-warning-count))
|
||||
(incf smie-warning-count))
|
||||
(puthash key val table))))
|
||||
|
||||
(defun smie-precs->prec2 (precs)
|
||||
|
@ -585,13 +585,13 @@ PREC2 is a table as returned by `smie-precs->prec2' or
|
|||
(unless (caar cst)
|
||||
(setcar (car cst) i)
|
||||
;; (smie-check-grammar table prec2 'step1)
|
||||
(cl-incf i))
|
||||
(incf i))
|
||||
(setq csts (delq cst csts))))
|
||||
(unless progress
|
||||
(error "Can't resolve the precedence cycle: %s"
|
||||
(smie-debug--describe-cycle
|
||||
table (smie-debug--prec2-cycle csts)))))
|
||||
(cl-incf i 10))
|
||||
(incf i 10))
|
||||
;; Propagate equality constraints back to their sources.
|
||||
(dolist (eq (nreverse eqs))
|
||||
(when (null (cadr eq))
|
||||
|
@ -602,7 +602,7 @@ PREC2 is a table as returned by `smie-precs->prec2' or
|
|||
;; So set it here rather than below since doing it below
|
||||
;; makes it more difficult to obey the equality constraints.
|
||||
(setcar (cdr eq) i)
|
||||
(cl-incf i))
|
||||
(incf i))
|
||||
(cl-assert (or (null (caar eq)) (eq (caar eq) (cadr eq))))
|
||||
(setcar (car eq) (cadr eq))
|
||||
;; (smie-check-grammar table prec2 'step2)
|
||||
|
@ -612,10 +612,10 @@ PREC2 is a table as returned by `smie-precs->prec2' or
|
|||
(dolist (x table)
|
||||
(unless (nth 1 x)
|
||||
(setf (nth 1 x) i)
|
||||
(cl-incf i)) ;See other (cl-incf i) above.
|
||||
(incf i)) ;See other (incf i) above.
|
||||
(unless (nth 2 x)
|
||||
(setf (nth 2 x) i)
|
||||
(cl-incf i)))) ;See other (cl-incf i) above.
|
||||
(incf i)))) ;See other (incf i) above.
|
||||
;; Mark closers and openers.
|
||||
(dolist (x (gethash :smie-open/close-alist prec2))
|
||||
(let* ((token (car x))
|
||||
|
@ -2157,7 +2157,7 @@ position corresponding to each rule."
|
|||
(trace (mapcar #'cdr (cdr itrace)))
|
||||
(cur (current-indentation)))
|
||||
(when (numberp nindent) ;Skip `noindent' and friends.
|
||||
(cl-incf (gethash (cons (- cur nindent) trace) otraces 0)))))
|
||||
(incf (gethash (cons (- cur nindent) trace) otraces 0)))))
|
||||
(forward-line 1)))
|
||||
(progress-reporter-done pr)
|
||||
|
||||
|
@ -2193,14 +2193,14 @@ position corresponding to each rule."
|
|||
(let ((data (list 0 nil nil)))
|
||||
(puthash sig data sigs)
|
||||
data))))
|
||||
(cl-incf (nth 0 sig-data) count)
|
||||
(incf (nth 0 sig-data) count)
|
||||
(push (cons count otrace) (nth 2 sig-data))
|
||||
(let ((sig-off-data
|
||||
(or (assq offset (nth 1 sig-data))
|
||||
(let ((off-data (cons offset 0)))
|
||||
(push off-data (nth 1 sig-data))
|
||||
off-data))))
|
||||
(cl-incf (cdr sig-off-data) count))))))))
|
||||
(incf (cdr sig-off-data) count))))))))
|
||||
otraces)
|
||||
|
||||
;; Finally, guess the indentation rules.
|
||||
|
@ -2241,7 +2241,7 @@ position corresponding to each rule."
|
|||
off-data))))
|
||||
(cl-assert (>= (cdr ooff-data) count))
|
||||
(decf (cdr ooff-data) count)
|
||||
(cl-incf (cdr noff-data) count))))))))))
|
||||
(incf (cdr noff-data) count))))))))))
|
||||
rules))
|
||||
|
||||
(defun smie-config-guess ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue