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

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

[nongnu] elpa/webpaste ee5b4ed 141/298: Move function declaration of the


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste ee5b4ed 141/298: Move function declaration of the get-lang-alist-with-overrides function up
Date: Thu, 9 Dec 2021 19:00:01 -0500 (EST)

branch: elpa/webpaste
commit ee5b4ed971251a989399b567bb9dfffcfce037c4
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>

    Move function declaration of the get-lang-alist-with-overrides function up
---
 webpaste.el | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/webpaste.el b/webpaste.el
index 0fd17ec..fc7d717 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -138,6 +138,20 @@ each run.")
 
 
 
+(defun webpaste/get-lang-alist-with-overrides (overrides)
+  "Fetches lang-alist with OVERRIDES applied."
+
+  ;; Copy original list to temporary list
+  (let ((lang-alist webpaste/default-lang-alist))
+    ;; Go through list of overrides and append them to the temporary list
+    (dolist (override-element overrides)
+      (cl-pushnew override-element lang-alist))
+
+    ;; Return temporary list
+    lang-alist))
+
+
+
 (cl-defun webpaste-provider (&key uri
                                   post-field
                                   success-lambda
@@ -286,20 +300,6 @@ return it to the user."
 
 
 
-(defun webpaste/get-lang-alist-with-overrides (overrides)
-  "Fetches lang-alist with OVERRIDES applied."
-
-  ;; Copy original list to temporary list
-  (let ((lang-alist webpaste/default-lang-alist))
-    ;; Go through list of overrides and append them to the temporary list
-    (dolist (override-element overrides)
-      (cl-pushnew override-element lang-alist))
-
-    ;; Return temporary list
-    lang-alist))
-
-
-
 (defun webpaste/get-provider-priority ()
   "Return provider priority."
 



reply via email to

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