[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 0760361 278/298: docs: Fix all warnings regarding
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 0760361 278/298: docs: Fix all warnings regarding docstrings |
Date: |
Thu, 9 Dec 2021 19:00:29 -0500 (EST) |
branch: elpa/webpaste
commit 0760361676643008d67ab4fa75b000b5ab9455a4
Author: Elis Hirwing <elis@hirwing.se>
Commit: Elis Hirwing <elis@hirwing.se>
docs: Fix all warnings regarding docstrings
---
webpaste.el | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 42a9595..10d8847 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -232,7 +232,8 @@ loops. This variable is reset on each new paste.")
;;; Predefined error lambda for providers
(cl-defun webpaste--providers-error-lambda (&key text)
- "Predefined error callback for providers that always does failover."
+ "Predefined error that pastes TEXT to next provider.
+This is the default failover hook that we use for most providers."
(cl-function (lambda (&key error-thrown &allow-other-keys)
(message "Got error: %S" error-thrown)
(webpaste--paste-text text))))
@@ -333,23 +334,23 @@ Required params:
custom one used for the gist.github.com provider.
Optional params:
-:type HTTP Request type, defaults to POST.
+:type HTTP Request TYPE, defaults to POST.
-:post-data Default post fields sent to service. Defaults to nil.
+:post-data Default post fields sent to service. Defaults to nil.
:post-lang-field-name Fieldname for defining which language your paste should
use to the provider.
-:lang-overrides Alist defining overrides for languages for this provider. If
+:lang-overrides Alist defining overrides for languages for this provider.
If
a mode is set to nil, it will use fundamental-mode's value
as
- fallback. Fundamental-mode's value can also be overridden.
+ fallback. Fundamental-mode's value can also be overridden.
:lang-uri-separator Lang URI separator. This is used for providers that
appends the language to the end of the resulting URI and
needs a separator between language and link.
-:parser Defines how request.el parses the result. Look up :parser
for
- `request'. This defaults to 'buffer-string.
+:parser Defines how request.el parses the result. Look up :parser
for
+ `request'. This defaults to 'buffer-string.
:error-lambda Callback sent to `request', look up how to write these in
the
documentation for `request'. The default value for this is
@@ -360,13 +361,14 @@ Optional params:
:post-field-lambda Function that builds and returns the post data that should
be
sent to the provider. It should accept named parameters by
the names TEXT, POST-FIELD and POST-DATA. POST-DATA should
- default to `nil' or empty list. It also takes the option
+ default to 'nil' or empty list. It also takes the option
LANG-OVERRIDES which is a list that enables overriding of
`webpaste--default-lang-alist'.
TEXT contains the data that should be sent.
POST-FIELD contains the name of the field to be sent.
- POST-DATA contains predefined fields that the provider
needs."
+ POST-DATA contains predefined fields that the provider
needs.
+ SUCCESS-LAMBDA contains the function to run on an
successful paste."
;; If we get a separator sent to the function, append it to the list of
;; separators for later use
(when lang-uri-separator
@@ -575,7 +577,8 @@ Argument MARK Current mark."
;;;###autoload
(cl-defun webpaste-paste-buffer-or-region (&optional point mark)
- "Paste current buffer or selected region to some paste service"
+ "Paste current buffer or selected region to some paste service.
+Takes optional POINT and MARK to paste a region."
(interactive "r")
;; if region is selected
- [nongnu] elpa/webpaste 6a02ff9 185/298: Added tests for error lambdas and failovers, (continued)
- [nongnu] elpa/webpaste 6a02ff9 185/298: Added tests for error lambdas and failovers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bf08207 211/298: Update my name due to legal namechange, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 14fd97b 225/298: Add deprecation message of simpleclip option to clean up the code, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b6f8005 216/298: Do not fallback to true if test fails, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cd66756 241/298: Detect lang from shebang, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1787ea7 249/298: bugfix in "gist.github.com" entry of webpaste-providers-alist, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9da4eca 258/298: travis: Switch to nix-emacs-ci, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7d08f87 254/298: integration-tests: Change filtering of local/ci provider tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste afbcf6f 273/298: Merge branch 'comfort-paste', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4e410b0 272/298: Add example config to README with 'pasting buffer OR region' function, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0760361 278/298: docs: Fix all warnings regarding docstrings,
ELPA Syncer <=
- [nongnu] elpa/webpaste 5e963e8 275/298: Fix bug in webpaste-paste-buffer-or-region when you don't have a region, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9662b1c 280/298: Bump version number and copyright year, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 3c9d2e8 284/298: Merge branch 'github-actions', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4ec1645 297/298: Readme: Update branch name, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 92a5867 088/298: Spaces, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ca539eb 101/298: Rename and update tests for provider priority, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ee5b4ed 141/298: Move function declaration of the get-lang-alist-with-overrides function up, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0df8ea0 144/298: Hide some options from customize, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7bd2cec 148/298: Added support to open created pastes in browser, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d37a904 160/298: Fix POST bug for several providers, ELPA Syncer, 2021/12/09