New upstream version 4.11
Lev Lamberov
5 years ago
8 | 8 | - EMACS_VERSION=emacs-25.1 |
9 | 9 | - EMACS_VERSION=emacs-25.2 |
10 | 10 | - EMACS_VERSION=emacs-25.3 |
11 | - EMACS_VERSION=emacs-26-pretest | |
11 | - EMACS_VERSION=emacs-26.1 | |
12 | 12 | # For some reason emac-git-snapshot hangs forever |
13 | 13 | # - EMACS_VERSION=emacs-git-snapshot |
14 | 14 | - EMACS_VERSION=remacs-git-snapshot |
15 | 15 | |
16 | 16 | matrix: |
17 | 17 | allow_failures: |
18 | - env: EMACS_VERSION=emacs-26-pretest | |
19 | 18 | - env: EMACS_VERSION=remacs-git-snapshot |
20 | 19 | - env: EMACS_VERSION=emacs-git-snapshot |
21 | 20 |
0 | 2018-06-27 Ryan C. Thompson <rct@thompsonclan.org> | |
1 | ||
2 | * ido-completing-read+.el (ido-cr+-function-blacklist): Disable | |
3 | ido completion in org-set-tags. | |
4 | ||
0 | 5 | 2018-04-24 Ryan C. Thompson <rct@thompsonclan.org> |
1 | 6 | |
2 | 7 | * ido-completing-read+.el (ido-cr+-update-dynamic-collection): |
4 | 4 | ;; Filename: ido-completing-read+.el |
5 | 5 | ;; Author: Ryan Thompson |
6 | 6 | ;; Created: Sat Apr 4 13:41:20 2015 (-0700) |
7 | ;; Version: 4.10 | |
7 | ;; Version: 4.11 | |
8 | 8 | ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5") (s "0.1") (memoize "1.1")) |
9 | 9 | ;; URL: https://github.com/DarwinAwardWinner/ido-completing-read-plus |
10 | 10 | ;; Keywords: ido, completion, convenience |
76 | 76 | ;; |
77 | 77 | ;;; Code: |
78 | 78 | |
79 | (defconst ido-completing-read+-version "4.10" | |
79 | (defconst ido-completing-read+-version "4.11" | |
80 | 80 | "Currently running version of ido-completing-read+. |
81 | 81 | |
82 | 82 | Note that when you update ido-completing-read+, this variable may |
87 | 87 | (require 'cl-lib) |
88 | 88 | (require 'cus-edit) |
89 | 89 | (require 's) |
90 | (require 'memoize) | |
90 | ||
91 | ;; Optional dependency, only needed for optimization | |
92 | (require 'memoize nil t) | |
91 | 93 | |
92 | 94 | ;; Silence some byte-compiler warnings |
93 | 95 | (eval-when-compile |
291 | 293 | ;; https://github.com/DarwinAwardWinner/ido-completing-read-plus/issues/39 |
292 | 294 | Info-read-node-name |
293 | 295 | ;; https://github.com/DarwinAwardWinner/ido-completing-read-plus/issues/44 |
294 | tmm-prompt) | |
296 | tmm-prompt | |
297 | ;; https://github.com/DarwinAwardWinner/ido-completing-read-plus/issues/156 | |
298 | org-tags-completion-function) | |
295 | 299 | "Functions & commands for which ido-cr+ should be disabled. |
296 | 300 | |
297 | 301 | Each entry can be either a symbol or a string. A symbol means to |
516 | 520 | (ido-cr+-last-dynamic-update-text nil) |
517 | 521 | ;; Only memoize if the collection is dynamic. |
518 | 522 | (ido-cr+-all-prefix-completions-memoized |
519 | (if ido-cr+-dynamic-collection | |
523 | (if (and ido-cr+-dynamic-collection (featurep 'memoize)) | |
520 | 524 | (memoize (indirect-function 'ido-cr+-all-prefix-completions)) |
521 | 525 | 'ido-cr+-all-prefix-completions)) |
522 | 526 | (ido-cr+-all-completions-memoized |
523 | (if ido-cr+-dynamic-collection | |
527 | (if (and ido-cr+-dynamic-collection (featurep 'memoize)) | |
524 | 528 | (memoize (indirect-function 'all-completions)) |
525 | 529 | 'all-completions)) |
526 | 530 | ;; If the whitelist is empty, everything is whitelisted |
882 | 886 | for tortoise on x |
883 | 887 | for hare on (cdr x) by #'cddr |
884 | 888 | thereis (eq tortoise hare))) |
885 | ||
886 | (defun ido-cr+-maybe-chop (items elem) | |
887 | "Like `ido-chop', but a no-op if ELEM is not in ITEMS. | |
888 | ||
889 | Normal `ido-chop' hangs infinitely in this case." | |
890 | (cl-loop | |
891 | with new-tail = () | |
892 | for remaining on items | |
893 | for next = (car remaining) | |
894 | if (equal next elem) | |
895 | return (nconc remaining new-tail) | |
896 | else collect next into new-tail | |
897 | finally return items)) | |
898 | 889 | |
899 | 890 | (defun ido-cr+-update-dynamic-collection () |
900 | 891 | "Update the set of completions for a dynamic collection. |
3 | 3 | |
4 | 4 | ;; Author: Ryan C. Thompson |
5 | 5 | ;; URL: https://github.com/DarwinAwardWinner/ido-ubiquitous |
6 | ;; Version: 4.10 | |
6 | ;; Version: 4.11 | |
7 | 7 | ;; Created: 2011-09-01 |
8 | 8 | ;; Keywords: convenience, completion, ido |
9 | 9 | ;; EmacsWiki: InteractivelyDoThings |
10 | ;; Package-Requires: ((ido-completing-read+ "4.10") (cl-lib "0.5")) | |
10 | ;; Package-Requires: ((ido-completing-read+ "4.11") (cl-lib "0.5")) | |
11 | 11 | ;; Filename: ido-ubiquitous.el |
12 | 12 | |
13 | 13 | ;; This file is NOT part of GNU Emacs. |
38 | 38 | ;; |
39 | 39 | ;;; Code: |
40 | 40 | |
41 | (defconst ido-ubiquitous-version "4.10" | |
41 | (defconst ido-ubiquitous-version "4.11" | |
42 | 42 | "Currently running version of ido-ubiquitous. |
43 | 43 | |
44 | 44 | Note that when you update ido-ubiquitous, this variable may not |
5 | 5 | (require 'buttercup) |
6 | 6 | (require 'cl-lib) |
7 | 7 | (require 'with-simulated-input) |
8 | ||
9 | ;; Note: Currently unused, but potentially useful in the future | |
10 | (defun ido-cr+-maybe-chop (items elem) | |
11 | "Like `ido-chop', but a no-op if ELEM is not in ITEMS. | |
12 | ||
13 | Normal `ido-chop' hangs infinitely in this case." | |
14 | (cl-loop | |
15 | with new-tail = () | |
16 | for remaining on items | |
17 | for next = (car remaining) | |
18 | if (equal next elem) | |
19 | return (nconc remaining new-tail) | |
20 | else collect next into new-tail | |
21 | finally return items)) | |
8 | 22 | |
9 | 23 | (defun collection-as-function (collection) |
10 | 24 | "Return a function equivalent to COLLECTION. |
187 | 201 | (with-simulated-input "C-j" |
188 | 202 | (ido-completing-read+ "Prompt: " '("blue" "yellow" "green") nil t)) |
189 | 203 | :to-equal "")) |
204 | ||
205 | (it "should work with `minibuffer-electric-default-mode'" | |
206 | (let ((eldef-was-showing nil)) | |
207 | ;; No REQUIRE-MATCH, so electric default should not show | |
208 | (with-simulated-input | |
209 | '("blu DEL DEL DEL" | |
210 | (setq eldef-was-showing minibuf-eldef-showing-default-in-prompt) | |
211 | "RET") | |
212 | (ido-completing-read+ "Prompt (default green): " '("blue" "yellow" "green"))) | |
213 | (expect eldef-was-showing :not :to-be-truthy) | |
214 | ;; With REQUIRE-MATCH, so electric default should show | |
215 | (with-simulated-input | |
216 | '("blu DEL DEL DEL" | |
217 | (setq eldef-was-showing minibuf-eldef-showing-default-in-prompt) | |
218 | "RET") | |
219 | (ido-completing-read+ "Prompt (default green): " '("blue" "yellow" "green") nil t)) | |
220 | (expect eldef-was-showing :to-be-truthy))) | |
190 | 221 | |
191 | 222 | (it "should accept all the same forms of DEF as `completing-read-default'" |
192 | 223 | ;; DEF in COLLECTION |