Subject: Re: bug#26184: 25.2; auth-source-delete is broken

From: Noam Postavsky <[email-masked]>
Date: Tue, 17 Jul 2018 21:32:13 -0400

tags 26184 fixed
close 26184 26.2
quit

Kazuhiro Ito <[email-masked]> writes:

> auth-source-delete function is defined as below.
>
>> (defun auth-source-delete (&rest spec)
>>   "Delete entries from the authentication backends according to SPEC.
>> Calls `auth-source-search' with the :delete property in SPEC set to t.
>> The backend may not actually delete the entries.
>
>> Returns the deleted entries."
>>   (auth-source-search (plist-put spec :delete t)))
>
> If you actually use it, an error is raised.  It should be defined as
> below.
>
>> (apply 'aurh-source-search (plist-put spec :delete t))

Fixed and added test in emacs-26.

[1: cb50077b1e]: 2018-07-17 21:28:26 -0400
  Fix auth-source-delete (Bug#26184)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=cb50077b1eb7c1467f2f200e01599b391d025bfa