From 3cf9a8213ff78b9226dba0ad0c045c7de41f3c96 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 23 May 2021 17:46:23 -0400 Subject: piem-gunzip-buffer: Don't assume t.mbox.gz is being decompressed If the gunzip call fails, piem-gunzip-buffer says "Decompressing t.mbox.gz failed". All the piem-gunzip-buffer callers at the moment do use to decompress t.mbox.gz downloads, but that's of course not something this function should assume or know about. Message-Id: <20210523214623.31331-6-kyle@kyleam.com> --- piem.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piem.el b/piem.el index b4304d1..0b3d744 100644 --- a/piem.el +++ b/piem.el @@ -536,7 +536,7 @@ is used as the value of `browse-url-browser-function'." (user-error "gunzip executable not found")) (goto-char (point-min)) (unless (= 0 (call-process-region nil nil "gunzip" nil t)) - (error "Decompressing t.mbox.gz failed")) + (error "Decompressing buffer failed")) (delete-region (point) (point-max)) (goto-char (point-min))) -- cgit v1.2.3