Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grizzl integration doesn't seem to be working #200

Closed
darthdeus opened this issue Nov 24, 2013 · 5 comments
Closed

Grizzl integration doesn't seem to be working #200

darthdeus opened this issue Nov 24, 2013 · 5 comments

Comments

@darthdeus
Copy link

After adding the following to my init.el

(setq projectile-completion-system 'grizzl)

When I try to run C-c p f or projectile-find-file, I get the following error

Symbol's function definition is void: exitfun

Here's a link to the whole stacktrace

And the code of the function where the error occurs

(defun grizzl-completing-read (prompt index)
  "Performs a completing-read in the minibuffer using INDEX to fuzzy search.
Each key pressed in the minibuffer filters down the list of matches."
  (minibuffer-with-setup-hook
      (lambda ()
        (setq *grizzl-current-result* nil)
        (setq *grizzl-current-selection* 0)
        (grizzl-mode 1)
        (lexical-let*
            ((hookfun (lambda ()
                        (setq *grizzl-current-result*
                              (grizzl-search (minibuffer-contents)
                                             index
                                             *grizzl-current-result*))
                        (grizzl-display-result index prompt)))
             (exitfun (lambda ()
                        (grizzl-mode -1)
                        (remove-hook 'post-command-hook    hookfun t))))
          (add-hook 'minibuffer-exit-hook exitfun nil t)
          (add-hook 'post-command-hook    hookfun nil t)))
    (read-from-minibuffer ">>> ")
    (grizzl-selected-result index)))

Unfortunately I'm not that good with Emacs Lisp to be able to figure out why this is happening :(

@bbatsov
Copy link
Owner

bbatsov commented Nov 26, 2013

That's odd. Neither grizzl, not it's projectile integration have been changed in quite some time. What's the Emacs version that you're using?

@darthdeus
Copy link
Author

The latest 24.3 from http://emacsformacosx.com/

@AnuragRamdasan
Copy link

Had the same issue. Moved temporarily to flx-ido.
After a while I just removed all the installed plugins and reinstalled them and grizzl just worked.
Still don't know what the issue is, but can you try reinstalling the packages again? Might work.

@darthdeus
Copy link
Author

I've just tried reinstalling into a completely new ~/.emacs.d and still having the same issue :( flx-ido works fine though.

@bbatsov
Copy link
Owner

bbatsov commented Jan 8, 2014

Seems like this is a grizzl issue, judging for other similar issue reports. Unfortunately its maintainer hasn't paid much attention to it lately.

@bbatsov bbatsov closed this as completed Feb 12, 2014
arnab pushed a commit to arnab/emacs-starter-kit that referenced this issue Nov 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants