aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-media.el
Commit message (Collapse)AuthorAgeFilesLines
* audit media.elmarty hiatt2023-05-101-22/+23
|
* remove all ;; Package-Requires: declarations save for main filemarty hiatt2023-03-271-1/+0
| | | | main file is set in .dir-locals.el now
* manually(!) apply stephan monnier's patch, save the ts workmarty hiatt2023-03-211-5/+2
| | | | thanks stephan!
* remove first empty line in docstringsmarty hiatt2023-01-091-6/+2
|
* update copyright/author attributionmarty hiatt2022-11-271-0/+2
|
* caption + props for media urls as well as actual mediamarty hiatt2022-11-251-22/+13
| | | | adds fun mastodon-tl--propertize-img-str-or-url, to prop both.
* indentation and stale TODOsmarty hiatt2022-09-121-3/+2
|
* bump version in boilerplatemarty hiatt2022-08-271-1/+1
|
* flychecks and docstringsmousebot2022-04-051-1/+2
|
* don't add play with mpv help-echo if media type is "unknown"mousebot2022-03-111-1/+3
| | | | | | "unknown" type is given when a media image fails to load or similar. nil is e.g. when a profile picture isn't given, and missing.png is used as a replacement
* display image caption in help echomousebot2022-03-101-3/+7
|
* Merge branch 'develop' into mpv-play-at-pointmousebot2022-02-111-1/+1
|\
| * update homepage and copyright boilerplatemousebot2022-02-051-1/+1
| |
* | disable moving image overlaymousebot2022-01-151-14/+14
| | | | | | | | | | due to the bug the displays it before (point-min) if you load a timeline more than once :/
* | try an all-the-icons icon. not too sure about it tho.mousebot2022-01-111-1/+6
| | | | | | | | its unicode
* | add play symbol as after-string overlay to gifv and video typesmousebot2022-01-111-3/+12
| | | | | | | | also update the help-echo for the command to play them
* | add function to play gif/video at point. uses mpv.elmousebot2022-01-111-1/+1
|/ | | | oops fix the mpv require statement
* bump version to a round numbermousebot2021-12-171-1/+1
|
* boilerplate maintainer contactmousebot2021-12-171-0/+1
|
* depend on emacs 27.1, flychecks, docstrings, etc.mousebot2021-12-171-1/+1
| | | | strictly, the 27.1 dependency is only for proper-list-p in -http.el.
* bump version, change homepage link, readmemousebot2021-12-171-2/+2
|
* fetch media_attachments' "type" from server and store as propertymousebot2021-11-091-14/+20
| | | | | | | | | | | - 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".
* Reformat all code.Holger Dürer2021-11-061-2/+2
| | | | | | | | | | | 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.
* Fix compilation warnings.Holger Dürer2021-11-011-1/+4
| | | | | | | | | | | | 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.
* enable-image-caching customize optionmousebot2021-10-291-3/+10
|
* Merge branch 'develop' into imgcachingmousebot2021-10-241-5/+0
|\
| * move defcustom attachment-height from media to tootmousebot2021-10-221-5/+0
| | | | | | | | | | | | | | | | - this makes the autoload fun mastodon-toot have access to the variable, so that it can be successfully called without mastodon-mode having been enabled previously. - maybe there is another work around for making variables available to autoloaded functions, but i failed to find it!
* | handle caching of imagesmousebot2021-10-221-4/+14
|/ | | | | we now store images ourselves for caching rather than relying on url-automatic-caching.
* revert leftover caching things from merging image-previews branchmousebot2021-10-201-3/+1
|
* Merge branch 'img-previews' into developmousebot2021-10-201-2/+9
|\
| * disambiguate media--attachment-height and preview-max-heightmousebot2021-10-151-3/+3
| |
| * first test merge of hdurer's WIP: Posting of imagesmousebot2021-10-151-0/+5
| |
| * handle caching of imagesmousebot2021-10-091-4/+8
| | | | | | | | | | we now store images ourselves for caching rather than relying on url-automatic-caching.
* | Revert "handle cached images"mousebot2021-10-181-10/+4
|/ | | | | | -- caching images with url.el locks up mastodon.el This reverts commit 0129bcf466a4913bdda095b977cd06560c406a30.
* handle cached imagesmousebot2021-10-091-4/+10
| | | | | | | | when we fetch images, check if they are cached, and if so use the cached version. for now, images aren't cached explicitly, but this should work if the user has `url-automatic-caching' enabled.
* flycheck: docstrings, autoloads, etcmousebot2021-10-031-9/+12
|
* package-lint: bump to emacs 26.1, disable stream keybindingsmousebot2021-09-221-1/+1
|
* use inbuilt image scaling if emacs version => 27.1mousebot2021-09-131-5/+12
| | | | and put point at point-min on profile load
* foll reqs/faves bindings global, autoloads and declarations, readmemousebot2021-06-011-3/+4
|
* bump masto version, bump emacs version to 25.1, dependency in readmemousebot2021-05-311-2/+2
|
* travis.yml, move to new cask install methodmousebot2021-05-311-2/+1
|
* Implement clickable images with shr-browse-image.mousebot2021-05-211-2/+8
| | | | | | | | images are tab stops. click or RET runs shr-browse-image. a prefix arg copies the URL. images use the mastodon-tl--shr-image-map-replacement for extra functions like zoom image, save image, rotate image, etc.
* Update copyright and bump versionJohnson Denen2019-03-041-2/+2
|
* Bump to version 0.8.0Johnson Denen2018-08-101-1/+1
|
* Give mastodon-media--inline-images a saner interface. (#191)H Durer2018-08-101-20/+22
| | | | | | | | Instead of making it search the whole buffer every time to find images to load, give it a range where this work should be done. We then call this immediately after inserting a single status, notification, ... There should be no big noticible difference - images might load a tiny bit sooner although I doubt you can see that. This should be more efficient on large buffers although Alex didn't notice any problems when testing streamed buffers. We should still do it as it make things easier to understand. I was always worried about these global operations.
* Bump to 0.7.2 and shorten long code lines (#172)Alexander Griffith2018-03-051-5/+11
| | | | | | * Bump version numbers to 0.7.2 * Adjusted functions to bring line length below 90.
* Stop url.el from spamming the user with "Connecting host: ..." messages in ↵Holger Durer2018-03-021-1/+5
| | | | | | | the minibuffer. These happen during async loads, i.e. when the user might be doing something else completely. Especially with auto-update that are coming this is becoming annoying.
* Fixes buffer switching issue and closes issue #158Alexander Griffith2018-03-011-15/+15
| | | | | | - Small logic fix in mastodon-tl--media to remove redundant newline - Replaced switch-to-buffer with with-current-buffer in mastodon-media--process-image-response - Squashed with merge to develop
* When processing the result of an async image fetch, ensure the buffer still ↵Holger Dürer2018-03-011-25/+26
| | | | | | exists. This should fix https://github.com/jdenen/mastodon.el/issues/156.
* Bump version to 0.7.1Johnson Denen2017-06-191-1/+1
|