aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | | | * rename company mentions to 'mastodon-toot-mentions'mousebot2021-12-121-5/+6
| | | | | | | | | | | | | | | | | | | | and fix matching for both user handle and user display name.
| | | | * Merge pull request 'Do a bit of work on tests' (#18) from ↵mouse bot2021-11-1210-625/+653
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | h_d/mastodon.el:tests into develop Reviewed-on: https://git.blast.noho.st/mouse/mastodon.el/pulls/18
| | | | | * Make the local ert runner pass.Holger Dürer2021-11-103-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | | | * Hamonize tests.Holger Dürer2021-11-109-127/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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`
| | | | | * Reformatting `mastodon-search-tests.el`.Holger Dürer2021-11-108-511/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove redundant let binding of vars - Re-indent various things to better fit reasonably on a screen.
| | | | | * Change `mastodon-auth-test.el` to not expect errors.Holger Dürer2021-11-101-4/+16
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | | * move profile view followers/following bindings to 's'/'g'.mousebot2021-11-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | | * move profile--my-profile binding to 'O'mousebot2021-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | to avoid using C-S- bindings, which don't always work for others.
| | | | * autocompletion ignores case of handles/display namesmousebot2021-11-091-2/+2
| | | | |
| | | * | update mastodon-media:get-media-link-rendering{-gif}mousebot2021-11-091-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | to handle adding property "type" to media, and to display in help-echo if not an image.
| | | * | Merge branch 'develop' into media-typemousebot2021-11-091-2/+10
| | | |\|
| | | | * update test mastodon-media:get-media-link-rendering with extra propsmousebot2021-11-091-2/+10
| | | | |
| | | * | fetch media_attachments' "type" from server and store as propertymousebot2021-11-092-16/+23
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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".
| | | * remove help-echo for faves/boosts/replies, it breaks img echo keymapmousebot2021-11-091-10/+0
| | | |
| | * | update mastodon-notifications--test-byline-concat for post notifymousebot2021-11-061-1/+3
| | | |
| | * | add support for receiving notifications when a user postsmousebot2021-11-022-6/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - mastodon-tl--notify-user-posts - mastodon-tl--no-notify-user-posts - + some schtick in notifications.el to make sure the notifs display ok.
| * | | fixme insert-status/get-media-link-renderingmousebot2021-11-091-0/+1
| | |/ | |/|
| * | Merge pull request 'Merge h_d's cleanups' (#8) from h_d/mastodon.el:cleanups ↵mouse bot2021-11-0618-836/+800
| |\ \ | | | | | | | | | | | | | | | | | | | | into develop Reviewed-on: https://git.blast.noho.st/mouse/mastodon.el/pulls/8
| | * | Simplify the logic in `mastodon-tl--insert-status`.Holger Dürer2021-11-061-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Fix new warnings in `mastodon-inspect.el`.Holger Dürer2021-11-061-0/+3
| | | | | | | | | | | | | | | | Just some autoload and defvar needed to keep the compiler quiet.
| | * | Do a bit if `if` and `progn` sanitizing.Holger Dürer2021-11-065-38/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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`.
| | * | Use portable filename component functions.Holger Dürer2021-11-061-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Convert most uses of `(cdr (assoc <some-symbol> <a-list>))` to `(alist-get ↵Holger Dürer2021-11-068-146/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | <some-symbol> <a-list>)` This is more readable and actually more efficient (maybe) since it uses `eq` rather than `equal` as a test.
| | * | Clean up uses of `url-retrieve-synchronously`.Holger Dürer2021-11-061-28/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Reformat all code.Holger Dürer2021-11-0617-615/+614
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | Use `defvar-local` to create buffer-local vars.Holger Dürer2021-11-064-35/+19
| |/ / | | | | | | | | | | | | This is much cleaner than first using `defvar` immediately followed by `make-variable-buffer-local`.
| * | display faves/boosts/replies in threads also for reblogsmousebot2021-11-061-5/+11
| | |
| * | tiny cleanupmousebot2021-11-063-2/+2
| | |
| * | add tests for -search.elmousebot2021-11-062-0/+142
| | |
| * | inspect functions for search.elmousebot2021-11-061-1/+33
| | |
| * | support downloading/using custom emoji with emojify.mousebot2021-11-051-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
| * | defvar company-backends for flycheckmousebot2021-11-051-1/+2
| | |
| * | fix broken completion, restore search--get-user-info{-@}mousebot2021-11-031-1/+7
| | | | | | | | | | | | | | | we need this modified version of -get-user-info because it adds the @ prefix to the account handle, which our completion prefix also contains
| * | Fix tests.Holger Dürer2021-11-0111-26/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Fix compilation warnings.Holger Dürer2021-11-018-41/+65
| |/ | | | | | | | | | | | | | | | | | | | | | | 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.
| * include user's profile URL in company mentions completion.mousebot2021-11-012-17/+20
| | | | | | | | | | also rename company mentions completion default value to "following" not "followers", which is what the actual search is called and what it returns.
| * Merge branch 'develop' into imgcachingmousebot2021-10-293-56/+60
| |\
| | * Merge branch 'img-previews' into developmousebot2021-10-293-40/+32
| | |\
| | | * fix toot--send setting args/args-mediamousebot2021-10-291-17/+14
| | | |
| | | * make get-max-toot-chars asyncmousebot2021-10-291-6/+11
| | | |
| | | * docstringsmousebot2021-10-292-2/+2
| | | |
| | | * merge upload-media-attachments functionality into toot-send.mousebot2021-10-292-41/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this obviates the need for the user to upload files before posting their toot. - this commit makes http--post-media-attachment synchronous, so that toot-send has to wait for it. - in toot-send: if mastodon-toot--media-attachements is non-nil, the files it contains are uploaded synchronously, and their returned ids are added to toot-media-attachment-ids, which are parsed as args for the POST request to be attached to the toot. - then we send toot as usual. - clear-all-attachments also clears mastodon-toot--media-attachment-ids just in case. - we have no more need of media-attachments-filenames, as media-attachments is now a list and not a boolean value.
| | * | make get-max-toot-chars asyncmousebot2021-10-291-6/+11
| | |/
| | * hopefully improve attachment upload error handlingmousebot2021-10-291-9/+15
| | |
| | * fix for image uploads error in 'emacs -Q': expand file name!mousebot2021-10-291-1/+2
| | |
| | * require mastodon-toot in mastodon.el, for customize visibilitymousebot2021-10-281-9/+10
| | | | | | | | | | | | - & no need for all other mastodon-toot autoloads
| | * fix group of mastodon-toot--attachment-heightmousebot2021-10-281-1/+1
| | |
| * | enable-image-caching customize optionmousebot2021-10-291-3/+10
| | |
| * | require mastodon-toot in mastodon.el, for customize visibilitymousebot2021-10-281-9/+10
| | | | | | | | | | | | - & no need for all other mastodon-toot autoloads
| * | fix group of mastodon-toot--attachment-heightmousebot2021-10-281-1/+1
| | |