Appease byte-compiler senpai

This commit is contained in:
Henrik Lissner 2017-07-14 18:19:08 +02:00
parent ac514d7a0c
commit 6a5bd216e5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
12 changed files with 28 additions and 26 deletions

View file

@ -592,10 +592,11 @@ If ONLY-RECOMPILE-P is non-nil, only recompile out-of-date files."
else if (file-exists-p path) else if (file-exists-p path)
collect path))) collect path)))
(dolist (file el-files) (dolist (file el-files)
(when (or (not only-recompile-p) (when (and (not (string-match-p "/test/.+\\.el$" file))
(let ((elc-file (byte-compile-dest-file file))) (or (not only-recompile-p)
(and (file-exists-p elc-file) (let ((elc-file (byte-compile-dest-file file)))
(file-newer-than-file-p file elc-file)))) (and (file-exists-p elc-file)
(file-newer-than-file-p file elc-file)))))
(let ((result (byte-compile-file file)) (let ((result (byte-compile-file file))
(short-name (file-relative-name file doom-emacs-dir))) (short-name (file-relative-name file doom-emacs-dir)))
(cl-incf (cl-incf

View file

@ -5,8 +5,8 @@
"Mark all messages within the current selection in mu4e's header view. Uses "Mark all messages within the current selection in mu4e's header view. Uses
`this-command-keys' to see what flag you mean." `this-command-keys' to see what flag you mean."
(interactive) (interactive)
(let* ((beg (or (and (region-active-p) evil-visual-beginning) (line-beginning-position))) (let* ((beg (or beg (and (region-active-p) evil-visual-beginning) (line-beginning-position)))
(end (or (and (region-active-p) evil-visual-end) (line-end-position))) (end (or end (and (region-active-p) evil-visual-end) (line-end-position)))
(key (this-command-keys)) (key (this-command-keys))
(command (command
(car (cl-find-if (lambda (mark) (equal (car (plist-get (cdr mark) :char)) key)) (car (cl-find-if (lambda (mark) (equal (car (plist-get (cdr mark) :char)) key))

View file

@ -28,6 +28,10 @@ playback.")
(defvar +irc--defer-timer nil) (defvar +irc--defer-timer nil)
(defsubst +irc--pad (left right)
(format (format "%%%ds | %%s" +irc-left-padding)
(concat "*** " left) right))
;; ;;
;; Plugins ;; Plugins
@ -37,10 +41,6 @@ playback.")
:commands (circe circe-server-buffers) :commands (circe circe-server-buffers)
:init (setq circe-network-defaults nil) :init (setq circe-network-defaults nil)
:config :config
(defsubst +irc--pad (left right)
(format (format "%%%ds | %%s" +irc-left-padding)
(concat "*** " left) right))
(setq circe-default-quit-message nil (setq circe-default-quit-message nil
circe-default-part-message nil circe-default-part-message nil
circe-use-cycle-completion t circe-use-cycle-completion t

View file

@ -5,7 +5,7 @@
(interactive) (interactive)
(+workspace-switch "*Twitter*" t) (+workspace-switch "*Twitter*" t)
(delete-other-windows) (delete-other-windows)
(condition-case ex (condition-case _ex
(progn (progn
(call-interactively #'twit) (call-interactively #'twit)
(unless (get-buffer (car twittering-initial-timeline-spec-string)) (unless (get-buffer (car twittering-initial-timeline-spec-string))

View file

@ -20,7 +20,7 @@
;; TODO Find a more elegant solution ;; TODO Find a more elegant solution
;; FIXME Causes realgud:cmd-* to focus popup on every invocation ;; FIXME Causes realgud:cmd-* to focus popup on every invocation
(defun +debug*realgud-run-process (defun +debug*realgud-run-process
(debugger-name script-filename cmd-args minibuffer-history &optional no-reset) (debugger-name script-filename cmd-args minibuffer-history-var &optional no-reset)
(let* ((cmd-buf (apply #'realgud-exec-shell debugger-name script-filename (let* ((cmd-buf (apply #'realgud-exec-shell debugger-name script-filename
(car cmd-args) no-reset (cdr cmd-args))) (car cmd-args) no-reset (cdr cmd-args)))
(process (get-buffer-process cmd-buf))) (process (get-buffer-process cmd-buf)))
@ -36,8 +36,8 @@
(let* ((info realgud-cmdbuf-info) (let* ((info realgud-cmdbuf-info)
(cmd-args (realgud-cmdbuf-info-cmd-args info)) (cmd-args (realgud-cmdbuf-info-cmd-args info))
(cmd-str (mapconcat #'identity cmd-args " "))) (cmd-str (mapconcat #'identity cmd-args " ")))
(set minibuffer-history (set minibuffer-history-var
(list-utils-uniq (cons cmd-str (eval minibuffer-history)))))))) (list-utils-uniq (cons cmd-str (eval minibuffer-history-var))))))))
(t (t
(if cmd-buf (switch-to-buffer cmd-buf)) (if cmd-buf (switch-to-buffer cmd-buf))
(message "Error running command: %s" (mapconcat #'identity cmd-args " ")))) (message "Error running command: %s" (mapconcat #'identity cmd-args " "))))

View file

@ -170,12 +170,7 @@ across windows."
(def-package! evil-easymotion (def-package! evil-easymotion
:after evil-snipe :after evil-snipe
:config :commands evilem-create)
(defvar +evil--snipe-repeat-fn
(evilem-create #'evil-snipe-repeat
:bind ((evil-snipe-scope 'whole-buffer)
(evil-snipe-enable-highlight)
(evil-snipe-enable-incremental-highlight)))))
(def-package! evil-embrace (def-package! evil-embrace

View file

@ -6,7 +6,7 @@
(defun +jump-to (prop identifier &optional other-window) (defun +jump-to (prop identifier &optional other-window)
(with-selected-window (with-selected-window
(if other-window (if other-window
(save-excursion (other-window) (selected-window)) (save-excursion (other-window 1) (selected-window))
(selected-window)) (selected-window))
(let ((fn (plist-get +jump-current-functions prop))) (let ((fn (plist-get +jump-current-functions prop)))
(if (commandp fn) (if (commandp fn)

View file

@ -10,6 +10,7 @@
(git-link--remote-dir remote)) (git-link--remote-dir remote))
(error "Remote `%s' is unknown or contains an unsupported URL" remote)))) (error "Remote `%s' is unknown or contains an unsupported URL" remote))))
(defvar git-link-open-in-browser)
;;;###autoload ;;;###autoload
(defun +vcs/git-browse () (defun +vcs/git-browse ()
"Open the website for the current version controlled file. Fallback to "Open the website for the current version controlled file. Fallback to

View file

@ -1,4 +1,5 @@
;;; feature/workspaces/test/autoload-workspaces.el -*- lexical-binding: t; -*- ;; -*- no-byte-compile: t; -*-
;;; feature/workspaces/test/autoload-workspaces.el
(require! :feature workspaces) (require! :feature workspaces)

View file

@ -52,8 +52,7 @@
(:prefix "i" (:prefix "i"
:nv "t" #'markdown-toc-generate-toc :nv "t" #'markdown-toc-generate-toc
:nv "i" #'markdown-insert-image :nv "i" #'markdown-insert-image
:nv "l" #'markdown-insert-inline-link-dwim :nv "l" #'markdown-insert-link))))
:nv "L" #'markdown-insert-reference-link-dwim))))
(def-package! markdown-toc (def-package! markdown-toc

View file

@ -1,4 +1,5 @@
;;; lang/web/test/autoload-html.el -*- lexical-binding: t; -*- ;; -*- no-byte-compile: t; -*-
;;; lang/web/test/autoload-html.el
(def-test! encode-entities (def-test! encode-entities
(should (equal (+web-encode-entities "Hello world") (should (equal (+web-encode-entities "Hello world")

View file

@ -440,7 +440,11 @@
;; Binding to switch to evil-easymotion/avy after a snipe ;; Binding to switch to evil-easymotion/avy after a snipe
:map evil-snipe-parent-transient-map :map evil-snipe-parent-transient-map
"C-;" (λ! (require 'evil-easymotion) "C-;" (λ! (require 'evil-easymotion)
(call-interactively +evil--snipe-repeat-fn))) (call-interactively
(evilem-create #'evil-snipe-repeat
:bind ((evil-snipe-scope 'whole-buffer)
(evil-snipe-enable-highlight)
(evil-snipe-enable-incremental-highlight))))))
;; evil-surround ;; evil-surround
:v "S" #'evil-surround-region :v "S" #'evil-surround-region