]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid plist-get as generalized var in erc-compat
authorF. Jason Park <jp@neverwas.me>
Tue, 10 Jan 2023 19:59:57 +0000 (11:59 -0800)
committerF. Jason Park <jp@neverwas.me>
Tue, 17 Jan 2023 14:09:08 +0000 (06:09 -0800)
* 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.

lisp/erc/erc-compat.el

index 73ce612a33d155574504bff0e7be3c3877fdd892..5601ede27a510f4c264eaf3298db56adad9f6d1a 100644 (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)))