]> git.eshelyaron.com Git - emacs.git/commitdiff
Prefer setq-local in url/*.el
authorStefan Kangas <stefan@marxist.se>
Sun, 6 Dec 2020 07:50:51 +0000 (08:50 +0100)
committerStefan Kangas <stefan@marxist.se>
Sun, 6 Dec 2020 07:51:23 +0000 (08:51 +0100)
* lisp/url/url-cookie.el (url-cookie-write-file):
* lisp/url/url-http.el (url-http-parse-headers):
* lisp/url/url-util.el (url-extract-mime-headers): Prefer setq-local.

lisp/url/url-cookie.el
lisp/url/url-http.el
lisp/url/url-util.el

index bee3a6b85e4ba6f05919e2303a10930e084c5ec5..e185a7914f3598157cde7b4abfd1de09c4ec658f 100644 (file)
@@ -162,7 +162,7 @@ i.e. 1970-1-1) are loaded as expiring one year from now instead."
               ";; version-control: never\n"
               ";; no-byte-compile: t\n"
               ";; End:\n")
-      (set (make-local-variable 'version-control) 'never)
+      (setq-local version-control 'never)
       (write-file fname))
     (setq url-cookies-changed-since-last-save nil))))
 
index 75330d33277aa04785b843142ae503081f352632..1271b9b96f582fb09f9f06341c4751681850c409 100644 (file)
@@ -741,12 +741,12 @@ should be shown to the user."
                   ;; without changing the API.  Instead url-retrieve should
                   ;; either simply not return the "destination" buffer, or it
                   ;; should take an optional `dest-buf' argument.
-                  (set (make-local-variable 'url-redirect-buffer)
-                       (url-retrieve-internal
-                        redirect-uri url-callback-function
-                        url-callback-arguments
-                        (url-silent url-current-object)
-                        (not (url-use-cookies url-current-object))))
+                   (setq-local url-redirect-buffer
+                               (url-retrieve-internal
+                                redirect-uri url-callback-function
+                                url-callback-arguments
+                                (url-silent url-current-object)
+                                (not (url-use-cookies url-current-object))))
                   (url-mark-buffer-as-dead buffer))
               ;; We hit url-max-redirections, so issue an error and
               ;; stop redirecting.
index 0a7e7e205e065610ac96cb0edee2a513142e29ac..bd9543bbe752f4452c6e2c4f72075537a2983a49 100644 (file)
@@ -574,8 +574,8 @@ Has a preference for looking backward when not directly on a symbol."
   (save-excursion
     (goto-char (point-min))
     (unless url-current-mime-headers
-      (set (make-local-variable 'url-current-mime-headers)
-          (mail-header-extract)))))
+      (setq-local url-current-mime-headers
+                  (mail-header-extract)))))
 
 (defun url-make-private-file (file)
   "Make FILE only readable and writable by the current user.