~ndegruchy

Florida

https://degruchy.org/

Nathan is a technologist and Open Source enthusiast living and working in Florida. Often, he can be found playing board games with his family, video games by himself or breaking technological things in order to fix them "better".

Recent activity

Re: Error when timer finishes: Error running timer ‘tmr--complete’: (invalid-function (sound tmr-sound-file)) 9 months ago

From Nathan R. DeGruchy to ~protesilaos/tmr

Ah, needs to be inline.

From 4f52f8ad9cdf1ff9165b0f193d124d890937396e Mon Sep 17 00:00:00 2001
From: Nathan DeGruchy <nathan@degruchy.org>
Date: Wed, 8 Jun 2022 17:17:40 -0400
Subject: [PATCH] 'Fixes' sound playback for the timer. Dunno if this breaks
 anything.

---
 tmr-sound.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tmr-sound.el b/tmr-sound.el
index 540b833..6b60c3c 100644
[message trimmed]

Re: Error when timer finishes: Error running timer ‘tmr--complete’: (invalid-function (sound tmr-sound-file)) 9 months ago

From Nathan R. DeGruchy to ~protesilaos/tmr

Good morning!

I believe I can format a patch. I cloned your repo to make changes on my end.

Try this.

From: Protesilaos Stavrou <info@protesilaos.com>
Sent: Wednesday, June 8, 2022 23:48
To: Nathan R. DeGruchy <nathan@degruchy.org>; ~protesilaos/tmr@lists.sr.ht <~protesilaos/tmr@lists.sr.ht>
Subject: Re: Error when timer finishes: Error running timer ‘tmr--complete’: (invalid-function (sound tmr-sound-file)) 
 
> From: "Nathan R. DeGruchy" <nathan@degruchy.org>
> Date: Wed, 08 Jun 2022 21:14:22 +0000
>

Re: Error when timer finishes: Error running timer ‘tmr--complete’: (invalid-function (sound tmr-sound-file)) 9 months ago

From Nathan R. DeGruchy to ~protesilaos/tmr

So, I managed to mangle the function for playing sounds:

---

;; NOTE 2022-04-21: Emacs has a `play-sound' function but it only
;; supports .wav and .au formats.  Also, it does not work on all
;; platforms and Emacs needs to be compiled --with-sound capabilities.
;;;###autoload
(defun tmr-sound-play (&optional _timer)
  "Play `tmr-sound-file' using the 'ffplay' executable (ffmpeg).
TIMER is unused."
  (when-let* ((tmr-sound-file))
    (when (file-exists-p tmr-sound-file)
      (unless (executable-find "ffplay")

Error when timer finishes: Error running timer ‘tmr--complete’: (invalid-function (sound tmr-sound-file)) 9 months ago

From Nathan R. DeGruchy to ~protesilaos/tmr

Hello!

I'm using Emacs 27.1 on Debian Stable, using tmr 0.3.0 from GNU Elpa. When I set a timer with a sound file defined, I get this error when the timer ends:

TMR Time is up!
Started 15:58:43
Ended 15:59:43
Error running timer ‘tmr--complete’: (invalid-function (sound tmr-sound-file))

I'm still learning ELisp and I'm not able to do much in the way of useful debugging. I did note that I do have ffmpeg installed (ffplay exists and is available in $PATH).

Any ideas?

Nathan DeGruchy

[PATCH v2] [PATCH v2] Demonstrate that I can use git send-email 2 years ago

From Nathan DeGruchy to ~sircmpwn/email-test-drive

---
 nathan-degruchy | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 nathan-degruchy

diff --git a/nathan-degruchy b/nathan-degruchy
new file mode 100644
index 0000000..7fbef93
--- /dev/null
+++ b/nathan-degruchy
@@ -0,0 +1 @@
I have successfully used git send-email!
\ No newline at end of file
--
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 2 years ago

From Nathan DeGruchy to ~sircmpwn/email-test-drive

---
 nathan-degruchy | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 nathan-degruchy

diff --git a/nathan-degruchy b/nathan-degruchy
new file mode 100644
index 0000000..b4380e4
--- /dev/null
+++ b/nathan-degruchy
@@ -0,0 +1 @@
I'm about to try git send-email!
-- 
2.20.1
[message trimmed]

[PATCH] The Importance of Being Earnest 2 years ago

From Nathan DeGruchy to ~mieum/booksin.space

Hello!

No repository to actually *patch*, but here is a public domain book!

It's the classic: _The Importance of Being Earnest_.

I saved the plain text file from Project Gutenberg with a .gmi
extension.

Enjoy!