| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |\| |
|
| | | |
| | | |
| | | |
| | | | |
just test that length of --media-attachments == length of --media-attachment-ids.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
this commit moves the call to -upload-attached-media into -attach-media.
upload-attached-media now uploads a single item only, whichever file has just
been selected at the prompt.
but we still use the list of attached-media to handle preview displays.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
this updates the functions to toggle receiving notifications when a user
posts to work with the newly refactored follow-user function and associated functions.
|
| | |\ \ |
|
| | | |\ \ |
|
| | | | |\ \ |
|
| | | | | | | |
|
| | | | | |/ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
place them after toot content and add padding for vote count display.
|
| | | | |/ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
and fix matching for both user handle and user display name.
|
| | | | |\
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
h_d/mastodon.el:tests into develop
Reviewed-on: https://git.blast.noho.st/mouse/mastodon.el/pulls/18
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When just loading the lisp and test files one can run `M-x ert` but
because things are subtly different we need to tweak a few more things
to make things pass in that mode.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Add a header comment explicitly switching off lexical binding
- Harmonize naming (always start with module and double hyphen)
- Ensure all tests have at least a minimal doc string.
- Move tests from `mastodon-auth-test.el` to `mastodon-auth-tests.el`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Remove redundant let binding of vars
- Re-indent various things to better fit reasonably on a screen.
|
| | | | |/
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Instead let's catch the error and then assert the correct error text.
This is more specific and also looks nicer on a test run as there are
no `F` symbols for the (expected) failures.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
because 'O' is no longer available, being used for --my-profile.
the actual solution is to just have one binding that cycles through the
profile views.
|
| | | | |
| | | | |
| | | | |
| | | | | |
to avoid using C-S- bindings, which don't always work for others.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
to handle adding property "type" to media, and to display in help-echo if not
an image.
|
| | | |\| |
|
| | | | | |
|
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- if the type is not "image", it is displayed in`'help-echo' property.
- the idea is to use this to handle gifs/videos differently to images. but for
now i'm not sure how to actually render such media. but this way, at least the
item could be viewed externally if the user wants to see it, or at least they
know they're missing out on something.
- NB: EWW can't handle content type "video/mp4".
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- mastodon-tl--notify-user-posts
- mastodon-tl--no-notify-user-posts
- + some schtick in notifications.el to make sure the notifs display ok.
|
| | |/
| |/| |
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | | |
into develop
Reviewed-on: https://git.blast.noho.st/mouse/mastodon.el/pulls/8
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Just a small simplification of the recent change from commit
027f24125f: the formatting is actually the same no matter if showing
infos about the toot itself or the reblogged toot, so let's just first
pick which toot to use and have the formatting just once.
|
| | | |
| | | |
| | | |
| | | | |
Just some autoload and defvar needed to keep the compiler quiet.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- A `progn` with a single form is redundant
- `when` doesn't need a `progn` body
- `if` has an implicit `progn` for the consequences
- I converted one cascade of `if`s into a `cond`.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Apparently one should not rely on "/" being the directory separator
and use the funtions from
https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Name-Components.html#File-Name-Components
instead.
The new version seems strictly better in that it won't create paths
with double slashes when `emojify-emojis-dir` already ends in a slash.
This also refines the test for `emojify-emojis-dir` to actually check
it is an existing directoy and not just an existing file, dir, or
symlink.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
<some-symbol> <a-list>)`
This is more readable and actually more efficient (maybe) since it
uses `eq` rather than `equal` as a test.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We recently introduced a new thin abstraction
`mastodon-http--url-retrieve-synchronously` but did not make use of it
everywhere.
This also moves its definition to the top above its first use.
This also removes some dead, commented-out code.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Basically, in Emacs for each file: select all text and
`indent-region`.
- This also removes one redundant comment, and
- fixes an error with json decoding where the `json-read-from-string`
was actually not within the intended `unless` clause (which explains
the warning about "result of (string-equal "" json-string) will be
ignored" which I never understood.
|
| |/ /
| | |
| | |
| | |
| | | |
This is much cleaner than first using `defvar` immediately followed by
`make-variable-buffer-local`.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- adds functions to download custom emoji from mastodon-instance-url, collect
them into a list formatted as needed by emojify-user-emojis, and to update
that var with the mastodon custom emoji so that they can be used with
emojify-insert-emoji.
- for now the user has to enable these by calling -enable-custom-emoji themselves.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
we need this modified version of -get-user-info because it adds the @ prefix
to the account handle, which our completion prefix also contains
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These needed a bit of tender love and care to get back into passing
state.
- Move the auth tests to the `test` directory. No idea what it was
doing in `lisp`.
- Image tests are mostly broken because with later Emacsen we no
longer need the `imagemagic` option on create-image.
- Some method signatures have changed and mocking calls needed to
follow suit.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is mostly reflowing / reworkding docstrings to keep within 80
characters limit and adding autoloads.
There are two warning remaining that I don't understand:
- mastodon-async.el:359:16: Warning: reference to free variable
‘url-http-end-of-headers’
- mastodon-http.el:139:8: Warning: value returned from (string-equal json-string "") is unused
When adding autoloads this sorts them for better readability.
|
| |
| |
| |
| |
| | |
also rename company mentions completion default value to "following" not
"followers", which is what the actual search is called and what it returns.
|
| |\ |
|
| | |\ |
|
| | | | |
|