emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 92b1edb: Remove obsolete epg functions


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 92b1edb: Remove obsolete epg functions
Date: Thu, 16 May 2019 22:48:18 -0400 (EDT)

branch: master
commit 92b1edb1f8232785c25cc9484a5dfb78b51da414
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Remove obsolete epg functions
    
    * lisp/epg.el (epg-start-sign-keys, epg-sign-keys): Remove
    functions declared obsolete since Emacs 23.1.
---
 lisp/epa.el | 23 -----------------------
 lisp/epg.el | 34 ----------------------------------
 2 files changed, 57 deletions(-)

diff --git a/lisp/epa.el b/lisp/epa.el
index c8abff4..59c11ab 100644
--- a/lisp/epa.el
+++ b/lisp/epa.el
@@ -1282,29 +1282,6 @@ If no one is selected, default public key is exported.  
")))
        (epa-display-error context)
        (signal (car error) (cdr error))))))
 
-;; (defun epa-sign-keys (keys &optional local)
-;;   "Sign selected KEYS.
-;; If a prefix-arg is specified, the signature is marked as non exportable.
-
-;; Don't use this command in Lisp programs!"
-;;   (declare (interactive-only t))
-;;   (interactive
-;;    (let ((keys (epa--marked-keys)))
-;;      (unless keys
-;;        (error "No keys selected"))
-;;      (list keys current-prefix-arg)))
-;;   (let ((context (epg-make-context epa-protocol)))
-;;     (epg-context-set-passphrase-callback context
-;;                                         #'epa-passphrase-callback-function)
-;;     (epg-context-set-progress-callback context
-;;                                       (cons
-;;                                         #'epa-progress-callback-function
-;;                                         "Signing keys..."))
-;;     (message "Signing keys...")
-;;     (epg-sign-keys context keys local)
-;;     (message "Signing keys...done")))
-;; (make-obsolete 'epa-sign-keys "Do not use.")
-
 (provide 'epa)
 
 ;;; epa.el ends here
diff --git a/lisp/epg.el b/lisp/epg.el
index e06cc06..0400716 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -1936,40 +1936,6 @@ If you are unsure, use synchronous version of this 
function
                            (epg-errors-to-string errors))))))
     (epg-reset context)))
 
-(defun epg-start-sign-keys (context keys &optional local)
-  "Initiate a sign keys operation.
-
-If you use this function, you will need to wait for the completion of
-`epg-gpg-program' by using `epg-wait-for-completion' and call
-`epg-reset' to clear a temporary output file.
-If you are unsure, use synchronous version of this function
-`epg-sign-keys' instead."
-  (declare (obsolete nil "23.1"))
-  (setf (epg-context-operation context) 'sign-keys)
-  (setf (epg-context-result context) nil)
-  (epg--start context (cons (if local
-                              "--lsign-key"
-                            "--sign-key")
-                          (mapcar
-                           (lambda (key)
-                             (epg-sub-key-id
-                              (car (epg-key-sub-key-list key))))
-                           keys))))
-
-(defun epg-sign-keys (context keys &optional local)
-  "Sign KEYS from the key ring."
-  (declare (obsolete nil "23.1"))
-  (unwind-protect
-      (progn
-       (epg-start-sign-keys context keys local)
-       (epg-wait-for-completion context)
-       (let ((errors (epg-context-result-for context 'error)))
-         (if errors
-             (signal 'epg-error
-                     (list "Sign keys failed"
-                           (epg-errors-to-string errors))))))
-    (epg-reset context)))
-
 (defun epg-start-generate-key (context parameters)
   "Initiate a key generation.
 PARAMETERS is a string which specifies parameters of the generated key.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]