summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/memory-report.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2025-02-23 00:13:21 +0100
committerStefan Kangas <stefankangas@gmail.com>2025-02-23 00:38:22 +0100
commitae37a1cc3d93d3703b43c5ab2d10f1f3e146cf90 (patch)
treef280aa2032905a04eb2a4d813f0fdfc3ef435702 /lisp/emacs-lisp/memory-report.el
parent042dc5929b706b5fbc0ea8ada6014661d44a1b53 (diff)
downloademacs-ae37a1cc3d93d3703b43c5ab2d10f1f3e146cf90.tar.gz
emacs-ae37a1cc3d93d3703b43c5ab2d10f1f3e146cf90.tar.bz2
emacs-ae37a1cc3d93d3703b43c5ab2d10f1f3e146cf90.zip
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.
Diffstat (limited to 'lisp/emacs-lisp/memory-report.el')
-rw-r--r--lisp/emacs-lisp/memory-report.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/memory-report.el b/lisp/emacs-lisp/memory-report.el
index 5b9a590c7de..8ca7c0e5f0a 100644
--- a/lisp/emacs-lisp/memory-report.el
+++ b/lisp/emacs-lisp/memory-report.el
@@ -168,7 +168,7 @@ by counted more than once."
(total 0))
(mapatoms
(lambda (symbol)
- (cl-incf total (memory-report--object-size
+ (incf total (memory-report--object-size
counted (symbol-plist symbol))))
obarray)
(list
@@ -217,16 +217,16 @@ by counted more than once."
(let ((total 0)
(size (memory-report--size 'cons)))
(while value
- (cl-incf total size)
+ (incf total size)
(setf (gethash value counted) t)
(when (car value)
- (cl-incf total (memory-report--object-size counted (car value))))
+ (incf total (memory-report--object-size counted (car value))))
(let ((next (cdr value)))
(setq value (when next
(if (consp next)
(unless (gethash next counted)
(cdr value))
- (cl-incf total (memory-report--object-size
+ (incf total (memory-report--object-size
counted next))
nil)))))
total))
@@ -235,7 +235,7 @@ by counted more than once."
(let ((total (+ (memory-report--size 'vector)
(* (memory-report--size 'object) (length value)))))
(cl-loop for elem across value
- do (cl-incf total (memory-report--object-size counted elem)))
+ do (incf total (memory-report--object-size counted elem)))
total))
(cl-defmethod memory-report--object-size-1 (counted (value hash-table))
@@ -243,8 +243,8 @@ by counted more than once."
(* (memory-report--size 'object) (hash-table-size value)))))
(maphash
(lambda (key elem)
- (cl-incf total (memory-report--object-size counted key))
- (cl-incf total (memory-report--object-size counted elem)))
+ (incf total (memory-report--object-size counted key))
+ (incf total (memory-report--object-size counted elem)))
value)
total))