From f055e8572b2e4d7a700392b8a71bacbfdc8e442a Mon Sep 17 00:00:00 2001 From: Jake Coble Date: Wed, 18 Jun 2025 08:14:29 -0400 Subject: Don't ask to save MML settings without a custom-file. * varuga.el (varuga-invite): Don't ask to save mml-content-type-parameters without a custom-file. Signed-off-by: Arun Isaac --- varuga.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/varuga.el b/varuga.el index eb8ecef..626dfdf 100644 --- a/varuga.el +++ b/varuga.el @@ -172,12 +172,13 @@ PARAMS is an alist of ical property parameters and their values." This will add 'method to mml-content-type-parameters, which is required for RSVPs to work.")) (y-or-n-p "Set up RSVP support?"))) - (if (let ((help-form "\ + (if (and (custom-file t) + (let ((help-form "\ This will save the value of mml-content-type-parameters in your `custom-file', so future sessions will support RSVP without prompting you.")) - (y-or-n-p "Support RSVP in future sessions?")) - (customize-push-and-save 'mml-content-type-parameters '(method)) + (y-or-n-p "Support RSVP in future sessions?"))) + (customize-save-variable 'mml-content-type-parameters '(method)) (add-to-list 'mml-content-type-parameters 'method)) (setq varuga--mml-content-type-confirmed t))) -- cgit v1.2.3