[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode d14dd9ce95 196/500: Don't assign to unbound varia
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode d14dd9ce95 196/500: Don't assign to unbound variable: let-bind it locally instead |
Date: |
Sat, 29 Jan 2022 08:27:05 -0500 (EST) |
branch: elpa/nix-mode
commit d14dd9ce95f338942093ac2a09d2129ca0e94acf
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Don't assign to unbound variable: let-bind it locally instead
---
nix-repl.el | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/nix-repl.el b/nix-repl.el
index fed64c0840..a202eed28b 100644
--- a/nix-repl.el
+++ b/nix-repl.el
@@ -55,27 +55,27 @@
(nix--with-temp-process-filter proc
(goto-char (point-min))
(process-send-string proc (concat prefix
"\t\"" (nix--char-with-ctrl ?a) "\"\n"))
- (setq i 0)
- (while (and (< (setq i (1+ i)) 100)
- (not (search-forward-regexp
"\"\\([^\"]*\\)\"[\n]*nix-repl>" nil t)))
- (sleep-for 0.01))
- (let ((new-prefix (match-string 1))
- (start-compl (point)))
- (if (string-suffix-p " " new-prefix)
- (list (substring new-prefix 0 -1))
- (process-send-string proc (concat
new-prefix "\t\t" (nix--char-with-ctrl ?u) "\n"))
- (goto-char start-compl)
- (setq i 0)
- (while (and (< (setq i (1+ i)) 100)
- (not (search-forward-regexp
-
"[\n]+nix-repl>\\|Display all \\([0-9]+\\)" nil t)))
- (sleep-for 0.01))
- (if (match-string 1)
- (progn
- (process-send-string proc "n")
- '())
- (search-backward "\n" nil t)
- (split-string (buffer-substring
start-compl (1- (point))))))))))
+ (let ((i 0))
+ (while (and (< (setq i (1+ i)) 100)
+ (not (search-forward-regexp
"\"\\([^\"]*\\)\"[\n]*nix-repl>" nil t)))
+ (sleep-for 0.01))
+ (let ((new-prefix (match-string 1))
+ (start-compl (point)))
+ (if (string-suffix-p " " new-prefix)
+ (list (substring new-prefix 0 -1))
+ (process-send-string proc (concat
new-prefix "\t\t" (nix--char-with-ctrl ?u) "\n"))
+ (goto-char start-compl)
+ (setq i 0)
+ (while (and (< (setq i (1+ i)) 100)
+ (not
(search-forward-regexp
+
"[\n]+nix-repl>\\|Display all \\([0-9]+\\)" nil t)))
+ (sleep-for 0.01))
+ (if (match-string 1)
+ (progn
+ (process-send-string proc "n")
+ '())
+ (search-backward "\n" nil t)
+ (split-string (buffer-substring
start-compl (1- (point)))))))))))
(defun nix--send-repl (input &optional process mute)
"Send INPUT to PROCESS.
- [nongnu] elpa/nix-mode 21ed086cca 008/500: Fix flycheck complaints., (continued)
- [nongnu] elpa/nix-mode 21ed086cca 008/500: Fix flycheck complaints., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4fe6058fb4 142/500: allow escape sequences inside sh-mode block, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1268096ba7 136/500: Merge pull request #27 from ljli/close-open-fix, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 676cc65daf 153/500: Add some README doc., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 732ce2f174 169/500: Remove case-fold-search setting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3a6634378a 149/500: Allow nix-repl be in custom location, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ea649349b5 156/500: Fix syntax issue, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9d0668f1d8 181/500: Ignore ''' in mmm-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3294f8a2f8 180/500: Merge pull request #37 from dieggsy/cl-lib, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b580c8045b 192/500: Prefer derived-mode-p when checking for specific major modes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d14dd9ce95 196/500: Don't assign to unbound variable: let-bind it locally instead,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 664fa51cfa 199/500: Remove mmm-mode/company feature detection, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1e72a297d7 238/500: update, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9242165717 359/500: Don’t skip over > in angle-path, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1ebfda9810 368/500: Inline use of `signum`., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3022b9ef74 409/500: Skip descriptions in nix completions, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode aaf2b741fb 410/500: nix-shell: skip non-default packages integration, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 458c83f8bd 396/500: Correct pacakge lint for dep., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 59f3ea4da9 401/500: make run: use -Q, ELPA Syncer, 2022/01/29