[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/autocrypt 8bdddf38ff 48/94: Save autocrypt data when mo
From: |
ELPA Syncer |
Subject: |
[elpa] externals/autocrypt 8bdddf38ff 48/94: Save autocrypt data when modified |
Date: |
Sun, 26 Mar 2023 07:58:00 -0400 (EDT) |
branch: externals/autocrypt
commit 8bdddf38ffcd1a28c208624526c0e14434917022
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>
Save autocrypt data when modified
---
autocrypt.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/autocrypt.el b/autocrypt.el
index ef65a0f603..0fbd85893a 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -300,7 +300,8 @@ Argument DATE contains the time value of the \"From\" tag."
(push (cons addr (make-autocrypt-peer
:gossip-timestamp date
:gossip-key (caddr datum)))
- autocrypt-peers))))))))
+ autocrypt-peers)))))))
+ (autocrypt-save-data))
;; https://autocrypt.org/level1.html#updating-autocrypt-peer-state
(defun autocrypt-process-header ()
@@ -333,7 +334,8 @@ Argument DATE contains the time value of the \"From\" tag."
(autocrypt-peer-pubkey peer) keydata)
(setf (autocrypt-peer-deactivated peer) t))
(unless (assoc addr autocrypt-peers)
- (push (cons addr peer) autocrypt-peers))))))
+ (push (cons addr peer) autocrypt-peers)))))
+ (autocrypt-save-data))
(defun autocrypt-insert-keydata (data)
"Insert raw keydata DATA as base64 at point."
@@ -483,13 +485,11 @@ Will handle and remove \"Do-(Discourage-)Autocrypt\" if
found."
(let ((res (epg-context-result-for ctx 'generate-key)))
(unless res
(error "Could not determine fingerprint"))
- (customize-save-variable
- 'autocrypt-accounts
- (cons (list email (cdr (assq 'fingerprint (car res))) 'none)
- autocrypt-accounts)
- "Customized by autocrypt.el"))
+ (push (list email (cdr (assq 'fingerprint (car res))) 'none)
+ autocrypt-accounts))
(message "Successfully generated key for %s, and added to key chain."
- email)))
+ email))
+ (autocrypt-save-data))
;;; MINOR MODES
- [elpa] externals/autocrypt 49f4a1a09e 62/94: Update README section on extending autocrypt.el, (continued)
- [elpa] externals/autocrypt 49f4a1a09e 62/94: Update README section on extending autocrypt.el, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt f3a556f216 66/94: Revert autocrypt-accounts back into a user option, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 8cc4b86db3 67/94: Reduce minimal version to 24.3, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 222954754a 73/94: Elaborate the autocrypt-install and -uninstall docstrings, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt fe5a358566 85/94: Add missing `-hook` suffix in readme hook name, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 3ad5baba83 90/94: Add auto-generated package.el files to .gitignore, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 82ceacb63c 13/94: fixed package-lint issues, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 354b339cfe 16/94: fixed or removed (require 'autocrypt) statements, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 2f94c4398f 22/94: encrypt message before composing if possible, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 13f31c7e45 45/94: Fix autocrypt-rmail, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 8bdddf38ff 48/94: Save autocrypt data when modified,
ELPA Syncer <=
- [elpa] externals/autocrypt 173d7616a8 49/94: Don't save value of autocrypt-saved-version, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 72c903656e 50/94: Attempt to only save autocrypt file if necessary, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 40b7576aad 54/94: Print the autocrypt version into the autocrypt file, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt cd290fc1cb 65/94: Modify the local hook values in autocrypt-mu4e--uninstall, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 709dc5b3bf 70/94: Add default return value for autocrypt-make-function, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 25513ed635 71/94: Simplify autocrypt-find-function symbol searching, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 81c88ab90e 86/94: Remove setup example from the README, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt 957232314a 87/94: Avoid usage of 'defsubst' where unnecessary, ELPA Syncer, 2023/03/26
- [elpa] externals/autocrypt ebfe1129f6 91/94: Recommend GNU ELPA as installation archive, ELPA Syncer, 2023/03/26