diff options
| author | Stefan Kangas | 2020-12-06 08:50:51 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2020-12-06 08:51:23 +0100 |
| commit | 7c113c344e19faece88e6be1bf55376d6f35cfb2 (patch) | |
| tree | 41c96ef69eb137f0dae90dafb9847a38fb13c12e | |
| parent | fc54c835181eb88a748d2fd49b7a4c78b9fe82ee (diff) | |
| download | emacs-7c113c344e19faece88e6be1bf55376d6f35cfb2.tar.gz emacs-7c113c344e19faece88e6be1bf55376d6f35cfb2.zip | |
Prefer setq-local in url/*.el
* 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.
| -rw-r--r-- | lisp/url/url-cookie.el | 2 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 12 | ||||
| -rw-r--r-- | lisp/url/url-util.el | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el index bee3a6b85e4..e185a7914f3 100644 --- a/lisp/url/url-cookie.el +++ b/lisp/url/url-cookie.el | |||
| @@ -162,7 +162,7 @@ i.e. 1970-1-1) are loaded as expiring one year from now instead." | |||
| 162 | ";; version-control: never\n" | 162 | ";; version-control: never\n" |
| 163 | ";; no-byte-compile: t\n" | 163 | ";; no-byte-compile: t\n" |
| 164 | ";; End:\n") | 164 | ";; End:\n") |
| 165 | (set (make-local-variable 'version-control) 'never) | 165 | (setq-local version-control 'never) |
| 166 | (write-file fname)) | 166 | (write-file fname)) |
| 167 | (setq url-cookies-changed-since-last-save nil)))) | 167 | (setq url-cookies-changed-since-last-save nil)))) |
| 168 | 168 | ||
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 75330d33277..1271b9b96f5 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -741,12 +741,12 @@ should be shown to the user." | |||
| 741 | ;; without changing the API. Instead url-retrieve should | 741 | ;; without changing the API. Instead url-retrieve should |
| 742 | ;; either simply not return the "destination" buffer, or it | 742 | ;; either simply not return the "destination" buffer, or it |
| 743 | ;; should take an optional `dest-buf' argument. | 743 | ;; should take an optional `dest-buf' argument. |
| 744 | (set (make-local-variable 'url-redirect-buffer) | 744 | (setq-local url-redirect-buffer |
| 745 | (url-retrieve-internal | 745 | (url-retrieve-internal |
| 746 | redirect-uri url-callback-function | 746 | redirect-uri url-callback-function |
| 747 | url-callback-arguments | 747 | url-callback-arguments |
| 748 | (url-silent url-current-object) | 748 | (url-silent url-current-object) |
| 749 | (not (url-use-cookies url-current-object)))) | 749 | (not (url-use-cookies url-current-object)))) |
| 750 | (url-mark-buffer-as-dead buffer)) | 750 | (url-mark-buffer-as-dead buffer)) |
| 751 | ;; We hit url-max-redirections, so issue an error and | 751 | ;; We hit url-max-redirections, so issue an error and |
| 752 | ;; stop redirecting. | 752 | ;; stop redirecting. |
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el index 0a7e7e205e0..bd9543bbe75 100644 --- a/lisp/url/url-util.el +++ b/lisp/url/url-util.el | |||
| @@ -574,8 +574,8 @@ Has a preference for looking backward when not directly on a symbol." | |||
| 574 | (save-excursion | 574 | (save-excursion |
| 575 | (goto-char (point-min)) | 575 | (goto-char (point-min)) |
| 576 | (unless url-current-mime-headers | 576 | (unless url-current-mime-headers |
| 577 | (set (make-local-variable 'url-current-mime-headers) | 577 | (setq-local url-current-mime-headers |
| 578 | (mail-header-extract))))) | 578 | (mail-header-extract))))) |
| 579 | 579 | ||
| 580 | (defun url-make-private-file (file) | 580 | (defun url-make-private-file (file) |
| 581 | "Make FILE only readable and writable by the current user. | 581 | "Make FILE only readable and writable by the current user. |