[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gcmh 8867533 20/32: Improve messaging
From: |
Andrea Corallo |
Subject: |
[elpa] externals/gcmh 8867533 20/32: Improve messaging |
Date: |
Mon, 16 Nov 2020 17:32:06 -0500 (EST) |
branch: externals/gcmh
commit 8867533a736f2098917904c26fd833feca2310a5
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
Improve messaging
---
gcmh.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/gcmh.el b/gcmh.el
index bbccbc9..d78b505 100644
--- a/gcmh.el
+++ b/gcmh.el
@@ -75,11 +75,14 @@ This is to be used with the `pre-command-hook'."
(defun gcmh-idle-garbage-collect ()
"Run garbage collection after `gcmh-idle-delay'."
(if gcmh-verbose
- (progn (message "Garbage collecting...")
- (message "Garbage Collector ran for %.06f sec"
- (gcmh-time (garbage-collect))))
- (garbage-collect))
- (setq gc-cons-threshold gcmh-low-cons-threshold))
+ (progn
+ (message "Garbage collecting...")
+ (condition-case-unless-debug e
+ (message "Garbage collecting...done (%.3fs)"
+ (gcmh-time (garbage-collect)))
+ (error (message "Garbage collecting...failed")
+ (signal (car e) (cdr e)))))
+ (garbage-collect)))
;;;###autoload
(define-minor-mode gcmh-mode
- [elpa] externals/gcmh 5664cb3 14/32: Add garbage collection start message, (continued)
- [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, 2020/11/16
- [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 <=
- [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
- [elpa] externals/gcmh 9e241e0 21/32: Fix missing `gcmh-low-cons-threshold' set introduced by 8867533, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 84c43a4 23/32: Remove unnecessary require in README, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 855f03e 25/32: Implement auto idle delay mode, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 04e3c0c 28/32: Set `gcmh-auto-idle-delay-factor' to 20, Andrea Corallo, 2020/11/16
- [elpa] externals/gcmh 2827dff 31/32: Clean-up unnecessary logic, Andrea Corallo, 2020/11/16