emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste 1787ea7 249/298: bugfix in "gist.github.com" entr


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 1787ea7 249/298: bugfix in "gist.github.com" entry of webpaste-providers-alist
Date: Thu, 9 Dec 2021 19:00:23 -0500 (EST)

branch: elpa/webpaste
commit 1787ea77429e2e6984faeed6d7cd7608f3285a4d
Author: vapniks <vapniks@yahoo.com>
Commit: GitHub <noreply@github.com>

    bugfix in "gist.github.com" entry of webpaste-providers-alist
---
 webpaste.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/webpaste.el b/webpaste.el
index c9557fa..c17c520 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -132,7 +132,9 @@ 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")))
+                                                  (let ((filename (if 
(buffer-file-name) 
+                                                                      
(file-name-nondirectory (buffer-file-name)) 
+                                                                    
"file.txt")))
                                                     (json-encode 
`(("description" . "Pasted from Emacs with webpaste.el")
                                                                    ("public" . 
"false")
                                                                    ("files" .



reply via email to

[Prev in Thread] Current Thread [Next in Thread]