prescient.el icon indicating copy to clipboard operation
prescient.el copied to clipboard

ivy-prescient-retain-classic-highlighting seems to not work in some situations

Open Vonfry opened this issue 6 years ago • 2 comments

Description

In some special situations, ivy-prescient-retain-classic-highlighting seems to not work as description in #11 .

First, let us see the correct color in my config with ivy-prescient-retain-classic-highlighting. In this situation, I search a simple string and get the correct highlighting color for results.

image with correct color

And if searching with regexp, the ivy-prescient-retain-classic-highlighting appears to be back to setting nil.

image with incorrect color

Reproduce:

First

;; $ emacs -Q # and run in ielm or in init.el

(add-to-list 'load-path <some-path such as ivy, prescient, ivy-prescient>)

(require 'ivy)
(ivy-mode t)
(require 'ivy-prescient)
(setq ivy-prescient-retain-classic-highlighting t)
(ivy-prescient-mode t)

Second

Compare with M-x -> ivy.* and M-x -> ivy.

Vonfry avatar Nov 16 '19 03:11 Vonfry

Thanks for the report. Just to clarify, you observe different highlighting behavior if you are using stock Ivy to search for a regexp, without ivy-prescient.el?

raxod502 avatar Nov 16 '19 20:11 raxod502

Run emacs -Q

Without ivy-prescient.el:

image

image

With ivy-prescient.el and ivy-prescient-retain-classic-highlighting:

image

image

Vonfry avatar Nov 17 '19 01:11 Vonfry