aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix docstring/argument list ordering (mistake during merge).Jonathan Leech-Pepin2014-11-211-3/+3
| | | | | Fix `url-automatic-caching` to use `t` rather than `sx-request-cache-p` (used in tests only).
* Update docstring to reflect uses of `AUTH`.Jonathan Leech-Pepin2014-11-211-0/+15
|
* Merge branch 'master' into sx-method-auth. Conflicts have beenJonathan Leech-Pepin2014-11-2117-201/+505
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge pull request #77 from vermiculus/documentationSean Allred2014-11-2017-226/+522
| |\ | | | | | | Documentation
| | * Reflect new purpose of sx.orgSean Allred2014-11-201-4/+6
| | |
| | * GitHub comments -- #77Sean Allred2014-11-2014-124/+54
| | |
| | * Use `user-error' when there's no question at pointSean Allred2014-11-192-1/+2
| | |
| | * Follow package.el conventionSean Allred2014-11-191-2/+2
| | |
| | * Provide alias for `sx-auth-authenticate'Sean Allred2014-11-191-0/+2
| | |
| | * Enhance documentationSean Allred2014-11-193-5/+11
| | |
| | * Remove -cache-pSean Allred2014-11-191-6/+1
| | |
| | * Minor typos and incorrect informationSean Allred2014-11-196-12/+7
| | |
| | * Add `customize' dataSean Allred2014-11-193-4/+12
| | |
| | * Merge branch 'master' into documentationSean Allred2014-11-1910-148/+584
| | |\ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Conflicts: sx-method.el sx-question-list.el sx-question-mode.el sx-question.el sx-request.el sx.el
| | * Update user manualSean Allred2014-11-181-92/+5
| | | | | | | | | | | | | | | Removed developer reference since this should be embedded in docstrings for the most part.
| | * Documentation -- part threeSean Allred2014-11-186-42/+101
| | | | | | | | | | | | Source code is documented to the best of my knowledge and understanding.
| | * Simplify `sx-method-call'Sean Allred2014-11-181-6/+2
| | | | | | | | | | | | | | | | | | 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.
| | * Documentation -- part twoSean Allred2014-11-185-36/+67
| | | | | | | | | | | | Pushing this change to continue work elsewhere.
| | * Documentation -- part oneSean Allred2014-11-1711-96/+436
| | | | | | | | | | | | Pushing this change to continue work elsewhere.
* | | Properly return a nil entry when falling backJonathan Leech-Pepin2014-11-201-1/+1
| | | | | | | | | | | | | | | sx-request-make returns a nested list (or vector of lists). Return `'(())` to ensure it is an acceptable response.
* | | Typo fix.Jonathan Leech-Pepin2014-11-201-1/+1
| | |
* | | Do not initialize Stack-Mode.Jonathan Leech-Pepin2014-11-201-0/+1
| | | | | | | | | | | | | | | Initializing will retrieve user preferences/authentication. We do not need this.
* | | Fix auth settings in calls. Do not use 'warn in non-interactive commands.Jonathan Leech-Pepin2014-11-204-4/+4
| | |
* | | Uses of `sx-method-call` have been updated to use new format.Jonathan Leech-Pepin2014-11-204-20/+24
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Remove default site specification. Defaults to nil if notJonathan Leech-Pepin2014-11-201-2/+2
| | | | | | | | | | | | | | | | | | specified (for network-wide searches). Remove :warning, drop back to :debug
* | | sx-method-call rewritten and associated improvements in sx-request.Jonathan Leech-Pepin2014-11-202-61/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* | | Improve method for returning clean filter.Jonathan Leech-Pepin2014-11-201-12/+21
| | | | | | | | | | | | | | | Logic now verifies `include` if `include`,`exclude`,`base` is used. Otherwise verify entire filter.
* | | Do not actually need to check for no submethods. Already tested for.Jonathan Leech-Pepin2014-11-201-2/+1
| | |
* | | Fix sx-auth--method-p to work correctly when there is no submethodJonathan Leech-Pepin2014-11-201-2/+4
| | | | | | | | | | | | specified.
* | | Fix filter logic to account for alist of properties.Jonathan Leech-Pepin2014-11-201-11/+22
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Implement checking for filter and method authentication requirement.Jonathan Leech-Pepin2014-11-191-0/+68
|/ / | | | | | | | | Currently no filter items are defined pending confirmation of which require it.
* | Fix missing dependencyArtur Malabarba2014-11-191-1/+1
| |
* | Add some package definitions.Artur Malabarba2014-11-191-12/+31
| | | | | | | | Also run checkdoc on sx.el
* | Merge pull request #76 from vermiculus/mark-read-keySean Allred2014-11-181-0/+13
|\ \ | | | | | | Mark as read with "m"
| * | Mark as read with "m"Artur Malabarba2014-11-191-0/+13
|/ / | | | | | | Fixes #61
* | Merge pull request #71 from vermiculus/hidden-questionsSean Allred2014-11-183-4/+78
|\ \ | | | | | | Hidden questions
| * \ Merge branch 'master' into hidden-questionsArtur Malabarba2014-11-182-57/+79
| |\ \
| * | | Hidden question functionality implemented in the question listArtur Malabarba2014-11-181-1/+14
| | | |
| * | | Implement hidden question databaseArtur Malabarba2014-11-181-3/+49
| | | | | | | | | | | | | | | | Also improve read question code.
| * | | Define sorted insertion macro.Artur Malabarba2014-11-181-0/+15
| | | |
* | | | Merge pull request #73 from jleechpe/invalidate-cacheSean Allred2014-11-181-0/+25
|\ \ \ \ | | | | | | | | | | Provide cache invalidation
| * | | | Use `cl-remove-if` rather than `remove-if`Jonathan Leech-Pepin2014-11-181-1/+1
| | | | |
| * | | | Fix docstring.Jonathan Leech-Pepin2014-11-181-2/+1
| | | | |
| * | | | Provide cache invalidationJonathan Leech-Pepin2014-11-181-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* | | | | QUICK-FIX: Link regexp Fixes #74Artur Malabarba2014-11-181-1/+1
| | | | |
* | | | | Merge pull request #72 from jleechpe/sx-questions-show-favoriteArtur Malabarba2014-11-181-26/+38
|\ \ \ \ \ | |/ / / / |/| | | | Implements indication of starred questions in question-list
| * | | | Implements indication of starred questions in question-listJonathan Leech-Pepin2014-11-181-26/+38
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | `sx-question-list-favorite` inherits face from `sx-question-list-score-upvoted` Favorite is displayed using char \x2b26 WHITE MEDIUM DIAMOND.
* | | | Merge pull request #70 from jleechpe/sx-networksSean Allred2014-11-182-34/+34
|\ \ \ \ | |/ / / |/| | | Update sx-networks and sx-favorites to use sx-initialize
| * | | Replace (sx-favorites--ensure-favorite-list) with (sx-favorites--initialize).Jonathan Leech-Pepin2014-11-181-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Correct naming of cache to correspond to sx-cache-get.Jonathan Leech-Pepin2014-11-181-1/+1
| | | |