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-profile.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-profile.el')
-rw-r--r-- | lisp/mastodon-profile.el | 3 |
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 |