| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Fix `url-automatic-caching` to use `t` rather than
`sx-request-cache-p` (used in tests only).
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
resolved.
Logic and functions have been kept from the `cl-defun` `sx-method-call`
while docstrings have been updated as per #77 when possible.
Conflicts:
sx-auth.el
sx-method.el
sx-question.el
sx-request.el
|
| |\
| | |
| | | |
Documentation
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |\
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
sx-method.el
sx-question-list.el
sx-question-mode.el
sx-question.el
sx-request.el
sx.el
|
| | |
| | |
| | |
| | |
| | | |
Removed developer reference since this should be embedded in docstrings
for the most part.
|
| | |
| | |
| | |
| | | |
Source code is documented to the best of my knowledge and understanding.
|
| | |
| | |
| | |
| | |
| | |
| | | |
We aren't using `stack-filter' anymore (in fact, we haven't since
filters became functional). Somehow it survived refactoring; this
commit fixes that oversight.
|
| | |
| | |
| | |
| | | |
Pushing this change to continue work elsewhere.
|
| | |
| | |
| | |
| | | |
Pushing this change to continue work elsewhere.
|
| | |
| | |
| | |
| | |
| | | |
sx-request-make returns a nested list (or vector of lists). Return
`'(())` to ensure it is an acceptable response.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Initializing will retrieve user preferences/authentication. We do not
need this.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
sx-question now includes 2 authentication requiring parameters,
`question.upvoted` and `question.downvoted`. These will only be used if
access token exists.
sx-favorites still uses site-workaround pending #82.
|
| | |
| | |
| | |
| | |
| | |
| | | |
specified (for network-wide searches).
Remove :warning, drop back to :debug
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Now requires `'sx-auth` to account for authentication.
(sx-method-call) is now defined using `cl-defun` and uses keys rather
than positional arguments.
Authentication logic is performed in `sx-method-call` to ensure commands
are only passed on once they are needed.
When access token is available:
- Filters will be used as provided
- Methods will be called
When access token is unavailable:
- Filters will downgrade to only request object that do not require
auth.
- Methods will instead use `sx-request-fallback` and return nil.
If auth is not specified but is required, `sx-method-call` will throw an
error. If auth is specified as `'warn`, `user-error` will be called.
(sx-request--build-keyword-arguments) has been simplified. It will
always pass an available access_token (api indicates doing so will use a
user/key quota rather than simply key quota).
(sx-request-make) now performs url retrieval directly. Query
construction is all performed by `sx-method-call`.
|
| | |
| | |
| | |
| | |
| | | |
Logic now verifies `include` if `include`,`exclude`,`base` is used.
Otherwise verify entire filter.
|
| | | |
|
| | |
| | |
| | |
| | | |
specified.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
sx-auth-filter-auth now returns a filter that will not require auth for
use when auth not available.
Add a few known auth-required types.
|
|/ /
| |
| |
| |
| | |
Currently no filter items are defined pending confirmation of which
require it.
|
| | |
|
| |
| |
| |
| | |
Also run checkdoc on sx.el
|
|\ \
| | |
| | | |
Mark as read with "m"
|
|/ /
| |
| |
| | |
Fixes #61
|
|\ \
| | |
| | | |
Hidden questions
|
| |\ \ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Also improve read question code.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Provide cache invalidation
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(sx-cache--invalidate): Invalidate provided cache. Allows for
invalidating variables associated with cache using `makunbound`. Cache
can be reinitialized using arg `init-method`.
(sx-cache-invalidate-all): Invalidate all caches then call
`sx-initialize` to reinitialize. Arg `save-auth` prevents access_token
from being lost.
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Implements indication of starred questions in question-list
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
`sx-question-list-favorite` inherits face from
`sx-question-list-score-upvoted`
Favorite is displayed using char \x2b26 WHITE MEDIUM DIAMOND.
|
|\ \ \ \
| |/ / /
|/| | | |
Update sx-networks and sx-favorites to use sx-initialize
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Simplify initialization since it is run at startup rather than tested
for by functions.
Clean up (sx-favorites--update-site-favorites) to provide the same
values for new sites as for existing.
|
| | | | |
|