Skip to content

Add defcustom inf-clojure-prompt-when-set-ns #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

arichiardi
Copy link
Contributor

@arichiardi arichiardi commented Mar 3, 2017

The patch allow the user to disable the request "Set ns: ..." on C-c
M-n. The default is to always prompt.

Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

  • The commits are consistent with our [contribution guidelines][1]
  • The new code is not generating bytecode or M-x checkdoc warnings
  • You've updated the changelog (if adding/changing user-visible functionality)

(No need?) -> You've updated the readme (if adding/changing user-visible functionality)

inf-clojure.el Outdated
@@ -179,6 +179,12 @@ This should usually be a combination of `inf-clojure-prompt' and
:type 'regexp
:group 'inf-clojure)

(defcustom inf-clojure-prompt-when-set-ns t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when -> on

inf-clojure.el Outdated
@@ -179,6 +179,12 @@ This should usually be a combination of `inf-clojure-prompt' and
:type 'regexp
:group 'inf-clojure)

(defcustom inf-clojure-prompt-when-set-ns t
"Controls whether to prompt by default when switching namespace."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"by default" seems redundant here

inf-clojure.el Outdated
Defaults to the ns of the current buffer."
(interactive (inf-clojure-symprompt "Set ns to" (clojure-find-ns)))
Defaults to the ns of the current buffer, always prompting before
setting, unless `inf-clojure-prompt-when-set-ns` is \"never\" or
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure "never" won't work - this is just a tag in the customize UI.

CHANGELOG.md Outdated
@@ -5,6 +5,7 @@
### New Features

* [#34](https://github.com/clojure-emacs/inf-clojure/pull/34): Add support for socket REPL connections.
* [#46](https://github.com/clojure-emacs/inf-clojure/pull/46): Optinally disable prompt on `inf-clojure-set-ns`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it possible to disable prompt...

The patch allow the user to disable the request "Set ns: ..." on C-c
M-n. The default is to always prompt.
@bbatsov bbatsov merged commit 6a354dc into clojure-emacs:master Mar 3, 2017
@arichiardi arichiardi deleted the no-prompt-set-ns branch March 3, 2017 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants