aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-media.el
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Catch any errors thrown during url-retrieve.Holger Dürer2017-06-191-3/+12
| | | | | On Emacs24 I've been able to reliably fail url fetching which exposed issues in loading a timeline (it aborts the loading). This catches any errors, marking the image load as failed so that we won't retry (retries are a TODO item I guess) and then succeeds the function so the rest of the timeline loading can proceed.
* More robust bad url detection.Holger Dürer2017-06-191-3/+4
|
* Bump to v0.7.0Johnson Denen2017-05-181-1/+1
|
* Remove most byte-compile warnings.Holger Dürer2017-05-181-11/+14
| | | | | | | We do this by - moving vars into the files where they are (mostly) used - "declaring" vars used elsewhere with the (defvar <var-name>) pattern, - declaring functions defined in others functions rather than loading the file via require.
* Bump to v0.6.3Johnson Denen2017-05-151-1/+1
|
* Use lexical-binding in all files.Holger Dürer2017-05-151-1/+2
| | | | | We only support Emacs 24 and 25 so are free to use sane bindings by default. To keep the linter happy, we need to declare dependency on Emacs 24 in all files.
* Add tests for mastodon-media.elHolger Dürer2017-05-121-9/+14
| | | | This also includes tweaks to make Travis happy — tests previously did pass on my laptop but Travis's environment is different.
* Move the rendering of images fully into mastodon-media.el and use default ↵Holger Dürer2017-05-101-6/+112
| | | | | | | images. Having all the logic in one file reduces interdependencies. Having default images is more pleasing during the incremental loading.
* Make the image loading asynchronous.Holger Dürer2017-05-101-24/+46
| | | | | | | Now that we are also loading avatars there is a lot of image loading to do to show the timeline. We can do the loading asynchronously to let the user have a look at the toots already while image loading is incrementally proceeding. We can no longer enforce caching of avatar loading since the variable is consulted when the response parsing happens at which point the dynamic binding we had used so far has gone out of scope again.
* Show users' avatars plus other image work.Holger Dürer2017-05-081-36/+55
| | | | | | | | | - Shows users' avatars (makes only sense if Emacs is built with imagemagick) - Scales media attachement previews to a max size (if Emacs is built with imagemagick) - Enable cacheing of image fetches Known issues: - We should really cache the avatars to avoid having multiple identical images in memory.
* Fix some whitespace issues.Holger Dürer2017-05-051-2/+2
|
* Use the more canonical "nil" instead of "'()" when we don't mean an empty list.Holger Dürer2017-05-051-2/+2
| | | | (Besides, just "()" would have been enough anyway. No need to quote "()" or "nil".)
* Re-do the "Media_Links::" processing.Holger Dürer2017-05-051-38/+31
| | | | | Re-do it as a loop rather than raising an error when the search fails and trying to catch that wholesale.
* Fix failing lint stepJohnson Denen2017-04-291-0/+1
|
* Fixed defgroup docstring for mastodon-mediaeAlexander Griffith2017-04-241-2/+2
|
* fixed formatting and conventions for #41Alexander Griffith2017-04-241-18/+19
|
* Fix #41 cleaned up forkAlexander Griffith2017-04-241-1/+5
|
* Now using mastodon-http--getAlexander Griffith2017-04-241-9/+9
|