]> git.eshelyaron.com Git - emacs.git/commit
Add ido-fallback special variable (Bug#31707)
authorChristophe Junke <junke.christophe@gmail.com>
Mon, 4 Jun 2018 08:39:43 +0000 (10:39 +0200)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 26 Jun 2018 00:05:53 +0000 (20:05 -0400)
commit12c77f6918c4a60dbbae3f716a58300b4026e8da
tree9351800b487caee3c4b369e5d42a0a328b7c5158
parent826e8d1f12b014617c8899936730a740a09fefb1
Add ido-fallback special variable (Bug#31707)

Before ido.el switch to lexical-binding, it was possible for other
packages to modify the 'fallback' variables declared inside
'ido-file-internal' and 'ido-buffer-internal'.
* lisp/ido.el (ido-fallback): New variable.
(ido-buffer-internal, ido-file-internal): Reset ido-fallback to nil
before prompting user.  Use ido-fallback when ido-exit is 'fallback'.
(ido-fallback-command): Add optional FALLBACK-COMMAND argument.

Copyright-paperwork-exempt: yes
lisp/ido.el