From ee5b4ed971251a989399b567bb9dfffcfce037c4 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Fri, 12 May 2017 19:12:07 +0200 Subject: [PATCH] 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."