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

Comments

Projects
None yet
2 participants
@Wilfred
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 in 955585e Oct 9, 2016

@abo-abo

This comment has been minimized.

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