Skip to content

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

Description

@Wilfred

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions