aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2013-07-13 12:44:19 +0800
committerLeo Liu2013-07-13 12:44:19 +0800
commit58fbe886f57da9b450fc6f1d1f5b2fee9c1fa0fc (patch)
tree3b6cc3d02bed1ae8ddc2e12dab6011bd5925e07e
parent1f0480d4cdea9a266d73f184c56dc94915f1c67a (diff)
downloademacs-58fbe886f57da9b450fc6f1d1f5b2fee9c1fa0fc.tar.gz
emacs-58fbe886f57da9b450fc6f1d1f5b2fee9c1fa0fc.zip
* ido.el (ido-read-file-name): Guard against non-symbol value.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/ido.el10
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1213e509692..533ea0a0f23 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-07-13 Leo Liu <sdl.web@gmail.com>
2
3 * ido.el (ido-read-file-name): Guard against non-symbol value.
4
12013-07-13 Fabián Ezequiel Gallina <fgallina@gnu.org> 52013-07-13 Fabián Ezequiel Gallina <fgallina@gnu.org>
2 6
3 * progmodes/python.el (python-imenu--build-tree): Fix corner case 7 * progmodes/python.el (python-imenu--build-tree): Fix corner case
diff --git a/lisp/ido.el b/lisp/ido.el
index ce43e866d09..6948e7ad033 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -4760,16 +4760,20 @@ See `read-file-name' for additional parameters."
4760 (let (filename) 4760 (let (filename)
4761 (cond 4761 (cond
4762 ((or (eq predicate 'file-directory-p) 4762 ((or (eq predicate 'file-directory-p)
4763 (eq (get this-command 'ido) 'dir) 4763 (eq (and (symbolp this-command)
4764 (get this-command 'ido)) 'dir)
4764 (memq this-command ido-read-file-name-as-directory-commands)) 4765 (memq this-command ido-read-file-name-as-directory-commands))
4765 (setq filename 4766 (setq filename
4766 (ido-read-directory-name prompt dir default-filename mustmatch initial))) 4767 (ido-read-directory-name prompt dir default-filename mustmatch initial)))
4767 ((and (not (eq (get this-command 'ido) 'ignore)) 4768 ((and (not (eq (and (symbolp this-command)
4769 (get this-command 'ido)) 'ignore))
4768 (not (memq this-command ido-read-file-name-non-ido)) 4770 (not (memq this-command ido-read-file-name-non-ido))
4769 (or (null predicate) (eq predicate 'file-exists-p))) 4771 (or (null predicate) (eq predicate 'file-exists-p)))
4770 (let* (ido-saved-vc-hb 4772 (let* (ido-saved-vc-hb
4771 (ido-context-switch-command 4773 (ido-context-switch-command
4772 (if (eq (get this-command 'ido) 'find-file) nil 'ignore)) 4774 (if (eq (and (symbolp this-command)
4775 (get this-command 'ido)) 'find-file)
4776 nil 'ignore))
4773 (vc-handled-backends (and (boundp 'vc-handled-backends) vc-handled-backends)) 4777 (vc-handled-backends (and (boundp 'vc-handled-backends) vc-handled-backends))
4774 (minibuffer-completing-file-name t) 4778 (minibuffer-completing-file-name t)
4775 (ido-current-directory (ido-expand-directory dir)) 4779 (ido-current-directory (ido-expand-directory dir))