Skip to content

Commit

Permalink
fix: Silence byte-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Jul 21, 2024
1 parent 949bb49 commit c895a17
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
9 changes: 7 additions & 2 deletions nix3-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,20 @@

;;; Code:

(eval-when-compile
(require 'rx))
(require 'subr-x)
(require 'map)

(declare-function string-remove-suffix "subr-x")

(defgroup nix3 nil
"Interface to experimental commands of Nix."
:prefix "nix3-"
:group 'nix)

(defgroup nix3-face nil
"Faces for nix3."
:group 'nix3)

;;;; Custom variables

(defcustom nix3-nix-executable "nix"
Expand Down
6 changes: 4 additions & 2 deletions nix3-flake-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@

(defface nix3-flake-lock-file-heading
'((t (:inherit magit-diff-file-heading)))
"Face for flake.lock file paths.")
"Face for flake.lock file paths."
:group 'nix3-face)

(defface nix3-flake-lock-node-heading
'((t (:inherit magit-section-heading)))
"Face for flake.lock nodes.")
"Face for flake.lock nodes."
:group 'nix3-face)

;;;;

Expand Down
6 changes: 3 additions & 3 deletions nix3-help.el
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
(error "Failed to parse nix --help"))
(goto-char (point-min))
(re-search-forward start-heading)
(delete-region (point-min) (pos-eol))
(delete-region (point-min) (line-end-position))
(when end-heading
(re-search-forward end-heading)
(delete-region (pos-bol) (point-max)))
(delete-region (line-beginning-position) (point-max)))
(goto-char (point-min))
;; Parse outputs
(while (re-search-forward regexp nil t)
(delete-region (pos-bol) (pos-eol)))
(delete-region (line-beginning-position) (line-end-position)))
(goto-char (point-min))
(let (last-end
outputs)
Expand Down
1 change: 1 addition & 0 deletions nix3-transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
(require 'nix3-core)
(require 'nix3-utils)
(require 'nix3-browse-url)
(require 'pp)

(declare-function nix3-realise-and-show-store "nix3")
(declare-function nix3-vterm-shell-command "nix3-utils")
Expand Down
2 changes: 2 additions & 0 deletions nix3-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
(require 'cl-lib)
(require 'subr-x)
(require 'nix3-core)
(eval-when-compile
(require 'rx))

(declare-function vterm "ext:vterm")
(declare-function vterm-send-string "ext:vterm")
Expand Down

0 comments on commit c895a17

Please sign in to comment.