| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
exists.
This should fix https://github.com/jdenen/mastodon.el/issues/156.
|
|\
| |
| | |
explicit media toggle and small bug fixes
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We now kill the http get request buffer once JSON has been extracted.
mastodon-tl--as-string was implemented and replaced any occurrence of number-to-string or int-to-string
Added variable mastodon-tl--display-media-p. By default it is 't but can be made a local buffer variable and set to nil. When nil rather than displaying the media it just provides a link Media::<link>
Fixed checking for faves and boosts, they should now render properly. The return from json-read-from-string for nil is :json-false which evaluates to 't in elisp.
Fixed the format string that gets printed when faving and boosting
Fixed mastodon-tl--thread updating and requesting and changed its behaviour such that it tries to open the original toot thread rather than the boosted thread.
Added tests for both the new mastodon-tl--as-string function and the mastodon-tl--toot-id utility.
enter mastodon mode before defining local buffer variable mastodon-tl--buffer-spec. This fixes some oddities with the local buffer variable.
|
|\
| |
| | |
Check if an id is a number before attempting to convert it. Closes #150 in main timelines
|
| |\
| |/
|/| |
|
|\ \
| | |
| | | |
Use relative time description for posting timestamps and periodically update these to keep then up-to-date
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Simplify let structure in byline generation
- Allow disabling of relative timestamps via customization
Maybe still to do:
- use of cl-macs in tests
Punted to a later PR:
- Using correct form in docstrings throughout
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For each buffer we add a timer that periodically checks all timestamps and updates them as needed.
The logic tries to be smart and
- only schedule an update when at least one timestamps display needs changing (although at the moment we update at least every 5 minutes), and
- only do a limited amount of work in each timer callback so as to not block Emacs's interactive work.
|
| | |
| | |
| | |
| | | |
This is still static, i.e. doesn't update as time progresses.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | |
| | |
| | |
| | | |
mastodon-tl--more-json work as both strings and integers
|
| |/
|/| |
|
|\ \ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
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.
|
|/ / |
|
|\|
| |
| | |
Release 0.7.0
|
| | |
|
| |\
| |/
|/| |
|
| | |
|
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
* Delete version variable and function
* Use package-file
|
| | |
|
| | |
|
| |
| |
| |
| | |
This also includes tweaks to make Travis happy — tests previously did pass on my laptop but Travis's environment is different.
|
| |
| |
| |
| |
| |
| |
| | |
images.
Having all the logic in one file reduces interdependencies.
Having default images is more pleasing during the incremental loading.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
removed tests for previous version
documented mastodon-buffer-spec getters
moved mastodon-buffer-spec to mastodon.el
combined mastodon-tl--get and mastodon-tl--init, along with other cleanups
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
changed more-json in mastodon-tl-tests to recieve an endpont
more evocative names and fixed whitespace
replaced remaining end eith endpoint-plist
added basic unit tests for endpoint selection
replaced equalp with equal in tests
|
| | |
|
| | |
|
| | |
|
| |\
| | |
| | | |
closed #79
|
| | |\ |
|
| | |\ \ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This reverts commit b0ead06b42ed06218e87a0bb75dae41570592423.
|
| | | | | |
|
| |/ / /
|/| | | |
|
| | | | |
|