From 7b5322b3132d3876eb8037b7735035fb72e7342e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 24 Jun 2021 21:19:25 -0700 Subject: [PATCH] Fix some warnings - Add dependency on org-mode in case I ever install this as a package. - Require org for `org-collect-keywords', `org-timestamp-to-time', `org-timestamp-from-string', and `org-html-export-as-html'. - Move definition of `tekuti-host' to before it's used. - Rename `args' to `_' to signify it's not used for anything. --- tekuti.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tekuti.el b/tekuti.el index bf9a805..5683b10 100644 --- a/tekuti.el +++ b/tekuti.el @@ -4,6 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: comm +;; Package-Requires: (org) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -39,6 +40,10 @@ ;;; Code: +(require 'org) + +(defvar tekuti-host "http://127.0.0.1:8080") + (defun tekuti--format-date (date) "Format DATE into a date that tekuti understands." (format-time-string "%a, %d %b %Y %H:%M:%S %Z" @@ -83,9 +88,7 @@ `(("Content-Type" . "application/x-www-form-urlencoded"))) (url-request-data (tekuti-form-encode-data data))) (url-retrieve (format "%s/admin/new-post" tekuti-host) - (lambda (status &rest args) (message "Finished: %s" status))))) - -(defvar tekuti-host "http://127.0.0.1:8080") + (lambda (status &rest _) (message "Finished: %s" status))))) (provide 'tekuti) ;;; tekuti.el ends here