diff options
author | Tom Willemse | 2021-06-24 21:19:25 -0700 |
---|---|---|
committer | Tom Willemse | 2021-06-24 21:19:25 -0700 |
commit | 7b5322b3132d3876eb8037b7735035fb72e7342e (patch) | |
tree | 94150ad4b3e9767a31db1e1a1e93dd006b35dce1 /tekuti.el | |
parent | 0aee0a36313fcfe04f09b1ec891ad07d088c79b6 (diff) | |
download | tekuti-el-7b5322b3132d3876eb8037b7735035fb72e7342e.tar.gz tekuti-el-7b5322b3132d3876eb8037b7735035fb72e7342e.zip |
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.
Diffstat (limited to 'tekuti.el')
-rw-r--r-- | tekuti.el | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,6 +4,7 @@ ;; Author: Tom Willemse <chelys@data> ;; 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 |