katspaugh / ido-at-point

ido-at-point
51 stars 4 forks source link

Use ido-enable-flex-match; split-string omit nulls; flex match in Tern #6

Closed katspaugh closed 10 years ago

katspaugh commented 10 years ago

@gempesaw, what do you think?

gempesaw commented 10 years ago

Hey, that's friendly of you to ask! In theory everything looks awesome but for some reason I'm getting a type error when trying to use the new version :( I'm not yet sure if that's something local to my system or what; I'll see if I can find time to look in to it some more...

with a emacs -Q on GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-07-11 on bob.porkrind.org from emacsforosx.com:

(require 'ido)
(require 'ido-at-point "/opt/ido-at-point/ido-at-point.el")
(ido-at-point-mode)
(setq ido-enable-flex-matching t)
iapc
let: Wrong type argument: vectorp, #[771
"ÁÂÃÄÅÆ#Ç\"ÈÉ%À\"‡" [(#[771 "‰¢Á=†
‰Â=?…+rà Ä!ƒÅ!‚p²qˆÆÀ!$)‡"
[#[257 "ŠÃÄ!ˆ`pBÀ@š„!ÅÆÂ@\"ˆÀ ˆÁÇÈÉ
\" ˆˆ)Á@‡" [(nil) (nil) (#[0 "À ˆÃÄÁ@\"‡" [... #7 nil
remove-hook post-command-hook] 3 "

(fn)"]) skip-syntax-backward "_w" add-hook post-command-hook mapcar
symbol-name lisp--local-variables] 6 "

(fn STRING)"] boundaries metadata minibuffer-selected-window
window-live-p window-buffer complete-with-action] 8 "

(fn STRING PRED ACTION)"] [ffap-guesser last-sexp-setup-props
fill-individual-paragraphs-citation ido-save-history Slovenian
Buffer-menu-this-window vc-display-status emacs-lisp-mode-map
ido-word-matching-substring hist ...]) completion--some make-byte-code
257 "ÃÂÀÁ$‡" vconcat vector [complete-with-action] 6 "

(fn TABLE)"] 12 "

(fn STRING PRED ACTION)"]
katspaugh commented 10 years ago

The error occurred because a candidates collection now isn't always an obarray as was the case with matched-symbols.