[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gcmh f3389e9 26/32: Always use `setf' in place of `setq
From: |
Andrea Corallo |
Subject: |
[elpa] externals/gcmh f3389e9 26/32: Always use `setf' in place of `setq' |
Date: |
Mon, 16 Nov 2020 17:32:07 -0500 (EST) |
branch: externals/gcmh
commit f3389e935d15e5d44e7e7d24c6e89666f03aa356
Author: Andrea Corallo <andrea.corallo@arm.com>
Commit: Andrea Corallo <andrea.corallo@arm.com>
Always use `setf' in place of `setq'
---
gcmh.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gcmh.el b/gcmh.el
index 6c32281..99227b5 100644
--- a/gcmh.el
+++ b/gcmh.el
@@ -78,7 +78,7 @@ time the last non idle garbage collection time."
(defun gcmh-set-high-threshold ()
"Set the high GC threshold.
This is to be used with the `pre-command-hook'."
- (setq gc-cons-threshold gcmh-high-cons-threshold))
+ (setf gc-cons-threshold gcmh-high-cons-threshold))
(defvar gcmh-last-gc-time 0.1
"How long it took to perform the last garbage collection.")
@@ -101,11 +101,11 @@ Cancel the previous one if present."
(message "Garbage collecting...")
(condition-case-unless-debug e
(message "Garbage collecting...done (%.3fs)"
- (setq gcmh-last-gc-time (gcmh-time (garbage-collect))))
+ (setf gcmh-last-gc-time (gcmh-time (garbage-collect))))
(error (message "Garbage collecting...failed")
(signal (car e) (cdr e)))))
- (setq gcmh-last-gc-time (gcmh-time (garbage-collect))))
- (setq gc-cons-threshold gcmh-low-cons-threshold))
+ (setf gcmh-last-gc-time (gcmh-time (garbage-collect))))
+ (setf gc-cons-threshold gcmh-low-cons-threshold))
;;;###autoload
(define-minor-mode gcmh-mode
@@ -122,7 +122,7 @@ Cancel the previous one if present."
;; Release severe GC strategy before the user restart to working
(add-hook 'pre-command-hook #'gcmh-set-high-threshold)
(add-hook 'post-command-hook #'gcmh-register-idle-timer))
- (setq gc-cons-threshold gcmh-low-cons-threshold
+ (setf gc-cons-threshold gcmh-low-cons-threshold
gcmh-idle-timer nil)
(remove-hook 'pre-command-hook #'gcmh-set-high-threshold)
(remove-hook 'post-command-hook #'gcmh-register-idle-timer)))
- [elpa] externals/gcmh 5bf0ed3 16/32: Prevent duplicate idle timers being created, (continued)
- [elpa] externals/gcmh 5bf0ed3 16/32: Prevent duplicate idle timers being created, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh a7f8cc2 17/32: Correct minor typos, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 91cd1f7 07/32: autoload minor mode, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh e7af13d 11/32: better readme layout, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh c96bd70 12/32: update readme, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 5664cb3 14/32: Add garbage collection start message, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 75de01e 04/32: add missing requires, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh c1bc27a 06/32: Add readme, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 65787bc 08/32: typo fix, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh f542908 19/32: Merge branch 'feature/prevent-duplicate-timers' into 'master', Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh f3389e9 26/32: Always use `setf' in place of `setq',
Andrea Corallo <=
- [elpa] externals/gcmh 345121d 29/32: Readme update, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 81844fa 09/32: update readme, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh dd69c84 10/32: add warning into readme, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 537d050 18/32: Further minor typo, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 8867533 20/32: Improve messaging, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh f449abb 27/32: No reason anymore to use `run-with-idle-timer' so use `run-with-timer', Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 8bf0666 30/32: Rename `gcmh-register-idle-timer' into `gcmh-register-idle-gc', Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 12fd03c 24/32: Set the new timer for running once and on post-command-hook, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 72683e1 13/32: Update conventions, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh b1bde50 22/32: Update copyright + email, Andrea Corallo, 2020/11/16