[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vcomplete cfb7099ab3 64/91: Unify search range user variab
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vcomplete cfb7099ab3 64/91: Unify search range user variables |
Date: |
Tue, 24 May 2022 15:59:10 -0400 (EDT) |
branch: elpa/vcomplete
commit cfb7099ab36b1a60b19277cfc43b84e56db6f0d0
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>
Unify search range user variables
* vcomplete.el (vcomplete-search-range): New custom variable replacing
'vcomplete-minibuffer-search-range' and 'vcomplete-in-region-search-range'.
(vcomplete-with-completions-buffer,vcomplete--disable-completion-in-region):
Use 'vcomplete-search-range' instead of the removed variables.
---
NEWS | 6 +++---
vcomplete.el | 27 ++++-----------------------
vcomplete.texi | 23 +++++++----------------
3 files changed, 14 insertions(+), 42 deletions(-)
diff --git a/NEWS b/NEWS
index 9773e01716..3d5ded0922 100644
--- a/NEWS
+++ b/NEWS
@@ -3,9 +3,9 @@ See the end of the file for an explanation of the versioning
scheme.
* 1.2 (in development)
-** Add the ability to control where to search for the completion list buffer.
-See custom variables 'vcomplete-minibuffer-search-range' and
-'vcomplete-in-region-search-range' for more information.
+** Add 'vcomplete-search-range'.
+This custom variable is used to control in which frames the completion
+list buffer is searched for during completion.
* 1.1
diff --git a/vcomplete.el b/vcomplete.el
index 2a276cb9de..ad5d472394 100644
--- a/vcomplete.el
+++ b/vcomplete.el
@@ -101,27 +101,8 @@ Otherwise, operate according to `completion-auto-help'."
:risky t
:package-version '(vcomplete . 1.1))
-(defcustom vcomplete-minibuffer-search-range 'visible
- "Range of search for a `*Completions*' window during minibuffer completion.
-- t means consider all windows on all frames.
-- `visible' means consider all windows on all visible frames.
-- 0 (the number zero) means consider all windows on all visible and
- iconified frames.
-- Any other value means consider all windows on the selected frame and
- no others."
- :link '(info-link "(Vcomplete)Customization")
- :type '(radio (const :tag "All windows on all frames" t)
- (const :tag "All windows on all visible frames" visible)
- (const
- :tag "All windows on all visible and iconified frames" 0)
- (const
- :tag "All windows on the currently selected frame"
- nil))
- :risky t
- :package-version '(vcomplete . 1.2))
-
-(defcustom vcomplete-in-region-search-range 'visible
- "Range of search for a `*Completions*' window during in region completion.
+(defcustom vcomplete-search-range 'visible
+ "Range of search for a `*Completions*' window during completion.
- t means consider all windows on all frames.
- `visible' means consider all windows on all visible frames.
- 0 (the number zero) means consider all windows on all visible and
@@ -151,7 +132,7 @@ While evaluating BODY, BUFFER and WINDOW are locally bound
to the
`*Completions*' buffer and window respectively."
`(when-let ((buffer (get-buffer "*Completions*"))
(window (get-buffer-window
- buffer vcomplete-minibuffer-search-range)))
+ buffer vcomplete-search-range)))
(save-current-buffer
(set-buffer buffer)
(unless (derived-mode-p 'completion-list-mode)
@@ -256,7 +237,7 @@ With prefix argument N, move N items (negative N means move
forward)."
;; disabled through `vcomplete--update-in-region'.
(defun vcomplete--disable-completion-in-region ()
"Stop completion in region when there is no visible `*Completions*' buffer."
- (unless (get-buffer-window "*Completions*" vcomplete-in-region-search-range)
+ (unless (get-buffer-window "*Completions*" vcomplete-in-search-range)
(completion-in-region-mode -1)))
(defun vcomplete--setup-completions ()
diff --git a/vcomplete.texi b/vcomplete.texi
index 8e6b127dee..46db71b3b7 100644
--- a/vcomplete.texi
+++ b/vcomplete.texi
@@ -199,22 +199,13 @@ also true for other ``annotation providers'' such as the
Marginalia
package. Consider disabling them or this option on slow computers.
@end defopt
-@defopt vcomplete-minibuffer-search-range
-Range of search for a @code{completions} window during minibuffer
-completion. A value of @code{t} means consider all windows on all
-frames, @code{visible} means consider all windows on all visible
-frames, @code{0} (the number zero) means consider all windows on all
-visible and iconified frames and any other value means consider only
-the currently selected frame. By default, @code{visible} is used.
-@end defopt
-
-@defopt vcomplete-in-region-search-range
-Range of search for a @code{completions} window during minibuffer
-completion. A value of @code{t} means consider all windows on all
-frames, @code{visible} means consider all windows on all visible
-frames, @code{0} (the number zero) means consider all windows on all
-visible and iconified frames and any other value means consider only
-the currently selected frame. By default, @code{visible} is used.
+@defopt vcomplete-search-range
+Range of search for a @code{completions} window during completion.
+A value of @code{t} means consider all windows on all frames,
+@code{visible} means consider all windows on all visible frames,
+@code{0} (the number zero) means consider all windows on all visible
+and iconified frames and any other value means consider only the
+currently selected frame. By default, @code{visible} is used.
@end defopt
@menu
- [nongnu] elpa/vcomplete 5a7d90596b 72/91: ; Move local mode declaration to the top of NEWS, (continued)
- [nongnu] elpa/vcomplete 5a7d90596b 72/91: ; Move local mode declaration to the top of NEWS, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 9df472e302 85/91: ; Indicate the mailing list is the "maintainer" of the package, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 8ca95b2c81 80/91: Rename `vcomplete--update-in-minibuffer', ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete cd8411949c 77/91: ; Update package URL to https://dsemy.com/projects/vcomplete, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete ed98c1b50d 90/91: ; Change to NEWS, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 84c888747e 81/91: Reset the '*Completions*' buffer when 'vcomplete-mode' is disabled, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete a5763edf35 83/91: ; Bump to version 1.2, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 2a5c215033 86/91: ; Prepare for NonGNU ELPA inclusion, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 07f3483c0c 09/91: Improve usability of 'vcomplete-kill-buffer', ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 24c4552d2f 54/91: Use a user option to control which commands cause auto updates, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete cfb7099ab3 64/91: Unify search range user variables,
ELPA Syncer <=
- [nongnu] elpa/vcomplete db35265ff2 74/91: ; Load 'subr-x' when byte-compiling, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 695b22e213 79/91: ; Indentation fix and docstring change, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete e139895b51 66/91: Fix reference to void variable, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 40ac892aa6 67/91: ; Consistently mark lisp variables and functions in NEWS, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 3fe8f92f16 75/91: ; Remove unnecessary '; ' from lexical binding declaration, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete c66599c7a4 84/91: ; Update copyright years, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 1106acfc5b 02/91: ; Fix various erroneous references to swsw, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete e59690bd71 58/91: * vcomplete.el (vcomplete-no-update-commands): Add 'choose-completion', ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete b4f5326ad8 57/91: ; Fix required Emacs version vcomplete-pkg.el, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete a280ce2c59 62/91: ; Bump to version 1.1, ELPA Syncer, 2022/05/24