[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-27 461bd9c: Fix url-cookie.el for lexical binding
From: |
Stefan Monnier |
Subject: |
Re: emacs-27 461bd9c: Fix url-cookie.el for lexical binding |
Date: |
Sun, 29 Mar 2020 23:59:06 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Use setq
> instead of set to modify lexical binding.
[...]
> - (set (if (> trusted untrusted) 'untrusted 'trusted) nil))
> + (if (> trusted untrusted) (setq untrusted nil) (setq trusted nil)))
FWIW, another option was:
(setf (if (> trusted untrusted) untrusted trusted) nil))
[ Which macroexpands to the same as what you wrote. ]
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: emacs-27 461bd9c: Fix url-cookie.el for lexical binding,
Stefan Monnier <=