aboutsummaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | refactoring delete/redraft functionsmousebot2021-12-201-37/+43
| | |
| * | typos and docstringsmousebot2021-12-203-9/+13
| |/
| * autoload typomousebot2021-12-171-1/+1
| |
| * improve faves count help-echo propertizingmousebot2021-12-171-10/+30
| | | | | | | | | | | | | | | | - add `mastodon-tl--format-faves-count function - handle notifications formatting (get 'status field of toot) - apply to author-byline formatting - apply to the (F) and (B) formatting for faves/boosts - ensures where point lands after `mastodon-tl--goto-next-toot is always propertized
| * y-or-n-p before cancelling a toot.mousebot2021-12-171-1/+7
| |
| * mapcar* -> cl-mapcar in -tl.elmousebot2021-12-171-3/+2
| |
| * bump version to a round numbermousebot2021-12-1713-13/+13
| |
| * cl-lib not cl for mapcar* in -tlmousebot2021-12-171-2/+2
| |
| * boilerplate maintainer contactmousebot2021-12-1713-1/+16
| |
| * depend on emacs 27.1, flychecks, docstrings, etc.mousebot2021-12-1713-25/+37
| | | | | | | | strictly, the 27.1 dependency is only for proper-list-p in -http.el.
| * bump version, change homepage link, readmemousebot2021-12-1713-26/+26
| |
| * revert echo faves on toot text in thread viewmousebot2021-12-171-12/+1
| | | | | | | | | | | | because it breaks propertizing of links/handles. so echo faves is now only on byline author name.
| * keep "O"/my-profile binding when point on image.mousebot2021-12-171-0/+2
| |
| * FIX echo faves in thread view clashing with media help-echomousebot2021-12-171-16/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | move help-echo propertizing to author name of byline, in `mastodon-tl--byline-author'. so when we use `goto-next-toot' point is on author and we get the help echo and add the same help-echo to `mastodon-tl--content', but only when in thread view. this ensures the propertizing occurs prior to any image propertizing, when will then only replace the faves propertizing for the image part of the given toot. that way we have help echo for images when we want, and faves count otherwise.
| * Merge branch 'develop' into echo-faves-in-threadmousebot2021-12-171-24/+29
| |\
| | * ensure media-attachment is not a dirmousebot2021-12-171-9/+11
| | |
| | * Merge branch 'immed-async-media-upload' into developmousebot2021-12-171-15/+18
| | |\
| | | * fix media attachments test before postingmousebot2021-12-171-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | if --media-attachments is non-nil, make sure we have non-nil media-args, and that we have same num of -ids to attach as attachments uploaded.
| * | | Merge branch 'develop' into echo-faves-in-threadmousebot2021-12-167-179/+221
| |\| |
| | * | Merge branch 'immed-async-media-upload' into developmousebot2021-12-162-27/+29
| | |\|
| | | * attach media test before postmousebot2021-12-151-3/+6
| | | | | | | | | | | | | | | | just test that length of --media-attachments == length of --media-attachment-ids.
| | | * a first hack to make media uploads immediate and async.mousebot2021-12-152-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | refactor notify-user-posts functionsmousebot2021-12-161-25/+32
| | | | | | | | | | | | | | | | | | | | this updates the functions to toggle receiving notifications when a user posts to work with the newly refactored follow-user function and associated functions.
| | * | Merge branch 'develop' into notify-when-postmousebot2021-12-1612-666/+695
| | |\ \
| | | * \ Merge branch 'develop' into media-typemousebot2021-12-164-134/+112
| | | |\ \
| | | | * \ Merge branch 'refactor-follows-etc' into developmousebot2021-12-161-120/+76
| | | | |\ \
| | | | | * | indent-buffer on -tl.elmousebot2021-12-161-14/+14
| | | | | | |
| | | | | * | refactor un/follow, un/block, un/mute functionsmousebot2021-12-151-116/+72
| | | | | |/
| | | | * | improve display of polls:mousebot2021-12-161-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | place them after toot content and add padding for vote count display.
| | | | * | customize option to enable custom emoji by default.mousebot2021-12-152-1/+8
| | | | |/
| | | | * rename company mentions to 'mastodon-toot-mentions'mousebot2021-12-121-5/+6
| | | | | | | | | | | | | | | | | | | | and fix matching for both user handle and user display name.
| | | | * 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
| | | | |
| | | * | 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
| | | |
| | * | 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
| | |/ | |/|
| * | 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-0610-225/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-062-2/+1
| | |
| * | 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.