[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 59868ff 218/313: Remove quotes from reload and
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 59868ff 218/313: Remove quotes from reload and fix argument parsing (#148) |
Date: |
Wed, 11 Aug 2021 10:00:20 -0400 (EDT) |
branch: elpa/inf-clojure
commit 59868ff0433f7631c362ce25879bd4271d350ebc
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: GitHub <noreply@github.com>
Remove quotes from reload and fix argument parsing (#148)
The feature was kind of broken, this patch makes sure it actually works.
---
inf-clojure.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index ccd25ab..a5c1a92 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -383,7 +383,7 @@ If you are using REPL types, it will pickup the most
appropriate
(`planck inf-clojure-load-form-planck)
(_ inf-clojure-load-form)))
-(defcustom inf-clojure-reload-form "(require '\"%s\" :reload)"
+(defcustom inf-clojure-reload-form "(require '%s :reload)"
"Format-string for building a Clojure expression to reload a file.
Reload forces loading of all the identified libs even if they are
already loaded.
@@ -406,7 +406,7 @@ If you are using REPL types, it will pickup the most
appropriate
(inf-clojure--set-repl-type proc)
inf-clojure-reload-form)
-(defcustom inf-clojure-reload-all-form "(require '\"%s\" :reload-all)"
+(defcustom inf-clojure-reload-all-form "(require '%s :reload-all)"
"Format-string for building a Clojure expression to :reload-all a file.
Reload-all implies :reload and also forces loading of all libs
that the identified libs directly or indirectly load via require
@@ -768,12 +768,12 @@ The prefix argument ARG can change the behavior of the
command:
- M-- C-u M-x `inf-clojure-reload': reloads all AND prompts."
(interactive "P")
(let* ((proc (inf-clojure-proc))
- (invertp (or (equal arg "-") (equal arg '(-4))))
- (promptp (or (equal arg '(4)) (equal arg '(-4))))
- (ns (if promptp
+ (reload-all-p (or (equal arg '-) (equal arg '(-4))))
+ (prompt-p (or (equal arg '(4)) (equal arg '(-4))))
+ (ns (if prompt-p
(car (inf-clojure-symprompt "Namespace" (clojure-find-ns)))
(clojure-find-ns)))
- (form (if (not invertp)
+ (form (if (not reload-all-p)
(inf-clojure-reload-form proc)
(inf-clojure-reload-all-form proc))))
(inf-clojure--send-string proc (format form ns))))
- [nongnu] elpa/inf-clojure d79e4eb 299/313: Remove a redundant call to with-current-buffer, (continued)
- [nongnu] elpa/inf-clojure d79e4eb 299/313: Remove a redundant call to with-current-buffer, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 397272d 300/313: Auto-enable inf-clojure-minor-mode on starting inf-clojure, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 07b2738 301/313: Include the project name automatically in the REPL buffer name, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c3ff2f4 308/313: Add a note about comint, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 37cfe85 307/313: Update some wording, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 696e5ef 309/313: Add a link to Discord, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 49b2257 310/313: Remove the TOC, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure fcf30b5 210/313: README: Add instructions for including socket config in .dir-locals.el or .emacs., ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b53074a 216/313: Tweak README and discourage terminal REPLs, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e14dbba 145/313: Update the commentary section of the package, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 59868ff 218/313: Remove quotes from reload and fix argument parsing (#148),
ELPA Syncer <=
- [nongnu] elpa/inf-clojure d0d269d 226/313: Tweak the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 2445af7 235/313: Add insert commands to the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure eb5e6a2 234/313: Remove whitespace, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 2cfc38f 239/313: Move repl features into single datastructure for clarity, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure fe22ce2 253/313: Add a couple of disclaimers and a basic TOC, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e33a546 243/313: Bugfixes and readme updates, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c9681d0 257/313: Tweak some wording, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 2c8e46b 273/313: Release 3.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1ba6416 255/313: Tweak the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d7eb9ce 267/313: Update the changelog, ELPA Syncer, 2021/08/11