[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste e7fed98 246/298: Reindent entire webpaste.el to m
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste e7fed98 246/298: Reindent entire webpaste.el to match updated indentation style |
Date: |
Thu, 9 Dec 2021 19:00:23 -0500 (EST) |
branch: elpa/webpaste
commit e7fed98c30e960911426be054bad183fd1ab6a37
Author: Elis Hirwing <elis@hirwing.se>
Commit: Elis Hirwing <elis@hirwing.se>
Reindent entire webpaste.el to match updated indentation style
---
webpaste.el | 55 ++++++++++++++++++++++++++++---------------------------
1 file changed, 28 insertions(+), 27 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 3665a38..8a8532d 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -132,16 +132,16 @@ This uses `browse-url-generic' to open URLs."
:uri "https://api.github.com/gists"
:post-field nil
:post-field-lambda (lambda () (cl-function (lambda (&key text
&allow-other-keys)
- (let ((filename (or
(file-name-nondirectory (buffer-file-name)) "file.txt")))
- (json-encode `(("description" .
"Pasted from Emacs with webpaste.el")
- ("public" .
"false")
- ("files" .
- ((,filename .
-
(("content" . ,text)))))))))))
+ (let ((filename (or
(file-name-nondirectory (buffer-file-name)) "file.txt")))
+ (json-encode
`(("description" . "Pasted from Emacs with webpaste.el")
+ ("public" .
"false")
+ ("files" .
+
((,filename .
+
(("content" . ,text)))))))))))
:success-lambda (lambda () (cl-function (lambda (&key data
&allow-other-keys)
- (when data
- (webpaste--return-url
- (cdr (assoc 'html_url
(json-read-from-string data)))))))))
+ (when data
+ (webpaste--return-url
+ (cdr (assoc 'html_url
(json-read-from-string data)))))))))
("paste.pound-python.org"
:uri "https://paste.pound-python.org/"
@@ -254,10 +254,10 @@ precalculated, and also available both for pre and post
request access.")
(cl-defun webpaste--providers-default-post-field-lambda ()
"Predefined lambda for building post fields."
(cl-function (lambda (&key text
- post-field
- provider-uri
- (post-lang-field-name nil)
- (post-data '()))
+ post-field
+ provider-uri
+ (post-lang-field-name nil)
+ (post-data '()))
(cl-pushnew (cons post-field text) post-data)
;; Fetch language name for this provider
@@ -283,17 +283,18 @@ precalculated, and also available both for pre and post
request access.")
lang-alist))
-(cl-defun webpaste--provider (&key uri
- post-field
- success-lambda
- (type "POST")
- (post-data '())
- (post-lang-field-name nil)
- (parser 'buffer-string)
- (lang-overrides '())
- (lang-uri-separator nil)
- (error-lambda
'webpaste--providers-error-lambda)
- (post-field-lambda
'webpaste--providers-default-post-field-lambda))
+(cl-defun webpaste--provider
+ (&key uri
+ post-field
+ success-lambda
+ (type "POST")
+ (post-data '())
+ (post-lang-field-name nil)
+ (parser 'buffer-string)
+ (lang-overrides '())
+ (lang-uri-separator nil)
+ (error-lambda 'webpaste--providers-error-lambda)
+ (post-field-lambda 'webpaste--providers-default-post-field-lambda))
"Function to create the lambda function for a provider.
Usage:
@@ -362,8 +363,8 @@ Optional params:
(cl-function
(lambda (text
- &key
- (sync nil))
+ &key
+ (sync nil))
"Paste TEXT to provider. Force SYNC if needed for debugging."
(prog1 nil
@@ -415,7 +416,7 @@ Example: For \"#!/usr/bin/env bash\", 'bash-mode is
returned.
(let* ((end-of-first-line (save-excursion
(save-restriction
- (widen)
+ (widen)
(goto-char (point-min))
(end-of-line 1)
(point))))
- [nongnu] elpa/webpaste 935eb5f 195/298: Remove :tangle yes from README, (continued)
- [nongnu] elpa/webpaste 935eb5f 195/298: Remove :tangle yes from README, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 5c63d75 196/298: Added unit test for running hooks on return, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6114da7 208/298: Refactor how integration tests are triggered, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9d026d6 212/298: Remove emacs-24.3 from build target, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cf2ea41 218/298: Update heading levels and add a TOC, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7c3bc88 215/298: Remove unused local variable, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9972cf4 224/298: Fix some checkdock warnings, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b1cdedb 213/298: Simplify travis file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bd38635 253/298: [readme] Add two new suggestions for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 01c2858 261/298: Fix typos, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e7fed98 246/298: Reindent entire webpaste.el to match updated indentation style,
ELPA Syncer <=
- [nongnu] elpa/webpaste 9d3c866 233/298: WP-25: Implement support for raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ef33b0f 269/298: Fix provider definition issue and add test for paste.mozilla.org, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b713d5e 259/298: travis: Drop tests for versions where cask seems to be incompatible, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2decf1e 276/298: Revert "Fix bug in webpaste-paste-buffer-or-region when you don't have a region", ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1600425 291/298: Merge branch 'dsedivec-master', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bbdc5e5 296/298: providers: Drop paste.pound-python.org, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 49a7123 236/298: Add missing TOC link about raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e0a35fd 232/298: WP-25: Add test for raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 5505685 226/298: Drop simpleclip support, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7397cbc 220/298: Fix duplicate elements added to alists, ELPA Syncer, 2021/12/09