| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
- Use special mode which sets up a sensible base keymap.
- Define the keymap just once so that users can tweak it as they wish
without us messing with that on each invocation of mastodon-mode.
|
|
|
|
|
|
|
|
|
| |
* Use auth-source-search for fetching and saving password
This gives users the ability to save their password to either the gpg-encrypted ~/.authinfo.gpg or
~/.authinfo so that they don't have to provide username/password each time
* Add a new custom var to decide whether to use the auth-source package or not.
|
|
|
|
|
|
|
| |
- Can now handle notifications (follow reblog favourite and mention)
- Tests for each of the rendering functions are included
- Added keybinding N to mastodon.el for mastodon-notifications-get
- added mastodon-notifications to ert-helper.el
|
| |
|
|
|
|
|
| |
This new functionality is bound to the 'c' key.
To help with this functionality this also changes the 'toot-json and 'toot-id properties. These are now applied to the whole toot not just the toot's byline.
|
|
|
|
|
| |
We used to be clean but have slipped recently.
Let's clean up the code so it's easier to see real code smell warnings in the compilation.
|
|
|
|
|
|
|
|
| |
* Added generalizations needed for adding notifications #37
- Made generalizations to toot and bylines to enable notifications.
- Fixed tl tests to account for the new function arguments.
- fixed whitespace
|
|
|
|
|
|
| |
* Print "No Thread\!" if there are no descendants or ancestors.
* Fixed errors for Reblog, follow and favourited notifications.
|
|
|
|
| |
functionality instead.
|
|\
| |
| | |
Merge 0.7.2 into master
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When responding to toots the full acct for both local and federated accounts are now added to the new toot buffer.
Changes
- Added a function in mastodon.el to return the current user acct
- Added mastodon-toot--process-local, which takes an acct and appends the current server if it is local returns an empty string if the acct matches the current user and does only adds a prefix @ if the acct is federated
- mastodon-toot--mentions will return a formatted string of mentions or an empty string
- adds tests for mastodon-toot--mentions
- adds a missing , in mastodon-http--post
- `mastodon-toot--reply` now passes `mastodon-toot` a toot-id rather than the whole json
- 'mastodon-toot--reply-to-id is now a local var in a new toot
|
| |
| |
| |
| |
| |
| | |
* Bump version numbers to 0.7.2
* Adjusted functions to bring line length below 90.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(#170)
* Allow user to navigate interesting things in a buffer via tabbing (tab to go forward, M-tab and S-Tab to go back).
This has always been possible while on a hyperlink but now works everywhere.
Currently only hyperlinks are tab stops but in the future we will want to support other things and there are already TODO comments in the code to note where we may want to do this.
* Add a new tab stop and link type: spoiler toggling.
This initially hides the spoiler in a toot and makes the "Content warning" a link and tab stop. The action taken is to toggle the visibility of the toot.
|
| |\
| | |
| | | |
Add new customization flag to switch between fixed width / proportional fonts.
|
| |/
| |
| |
| |
| |
| | |
proportional fonts.
The default stays as is now to use fixed width fonts.
|
| |\
| | |
| | |
| | | |
Allow user to navigate interesting things in a buffer via tabbing.
|
| |/
| |
| |
| |
| |
| |
| | |
forward, M-tab and S-Tab to go back).
This has always been possible while on a hyperlink but now works everywhere.
Currently only hyperlinks are tab stops but in the future we will want to support other things and there are already TODO comments in the code to note where we may want to do this.
|
| |\
| | |
| | | |
Keep track of to which instance secrets in plstore belong
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Alex Griffith reported ellipses in the output which seems to indicate the printing was somehow truncated.
I cannot see anywhere in the code path for plstore-save that these variables be set explictly.
See https://www.gnu.org/software/emacs/manual/html_node/elisp/Output-Variables.html for an explanation of these variables.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
While testing out issue
149 (https://github.com/jdenen/mastodon.el/issues/149) I had problems
due to stale client information being cached.
With this change we store various pieces of information (the client
information in the plstore and the auth tokens) in alists keyed by the
instance url (and the plstore key contains the instance url as well to
allow us to store data per instance).
|
| |\
| | |
| | | |
Stop url.el from spamming the user with "Connecting host: ..." messages in the minibuffer
|
| |/
| |
| |
| |
| |
| |
| | |
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 #158
|
| | |
| | |
| | |
| | |
| | |
| | | |
- 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 async loaded images check for deleted buffers
|
| |/
| |
| |
| |
| |
| | |
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
|