summaryrefslogtreecommitdiff
path: root/lisp/net/soap-inspect.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-01-31 16:30:55 +0100
committerStefan Kangas <stefan@marxist.se>2021-01-31 20:08:25 +0100
commit21d9303c61ce5ecc81fd7ea96aeb94b5b03bee79 (patch)
treeffee2fe6ba7f7085858615723181d6f1f8508cb9 /lisp/net/soap-inspect.el
parenta5885d9d633f0a0e2e23d5d9f48d6b70a6301442 (diff)
downloademacs-21d9303c61ce5ecc81fd7ea96aeb94b5b03bee79.tar.gz
Prefer defvar-local in net/*.el
* lisp/net/browse-url.el (browse-url-temp-file-name): * lisp/net/rcirc.el (rcirc-ignore-buffer-activity-flag) (rcirc-low-priority-flag, rcirc-parent-buffer) (rcirc-activity-types, rcirc-last-sender): * lisp/net/soap-inspect.el (soap-inspect-previous-items) (soap-inspect-current-item): * lisp/net/telnet.el (telnet-remote-echoes) (telnet-interrupt-string, telnet-count): Prefer defvar-local.
Diffstat (limited to 'lisp/net/soap-inspect.el')
-rw-r--r--lisp/net/soap-inspect.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/net/soap-inspect.el b/lisp/net/soap-inspect.el
index 604e35c07cf..9d4e440719d 100644
--- a/lisp/net/soap-inspect.el
+++ b/lisp/net/soap-inspect.el
@@ -206,17 +206,13 @@ This is a specialization of `soap-sample-value' for
;;; soap-inspect
-(defvar soap-inspect-previous-items nil
+(defvar-local soap-inspect-previous-items nil
"A stack of previously inspected items in the *soap-inspect* buffer.
Used to implement the BACK button.")
-(defvar soap-inspect-current-item nil
+(defvar-local soap-inspect-current-item nil
"The current item being inspected in the *soap-inspect* buffer.")
-(progn
- (make-variable-buffer-local 'soap-inspect-previous-items)
- (make-variable-buffer-local 'soap-inspect-current-item))
-
(defun soap-inspect (element)
"Inspect a SOAP ELEMENT in the *soap-inspect* buffer.
The buffer is populated with information about ELEMENT with links