aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authorHolger Dürer <me@hdurer.net>2021-11-02 18:35:38 +0100
committerHolger Dürer <me@hdurer.net>2021-11-06 16:09:19 +0100
commitb9d5d2ee57855653c32fe2fe2a495e5a3a038acf (patch)
treed2bcaff578866455c7a43ca834980be6fbabf1ae /lisp/mastodon-profile.el
parent027f24125fae4abc487207c8c81fdc0f20ec711d (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-profile.el')
-rw-r--r--lisp/mastodon-profile.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 018af21..31499ed 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -62,9 +62,8 @@
(defvar mastodon-tl--update-point)
-(defvar mastodon-profile--account nil
+(defvar-local mastodon-profile--account nil
"The data for the account being described in the current profile buffer.")
-(make-variable-buffer-local 'mastodon-profile--account)
;; this way you can update it with C-M-x:
(defvar mastodon-profile-mode-map