From f363f019a0959e75e169287bda9d074d60b95eb1 Mon Sep 17 00:00:00 2001 From: Nathaniel Flores Date: Sun, 5 Jun 2022 16:43:40 -0600 Subject: [PATCH 1/2] Add in cl-lib dependency (fix #40) This patch fixes the error where (void-variable memavailable) appears while running in the minibuffer; the error occurs because cl-lib is needed to use cl-destructuring bind. --- symon.el | 1 + 1 file changed, 1 insertion(+) diff --git a/symon.el b/symon.el index ec5f98a..d9e6c11 100644 --- a/symon.el +++ b/symon.el @@ -44,6 +44,7 @@ (require 'battery) (require 'ring) +(require 'cl-lib) (defconst symon-version "1.2.0") From 10f75258099862b147c79f226685b22fae6e7b85 Mon Sep 17 00:00:00 2001 From: Nathaniel Flores Date: Sun, 5 Jun 2022 17:23:18 -0600 Subject: [PATCH 2/2] Slow down default refresh rate (fix #42) Sets the second argument of run-with-idle-timer to the correct user-specified value. --- symon.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symon.el b/symon.el index d9e6c11..c27553c 100644 --- a/symon.el +++ b/symon.el @@ -690,7 +690,7 @@ while(1) \ symon--total-page-num (length symon-monitors) symon--timer-objects (list (run-with-timer 0 symon-refresh-rate 'symon--redisplay) - (run-with-idle-timer symon-delay t 'symon-display))) + (run-with-idle-timer symon-delay symon-refresh-rate 'symon-display))) (add-hook 'pre-command-hook 'symon--display-end) (add-hook 'kill-emacs-hook 'symon--cleanup)))