From f7033806b5f496d426ba6324aed9978a84a9a39e Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 3 Dec 2025 14:39:50 -0500 Subject: don't update if it's not interactive --- emacsconf-pad.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'emacsconf-pad.el') diff --git a/emacsconf-pad.el b/emacsconf-pad.el index 7d43423..e5d20f3 100644 --- a/emacsconf-pad.el +++ b/emacsconf-pad.el @@ -264,9 +264,10 @@ ${next-talk-list} (emacsconf-pad-create-pad pad-id) (when (or emacsconf-pad-force-all (not (emacsconf-pad-modified-p pad-id)) - (progn - (browse-url (emacsconf-pad-url o)) - (y-or-n-p (format "%s might have been modified. Reset? " (plist-get o :slug))))) + (and (called-interactively-p) + (progn + (browse-url (emacsconf-pad-url o)) + (y-or-n-p (format "%s might have been modified. Reset? " (plist-get o :slug)))))) (emacsconf-pad-set-html pad-id (emacsconf-pad-initial-content o)) -- cgit v1.2.3