[Top][All Lists]

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

Re: [PATCH] Make `smtpmail-try-auth-method' a generic function.

From: Stefan Monnier
Subject: Re: [PATCH] Make `smtpmail-try-auth-method' a generic function.
Date: Thu, 11 Jan 2018 14:33:28 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> That will need an upcoming 'auth-source-xoauth2' package, as getting the
> password involves doing some HTTP fetching. I have the code, just need
> to find some time to add it to MELPA.

BTW, your library can still work with Emacs-26 (and even Emacs-25) using
a hack like:

    (unless (cl-generic-p 'smtpmail-try-auth-method)
      (let ((f (symbol-function 'smtpmail-try-auth-method)))
        (fset 'smtpmail-try-auth-method nil)
        (cl-generic-define-method 'smtpmail-try-auth-method nil
                                  '(process mech user password)
                                  nil f)))

which turns the "regular function" smtpmail-try-auth-method into
a "generic function".


reply via email to

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