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

counsel-describe-face errors when point is on a face #703

Closed
Wilfred opened this issue Oct 8, 2016 · 1 comment
Closed

counsel-describe-face errors when point is on a face #703

Wilfred opened this issue Oct 8, 2016 · 1 comment

Comments

@Wilfred
Copy link
Contributor

Wilfred commented Oct 8, 2016

If point is on a defface form, then counsel-describe-face errors with:

Debugger entered--Lisp error: (wrong-type-argument stringp hexl-ascii-region)
  regexp-quote(hexl-ascii-region)
  (let ((re (regexp-quote preselect))) (cl-find-if (function (lambda (x) (string-match re x))) coll))
  (or (and require-match (not (eq collection (quote internal-complete-buffer)))) dynamic-collection (let ((re (regexp-quote preselect))) (cl-find-if (function (lambda (x) (string-match re x))) coll)))

The error seems to be this call to regexp-quote in ivy--reset-state:

      (when preselect
        (unless (or (and require-match
                         (not (eq collection 'internal-complete-buffer)))
                    dynamic-collection
                    (let ((re (regexp-quote preselect)))
                      (cl-find-if (lambda (x) (string-match re x))
                                  coll)))
          (setq coll (cons preselect coll))))

I'm not sure how a symbol ended up in the ivy state struct in the first place. I think the code is expecting strings.

I'm on Emacs 25.1.

@abo-abo abo-abo closed this as completed in 955585e Oct 9, 2016
@abo-abo
Copy link
Owner

abo-abo commented Oct 9, 2016

Thanks.

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

2 participants