aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-async.el
Commit message (Collapse)AuthorAgeFilesLines
* boilerplate maintainer contactmousebot2021-12-171-0/+2
|
* depend on emacs 27.1, flychecks, docstrings, etc.mousebot2021-12-171-10/+15
| | | | strictly, the 27.1 dependency is only for proper-list-p in -http.el.
* bump version, change homepage link, readmemousebot2021-12-171-2/+2
|
* Do a bit if `if` and `progn` sanitizing.Holger Dürer2021-11-061-3/+4
| | | | | | | - 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`.
* Convert most uses of `(cdr (assoc <some-symbol> <a-list>))` to `(alist-get ↵Holger Dürer2021-11-061-1/+1
| | | | | | | <some-symbol> <a-list>)` This is more readable and actually more efficient (maybe) since it uses `eq` rather than `equal` as a test.
* Reformat all code.Holger Dürer2021-11-061-11/+11
| | | | | | | | | | | 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-061-9/+6
| | | | | This is much cleaner than first using `defvar` immediately followed by `make-variable-buffer-local`.
* Fix compilation warnings.Holger Dürer2021-11-011-2/+12
| | | | | | | | | | | | 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.
* package-lint: bump to emacs 26.1, disable stream keybindingsmousebot2021-09-221-1/+1
|
* typo in async http-layer, unless in http process-json, typo in readmmousebot2021-06-211-1/+1
|
* fix async "local" endpoint, docstringsmousebot2021-06-071-4/+4
|
* handle error on kill async buffer, begin same on borked JSON.mousebot2021-06-051-18/+14
|
* enable async stream for user notifications.mousebot2021-06-031-27/+56
| | | | creates a notifications filter for the 'user' stream, then handles display of notifications, which have their own timeline funs.
* add basic live updates of home/local/federated timelines.mousebot2021-06-011-0/+332
the code, mastodon-async.el is taken from https://github.com/alexjgriffith/mastodon-future.el and only slightly modified to make the home stream work.