Coder Social home page Coder Social logo

Comments (6)

raxod502 avatar raxod502 commented on July 25, 2024

I think you mean C-x C-f followed by M-r, because in vanilla Emacs C-x C-f followed by C-r just does an Isearch on the current contents of the minibuffer, without any interaction with history. Let me know if I guessed wrong here.

Anyway, I pushed a commit that should fix all the compatibility issues. Let me know if it works for you.

from ctrlf.

raxod502 avatar raxod502 commented on July 25, 2024

(I'm assuming you are using Selectrum, because otherwise I can't think of any reason M-r would not work. See radian-software/selectrum@551b119.)

from ctrlf.

gcv avatar gcv commented on July 25, 2024

Multiple separate but related problems here with both ctrlf and selectrum, I'm not exactly sure how to keep the conversation organized between this and radian-software/selectrum#4, but I'll try. :)

in vanilla Emacs C-x C-f followed by C-r just does an Isearch on the current contents of the minibuffer, without any interaction with history.

No, it definitely interacts with history! When used in find-file, C-r does a search through file-name-history, not the default minibuffer-history. I'll comment on that further in the other ticket.

The breakage I'm referring to here occurs when ctrlf is the only package installed in an Emacs sandbox (no configuration, naturally). Steps to reproduce:

  1. enable ctrlf-mode
  2. C-x C-f
  3. C-r errors out: ctrlf--start: Command attempted to use minibuffer while in minibuffer

The expected result is incremental search through file-name-history. It's okay to fall back on isearch-backward here rather than ctrlf-backward-*.

from ctrlf.

raxod502 avatar raxod502 commented on July 25, 2024

Okay. Thanks for the explanation. This is bizarre to me because I cannot find the code that implements this behavior anywhere in Isearch. It would be helpful if someone could point to the implementation. That would help to determine why using Isearch within Selectrum breaks ("text is read-only" error).

from ctrlf.

raxod502 avatar raxod502 commented on July 25, 2024

I guess that's a separate issue, though, from CTRLF overriding the bindings which also breaks usage without Selectrum. Open a new issue against Selectrum if it bothers you; the bug you reported here should be fixed.

from ctrlf.

raxod502 avatar raxod502 commented on July 25, 2024

This thread is being closed automatically by Tidier because it is labeled with "waiting on response" and has not seen any activity for 90 days. But don't worry—if you have any information that might advance the discussion, leave a comment and I will be happy to reopen the thread :)

from ctrlf.

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.