GithubHelp home page GithubHelp logo

Comments (11)

minad avatar minad commented on July 19, 2024

Good catch. I will check. I may have missed some unwind-protect or made a mistake when removing the overlays.

from consult.

minad avatar minad commented on July 19, 2024

@travitch I cannot reproduce this on Emacs 27.1 with neither selectrum or icomplete-vertical. I would have noticed something severe like this. Maybe I misunderstood you? Please describe your setup. Emacs version etc, anything special? Can you try with emacs -Q and only loading consult+selectrum? Do you use Icomplete?

from consult.

travitch avatar travitch commented on July 19, 2024

Oh boy, thanks for looking. I can't reproduce with a -Q, so I'll have to track down the culprit. I do not use icomplete, but I do have a bunch of other packages in play. Let me try to narrow it down.

from consult.

minad avatar minad commented on July 19, 2024

Ok cool, I guess it is your setup approaching Emacs bankruptcy ;) Would be great if you can come back to me here such that we can sort out any potential incompatibilities or at least document those. Note that preview is kind of an intrusive feature in how it is implemented, so I don't yet except it to be fully robust.

from consult.

travitch avatar travitch commented on July 19, 2024

Okay, I managed to get a small reproducing example that doesn't make much sense to me.

Using emacs -nw -Q:

  1. Pasting the following into *scratch* and evaluating them just to load up selectrum, consult, and enable consult-preview-mode:
(add-to-list 'load-path "~/.emacs.d/straight/build/selectrum")
(add-to-list 'load-path "~/.emacs.d/straight/build/consult")
(require 'selectrum)
(require 'consult)
(selectrum-mode +1)
(consult-preview-mode)
  1. Split the frame (C-x 3)
  2. Load another file into either frame (e.g., C-x C-f ~/.emacs.d/init.el)
  3. In that frame, run M-x consult-line and hit C-g without typing anything

Given the current versions of selectrum and consult (the latest of both, I believe), I see the first line of the buffer stay highlighted. I suppose the key was just that split somehow.

  • Selectrum hash 945f8fe18933a53b2012a1d179587d90a70bb536
  • Consult hash a566057

from consult.

minad avatar minad commented on July 19, 2024

Ok, I guess I've been unfair towards your config ;) Taking a closer look now!

from consult.

travitch avatar travitch commented on July 19, 2024

No worries, there are all sorts of shady things in my config that were likely culprits

from consult.

minad avatar minad commented on July 19, 2024

Not so fast...

from consult.

minad avatar minad commented on July 19, 2024

Now I have shady things going on in my own config ;) Please check if a62ed91 fixes this for you!

from consult.

travitch avatar travitch commented on July 19, 2024

That did fix the problem for me, thanks! With that I've managed to completely replace ivy/swiper/counsel in my config

from consult.

minad avatar minad commented on July 19, 2024

Works for me too, now I had shady things going on in my config too - heap dump...

Thank you for the report!

With that I've managed to completely replace ivy/swiper/counsel in my config

This is amazing to hear! I've been an ido user for a long time and used a more barebone Emacs - never really used Ivy. Therefore this won't be an exact clone. But if you are missing something which would makes sense, let me know or even better, open a PR :)

from consult.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.