Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from jwiegley/master

It's possible for this-command to be a lambda form (i.e., a list)
  • Loading branch information...
commit e5dd94759d62b43a54dd6d0833591185f45dda61 2 parents 5b78853 + e36a198
@scottjad authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 ido-hacks.el
View
6 ido-hacks.el
@@ -48,7 +48,8 @@ argument is a function (which ido can't handle)."
(car collection)))
(symbolp collection)
inherit-input-method
- (eq (get this-command 'ido) 'ignore))
+ (or (not (symbolp this-command))
+ (eq (get this-command 'ido) 'ignore)))
ad-do-it
;; copied from ido-completing-read
@@ -73,7 +74,8 @@ history, instead of the incomplete input."
;;(defun ido-read-internal (item prompt history &optional default require-match initial)
(let (history-add-new-input
(hook (intern (format "ido-make-%s-list-hook" item)))
- (fix-default (get this-command 'ido-hacks-fix-default)))
+ (fix-default (and (symbolp this-command)
+ (get this-command 'ido-hacks-fix-default))))
(clrhash ido-hacks-flex-narrowed-matches-hash)
(if (or fix-default
Please sign in to comment.
Something went wrong with that request. Please try again.