Skip to content

Commit

Permalink
fix: fix some byte compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 28, 2023
1 parent 0921dbf commit 7a46079
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions elisp/+emacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ be deleted.
;; Or default to the built-in `tab-bar'.
(when-let ((tab-num (seq-position (tab-bar-tabs) ,tab-name (lambda (tab name) (string= name (alist-get 'name tab))))))
(tab-close (1+ tab-num)))))))
(when exit-func (add-to-list 'fn-body `(advice-add ',exit-func :after #',exit-fn-name) t))
(when exit-hook (add-to-list 'fn-body `(add-hook ',exit-hook #',exit-fn-name) t)))
(when exit-func
(setq fn-body (append fn-body `((advice-add ',exit-func :after #',exit-fn-name)))))
(when exit-hook
(setq fn-body (append fn-body `((add-hook ',exit-hook #',exit-fn-name))))))
`(progn
(defvar ,tab-name ,(format "*%s*" cmd))
(defun ,fn-name ()
Expand Down
4 changes: 1 addition & 3 deletions elisp/+primitives.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
(while (length> key-vals 0)
(let ((key (pop key-vals))
(val (pop key-vals)))
(add-to-list
'out
`(setq ,plist (plist-put ,plist ,key ,val)) t)))
(setq out (append out `((setq ,plist (plist-put ,plist ,key ,val)))))))
out))

;;;###autoload
Expand Down
2 changes: 1 addition & 1 deletion modules/extras/me-spell-fu.el
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
(let* ((fn-name (intern (format "+spell-fu--multi-langs-%s-h" (string-join langs "-"))))
(closure `(defun ,fn-name ())))
(dolist (lang langs)
(add-to-list 'closure `(+spell-fu--add-dictionary ,lang) t))
(setq closure (append closure `((+spell-fu--add-dictionary ,lang)))))
(append '(add-hook (quote spell-fu-mode-hook)) (list closure))))

;;;###autoload
Expand Down

0 comments on commit 7a46079

Please sign in to comment.