|
@@ -328,9 +328,10 @@ also accept a quoted list for the sake of convenience."
|
|
:to-throw))
|
|
:to-throw))
|
|
|
|
|
|
(it "shouldn't allow C-j to select an ambiguous match"
|
|
(it "shouldn't allow C-j to select an ambiguous match"
|
|
- ;; Make this a no-op to avoid end-of-buffer errors, which are
|
|
|
|
- ;; irrelevant to this test.
|
|
|
|
- (spy-on 'scroll-other-window)
|
|
|
|
|
|
+ ;; Make this a no-op to prevent spurious end-of-buffer errors
|
|
|
|
+ ;; when ido tries to create a help buffer in a noninteractive
|
|
|
|
+ ;; emacs.
|
|
|
|
+ (spy-on 'ido-completion-auto-help)
|
|
(expect
|
|
(expect
|
|
(with-simulated-input "b C-j C-j C-j"
|
|
(with-simulated-input "b C-j C-j C-j"
|
|
(ido-completing-read+
|
|
(ido-completing-read+
|
|
@@ -695,7 +696,17 @@ also accept a quoted list for the sake of convenience."
|
|
(with-simulated-input "forward-char RET"
|
|
(with-simulated-input "forward-char RET"
|
|
(ido-completing-read+ "Prompt: " obarray #'commandp
|
|
(ido-completing-read+ "Prompt: " obarray #'commandp
|
|
t nil nil "backward-char"))
|
|
t nil nil "backward-char"))
|
|
- :to-equal "forward-char"))))
|
|
|
|
|
|
+ :to-equal "forward-char"))
|
|
|
|
+
|
|
|
|
+ (it "should strip display properties from the return value"
|
|
|
|
+ (expect
|
|
|
|
+ (let ((string-with-display-prop "apple"))
|
|
|
|
+ (add-text-properties 4 5 '(display "...") string-with-display-prop)
|
|
|
|
+ (next-single-property-change
|
|
|
|
+ 0 'display
|
|
|
|
+ (with-simulated-input "appl RET"
|
|
|
|
+ (ido-completing-read+ "Prompt: " (list string-with-display-prop)))))
|
|
|
|
+ :to-be nil))))
|
|
|
|
|
|
(describe "ido-ubiquitous-mode"
|
|
(describe "ido-ubiquitous-mode"
|
|
;; Set up a test command that calls `completing-read'
|
|
;; Set up a test command that calls `completing-read'
|