[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 792e18037d 27/45: Use `equal' to access alist ent
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 792e18037d 27/45: Use `equal' to access alist entries by `mastodon-instance-url' |
Date: |
Thu, 1 Feb 2024 10:00:58 -0500 (EST) |
branch: elpa/mastodon
commit 792e18037d2de677d969cabd19bdf1086e760218
Author: David Edmondson <dme@dme.org>
Commit: David Edmondson <dme@dme.org>
Use `equal' to access alist entries by `mastodon-instance-url'
If a user re-loads their mastodon.el configuration within an emacs
session after using mastodon.el, the variable `mastodon-instance-url'
may no longer be considered `eq' to the original value, even if they
are the same string.
To avoid this problem, compare using `equal'.
---
lisp/mastodon-auth.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el
index 1a3e539388..279377ba2d 100644
--- a/lisp/mastodon-auth.el
+++ b/lisp/mastodon-auth.el
@@ -172,13 +172,13 @@ When ASK is absent return nil."
Generate/save token if none known yet."
(cond (mastodon-auth--token-alist
;; user variables are known and initialised.
- (alist-get mastodon-instance-url mastodon-auth--token-alist))
+ (alist-get mastodon-instance-url mastodon-auth--token-alist nil nil
#'equal))
((plist-get (mastodon-client--active-user) :access_token)
;; user variables need to be read from plstore.
(push (cons mastodon-instance-url
(plist-get (mastodon-client--active-user) :access_token))
mastodon-auth--token-alist)
- (alist-get mastodon-instance-url mastodon-auth--token-alist))
+ (alist-get mastodon-instance-url mastodon-auth--token-alist nil nil
#'equal))
((null mastodon-active-user)
;; user not aware of 2FA-related changes and has not set
;; `mastodon-active-user'. Make user aware and error out.
- [nongnu] elpa/mastodon 33d0011c7c 11/45: toot--reply: call toot--compose-buffer not just toot, (continued)
- [nongnu] elpa/mastodon 33d0011c7c 11/45: toot--reply: call toot--compose-buffer not just toot, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 0c7322e839 24/45: refactor mastodon-toot--make-capf, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 0c048e154b 20/45: copy image caption cmd, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 703655f109 26/45: Merge branch 'emoji-capf' into develop, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon a6680b093e 13/45: remove ; ; Version: strings in buffers other than mastodon.el, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 8108187270 10/45: buffer-for: fix () to ensure goto point min works on cycle, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 3b3f5228ac 35/45: profile: Use v2 search when looking for users, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 6fc44fe225 34/45: fix signature of make-capf so we call it right!, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 844a97ca89 39/45: fix typo in fun name, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 9ffe93009c 38/45: edit attachments description fun, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 792e18037d 27/45: Use `equal' to access alist entries by `mastodon-instance-url',
ELPA Syncer <=
- [nongnu] elpa/mastodon 07b9052501 40/45: Merge pull request 'profile: Use v2 search when looking for users' (#524) from dme/mastodon.el:develop into develop, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 9a8d24f9fa 02/45: call remove-overlays in --thread (fix bug display of play if we reload a thread), ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon fda3e5963d 44/45: Merge pull request 'Add a couple of key bindings that I have found useful' (#525) from dme/mastodon.el:devel/suspend into develop, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon f994ae1b71 03/45: add role badge to profiles. FIX #504., ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon f1af40e2c0 08/45: edit toots adopt attachments. FIX #506, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon aa0a2c08f0 06/45: add msg about loss of attachments on editing toot, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon c9c9487968 21/45: docstring, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 6a306afeed 23/45: FIX #515. completion-ignore-case t buffer-local for compose, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 65821b2f24 17/45: update help-echo for new profile cycle cmds, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 8e576fc297 09/45: implement exclude_replies on profile view, inc. cycle, ELPA Syncer, 2024/02/01