~pkal/autocrypt

d8e34fc3ebc3a74b48e312841829b32dbb57da17 — Philip Kaludercic 6 months ago 9572323
Fold 'defalias' definitions for the MUA generic functions
1 files changed, 18 insertions(+), 9 deletions(-)

M autocrypt.el
M autocrypt.el => autocrypt.el +18 -9
@@ 155,7 155,8 @@ be found."
    (set-advertised-calling-convention fn signature nil)
    fn))

(defalias 'autocrypt-install (autocrypt-make-function 'install '())
(defalias 'autocrypt-install
  (autocrypt-make-function 'install '())
  "Install necessary autocrypt functions into the MUA.
A mail reader (Gnus, Rmail, ...) should only needs to implement
`get-header' and optionally `get-part'.  A


@@ 167,7 168,8 @@ This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-uninstall (autocrypt-make-function 'uninstall '())
(defalias 'autocrypt-uninstall
  (autocrypt-make-function 'uninstall '())
  "Remove all modifications by autocrypt.
This should reverse the effect of `autocrypt-install'.



@@ 175,43 177,50 @@ This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-get-header (autocrypt-make-function 'get-header '(header))
(defalias 'autocrypt-get-header
  (autocrypt-make-function 'get-header '(header))
  "Return the value of HEADER.
This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-add-header (autocrypt-make-function 'add-header '(header value))
(defalias 'autocrypt-add-header
  (autocrypt-make-function 'add-header '(header value))
  "Insert HEADER with VALUE into message.
This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-remove-header (autocrypt-make-function 'remove-header '(header))
(defalias 'autocrypt-remove-header
  (autocrypt-make-function 'remove-header '(header))
  "Remove HEADER from message.
This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-sign-encrypt (autocrypt-make-function 'sign-encrypt '())
(defalias 'autocrypt-sign-encrypt
  (autocrypt-make-function 'sign-encrypt '())
  "Make the message to be signed and encrypted.
This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-secure-attach (autocrypt-make-function 'secure-attach '(payload))
(defalias 'autocrypt-secure-attach
  (autocrypt-make-function 'secure-attach '(payload))
  "Add PAYLOAD as an encrypted attachment.
This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-encrypted-p (autocrypt-make-function 'encrypted-p '())
(defalias 'autocrypt-encrypted-p
  (autocrypt-make-function 'encrypted-p '())
  "Check the the current message is encrypted.
This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and
`autocrypt-make-function' for more details.")

(defalias 'autocrypt-get-part (autocrypt-make-function 'get-part '(index) 'n/a)
(defalias 'autocrypt-get-part
  (autocrypt-make-function 'get-part '(index) 'n/a)
  "Return the INDEX'th part of the current message.
This is a generic function and the behaviour varies depending on
the buffer it is being invoked in.  See `autocrypt-backends' and