Skip to content

Commit c895a17

Browse files
committed
fix: Silence byte-compiler
1 parent 949bb49 commit c895a17

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

nix3-core.el

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,20 @@
2929

3030
;;; Code:
3131

32+
(eval-when-compile
33+
(require 'rx))
34+
(require 'subr-x)
3235
(require 'map)
3336

34-
(declare-function string-remove-suffix "subr-x")
35-
3637
(defgroup nix3 nil
3738
"Interface to experimental commands of Nix."
3839
:prefix "nix3-"
3940
:group 'nix)
4041

42+
(defgroup nix3-face nil
43+
"Faces for nix3."
44+
:group 'nix3)
45+
4146
;;;; Custom variables
4247

4348
(defcustom nix3-nix-executable "nix"

nix3-flake-lock.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@
5050

5151
(defface nix3-flake-lock-file-heading
5252
'((t (:inherit magit-diff-file-heading)))
53-
"Face for flake.lock file paths.")
53+
"Face for flake.lock file paths."
54+
:group 'nix3-face)
5455

5556
(defface nix3-flake-lock-node-heading
5657
'((t (:inherit magit-section-heading)))
57-
"Face for flake.lock nodes.")
58+
"Face for flake.lock nodes."
59+
:group 'nix3-face)
5860

5961
;;;;
6062

nix3-help.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@
6161
(error "Failed to parse nix --help"))
6262
(goto-char (point-min))
6363
(re-search-forward start-heading)
64-
(delete-region (point-min) (pos-eol))
64+
(delete-region (point-min) (line-end-position))
6565
(when end-heading
6666
(re-search-forward end-heading)
67-
(delete-region (pos-bol) (point-max)))
67+
(delete-region (line-beginning-position) (point-max)))
6868
(goto-char (point-min))
6969
;; Parse outputs
7070
(while (re-search-forward regexp nil t)
71-
(delete-region (pos-bol) (pos-eol)))
71+
(delete-region (line-beginning-position) (line-end-position)))
7272
(goto-char (point-min))
7373
(let (last-end
7474
outputs)

nix3-transient.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
(require 'nix3-core)
3535
(require 'nix3-utils)
3636
(require 'nix3-browse-url)
37+
(require 'pp)
3738

3839
(declare-function nix3-realise-and-show-store "nix3")
3940
(declare-function nix3-vterm-shell-command "nix3-utils")

nix3-utils.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
(require 'cl-lib)
3333
(require 'subr-x)
3434
(require 'nix3-core)
35+
(eval-when-compile
36+
(require 'rx))
3537

3638
(declare-function vterm "ext:vterm")
3739
(declare-function vterm-send-string "ext:vterm")

0 commit comments

Comments
 (0)