unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26184: 25.2; auth-source-delete is broken
@ 2017-03-20  2:55 Kazuhiro Ito
  2018-07-18  1:32 ` Noam Postavsky
  0 siblings, 1 reply; 2+ messages in thread
From: Kazuhiro Ito @ 2017-03-20  2:55 UTC (permalink / raw)
  To: 26184

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))

-- 
Kazuhiro Ito





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#26184: 25.2; auth-source-delete is broken
  2017-03-20  2:55 bug#26184: 25.2; auth-source-delete is broken Kazuhiro Ito
@ 2018-07-18  1:32 ` Noam Postavsky
  0 siblings, 0 replies; 2+ messages in thread
From: Noam Postavsky @ 2018-07-18  1:32 UTC (permalink / raw)
  To: Kazuhiro Ito; +Cc: 26184

tags 26184 fixed
close 26184 26.2
quit

Kazuhiro Ito <kzhr@d1.dion.ne.jp> 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-18  1:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-20  2:55 bug#26184: 25.2; auth-source-delete is broken Kazuhiro Ito
2018-07-18  1:32 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).