From 91488f1358d66c93723430b4ff1484f6528e2c92 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 12 Apr 2023 00:44:02 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=98pcase-exhaustive=E2=80=99=20case?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's more information in the ‘status’ variable than just what I extract. The ‘. ,_’ matches anything else into a discard pattern so that I'm only getting the data I need. --- tekuti.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tekuti.el b/tekuti.el index 2034839..7140c39 100644 --- a/tekuti.el +++ b/tekuti.el @@ -95,7 +95,7 @@ (defun tekuti--send-finished (status buffer args) (pcase-exhaustive status - (`(:redirect ,url) + (`(:redirect ,url . ,_) (save-excursion (with-current-buffer buffer (goto-char (point-min)) @@ -111,7 +111,7 @@ (insert "#+" key ": " value "\n")))) args)))) (message "Created new post: %s" url)) - (`(:error (error http ,code)) + (`(:error (error http ,code) . ,_) (message "Failed to create post: %d" code)))) ;;;###autoload