diff options
| author | João Távora | 2019-11-13 09:47:25 +0000 |
|---|---|---|
| committer | João Távora | 2019-11-13 09:49:47 +0000 |
| commit | bf7debec3b2cdc4a5bc00c62046a6cb24c3f32af (patch) | |
| tree | 3ac62f10c8a43ae269f1fbec51df399cd9d90b9e | |
| parent | 0a492e4dfa188f32fd04cdf95c9fa6324facae08 (diff) | |
| download | emacs-bf7debec3b2cdc4a5bc00c62046a6cb24c3f32af.tar.gz emacs-bf7debec3b2cdc4a5bc00c62046a6cb24c3f32af.zip | |
Avoid fido-mode's setup on non-icomplete minibuffers
Otherwise we would lose things like C-r (isearch-backward) when doing
simple stuff like non-icomplete pp-eval-expression.
* lisp/icomplete.el (icomplete--fido-mode-setup): Restrict setup
to when icomplete-mode really kicks in.
| -rw-r--r-- | lisp/icomplete.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el index d0d3d65c346..a732d4cc0d1 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el | |||
| @@ -319,13 +319,14 @@ require user confirmation." | |||
| 319 | 319 | ||
| 320 | (defun icomplete--fido-mode-setup () | 320 | (defun icomplete--fido-mode-setup () |
| 321 | "Setup `fido-mode''s minibuffer." | 321 | "Setup `fido-mode''s minibuffer." |
| 322 | (use-local-map (make-composed-keymap icomplete-fido-mode-map | 322 | (when (and icomplete-mode (icomplete-simple-completing-p)) |
| 323 | (current-local-map))) | 323 | (use-local-map (make-composed-keymap icomplete-fido-mode-map |
| 324 | (setq-local icomplete-tidy-shadowed-file-names t | 324 | (current-local-map))) |
| 325 | icomplete-show-matches-on-no-input t | 325 | (setq-local icomplete-tidy-shadowed-file-names t |
| 326 | icomplete-hide-common-prefix nil | 326 | icomplete-show-matches-on-no-input t |
| 327 | completion-styles '(flex) | 327 | icomplete-hide-common-prefix nil |
| 328 | completion-category-defaults nil)) | 328 | completion-styles '(flex) |
| 329 | completion-category-defaults nil))) | ||
| 329 | 330 | ||
| 330 | ;;;###autoload | 331 | ;;;###autoload |
| 331 | (define-minor-mode fido-mode | 332 | (define-minor-mode fido-mode |