[Top][All Lists]

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

emacs-27 461bd9c: Fix url-cookie.el for lexical binding

From: Andreas Schwab
Subject: emacs-27 461bd9c: Fix url-cookie.el for lexical binding
Date: Sun, 29 Mar 2020 16:13:57 -0400 (EDT)

branch: emacs-27
commit 461bd9cc20b778b934ecbd276f4905fedb7d8c18
Author: Andreas Schwab <address@hidden>
Commit: Andreas Schwab <address@hidden>

    Fix url-cookie.el for lexical binding
    * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Use setq
    instead of set to modify lexical binding.
 lisp/url/url-cookie.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el
index 7ab9a2f..bee3a6b 100644
--- a/lisp/url/url-cookie.el
+++ b/lisp/url/url-cookie.el
@@ -319,7 +319,7 @@ i.e. 1970-1-1) are loaded as expiring one year from now 
        (pop untrusted)))
     (and trusted untrusted
         ;; Choose the more specific match.
-        (set (if (> trusted untrusted) 'untrusted 'trusted) nil))
+        (if (> trusted untrusted) (setq untrusted nil) (setq trusted nil)))
       ;; The site was explicitly marked as untrusted by the user.

reply via email to

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