; Avoid plist-get as generalized var in erc-compat

* lisp/erc/erc-compat.el (erc-compat--29-auth-source-pass-search): The
gv expander for `plist-get' was added in Emacs 28.  But ERC still
supports 27, as of this function's introduction, in Emacs 29.
This commit is contained in:
F. Jason Park 2023-01-10 11:59:57 -08:00
parent 09e9d7c749
commit 7b13422298

View file

@ -260,8 +260,8 @@ If START or END is negative, it counts from the end."
(dolist (e rv out)
(when-let* ((s (plist-get e :secret))
(v (auth-source--obfuscate s)))
(setf (plist-get e :secret)
(apply-partially #'auth-source--deobfuscate v)))
(setq e (plist-put e :secret (apply-partially
#'auth-source--deobfuscate v))))
(push e out)))
rv)))