Linting Elisp

TL;DR:
- Prefer cl-lib
- Prefer spaces to tabs
- Resolve various checkdoc complaints
This commit is contained in:
William Carroll 2020-09-02 15:23:46 +01:00
parent ea274f924a
commit f089f3c550
11 changed files with 23 additions and 21 deletions

View file

@ -15,7 +15,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'maybe)
(require 'cl-macs)
(require 'cl-lib)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Constants
@ -31,7 +31,6 @@
;; TODO: Support all three arguments.
;; Int -> Int -> Int -> Boolean
(cl-defun math-triangle-of-power (&key base power result)
;; TODO: Assert two of three are set.
(cond
((maybe-somes? base power result)
(error "All three arguments should not be set"))