summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2017-05-25 10:17:36 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2017-05-25 10:17:36 +0300
commitafb4b2637c18136beabb8699acbac7e82a6b16b8 (patch)
treee98d32d1c863f8fa3911fc41c36a78a4f1a9d9e3
parent676a80869d769cc45e49f498bfe3a1b5a94f5427 (diff)
Improve the documentation for cider-prompt-save-files-on-cider-refresh
This also fixes the name of the defcustom.
-rw-r--r--CHANGELOG.md2
-rw-r--r--cider-interaction.el12
-rw-r--r--doc/miscellaneous_features.md4
3 files changed, 9 insertions, 9 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e90985cf..9f175412 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@
### New Features
-* [#1990](https://github.com/clojure-emacs/cider/issues/1990): Add new customation variable `cider-prompt-save-file-on-cider-refresh` to allow auto-saving buffers when `cider-refresh` is called.
+* [#1990](https://github.com/clojure-emacs/cider/issues/1990): Add new customation variable `cider-prompt-save-files-on-cider-refresh` to allow auto-saving buffers when `cider-refresh` is called.
* Add new function `cider-load-all-files`, along with menu bar update.
* Add new customization variable `cider-special-mode-truncate-lines`.
* Add an option `cider-inspector-fill-frame` to control whether the cider inspector window fills its frame.
diff --git a/cider-interaction.el b/cider-interaction.el
index dffa73a8..5d476533 100644
--- a/cider-interaction.el
+++ b/cider-interaction.el
@@ -111,12 +111,12 @@ If the symbol `always-save', save the file without confirmation."
:group 'cider
:package-version '(cider . "0.6.0"))
-(defcustom cider-prompt-save-file-on-cider-refresh t
- "Controls whether to prompt to save clojure file when calling ‘cider-refresh’.
+(defcustom cider-prompt-save-files-on-cider-refresh t
+ "Controls whether to prompt to save Clojure files on `cider-refresh'.
If nil, files are not saved.
-If t, the user is prompted to save files if it's been modified.
+If t, the user is prompted to save files if they have been modified.
If the symbol `always-save', save the files without confirmation."
- :type '(choice (const t :tag "Prompt to save files if it's been modified")
+ :type '(choice (const t :tag "Prompt to save files if they have been modified")
(const nil :tag "Don't save the files")
(const always-save :tag "Save the files without confirmation"))
:group 'cider
@@ -1552,8 +1552,8 @@ refresh functions (defined in `cider-refresh-before-fn' and
(let ((clear? (member mode '(clear 16)))
(refresh-all? (member mode '(refresh-all 4)))
(inhibit-refresh-fns (member mode '(inhibit-fns -1))))
- (when cider-prompt-save-file-on-cider-refresh
- (save-some-buffers (eq cider-prompt-save-file-on-cider-refresh 'always-save)
+ (when cider-prompt-save-files-on-cider-refresh
+ (save-some-buffers (eq cider-prompt-saves-file-on-cider-refresh 'always-save)
(lambda () (derived-mode-p 'clojure-mode))))
(cider-map-connections
(lambda (conn)
diff --git a/doc/miscellaneous_features.md b/doc/miscellaneous_features.md
index b21779bd..781b6321 100644
--- a/doc/miscellaneous_features.md
+++ b/doc/miscellaneous_features.md
@@ -145,8 +145,8 @@ and
(setq cider-refresh-show-log-buffer t)
```
-* By default, all Clojure buffers are prompted to be saved. This behaviour can be
- customized using `cider-prompt-save-file-on-refresh`.
+* By default, all modified Clojure buffers are prompted to be saved. This
+ behaviour can be customized using `cider-prompt-save-files-on-refresh`.
## Tracing function execution