diff options
author | Holger Dürer <me@hdurer.net> | 2021-11-02 18:35:38 +0100 |
---|---|---|
committer | Holger Dürer <me@hdurer.net> | 2021-11-06 16:09:19 +0100 |
commit | b9d5d2ee57855653c32fe2fe2a495e5a3a038acf (patch) | |
tree | d2bcaff578866455c7a43ca834980be6fbabf1ae /lisp/mastodon-async.el | |
parent | 027f24125fae4abc487207c8c81fdc0f20ec711d (diff) |
Use `defvar-local` to create buffer-local vars.
This is much cleaner than first using `defvar` immediately followed by
`make-variable-buffer-local`.
Diffstat (limited to 'lisp/mastodon-async.el')
-rw-r--r-- | lisp/mastodon-async.el | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/mastodon-async.el b/lisp/mastodon-async.el index 56dc230..f7bbdff 100644 --- a/lisp/mastodon-async.el +++ b/lisp/mastodon-async.el @@ -55,17 +55,14 @@ (defvar mastodon-tl--display-media-p) (defvar mastodon-tl--buffer-spec) -(make-variable-buffer-local - (defvar mastodon-async--queue "" ;;"*mastodon-async-queue*" - "The intermediate queue buffer name.")) +(defvar-local mastodon-async--queue "" ;;"*mastodon-async-queue*" + "The intermediate queue buffer name.") -(make-variable-buffer-local - (defvar mastodon-async--buffer "" ;;"*mastodon-async-buffer*" - "User facing output buffer name.")) +(defvar-local mastodon-async--buffer "" ;;"*mastodon-async-buffer*" + "User facing output buffer name.") -(make-variable-buffer-local - (defvar mastodon-async--http-buffer "" ;;"" - "Buffer variable bound to http output.")) +(defvar-local mastodon-async--http-buffer "" ;;"" + "Buffer variable bound to http output.") (defun mastodon-async--display-http () "Display the async HTTP input buffer." |