Coder Social home page Coder Social logo

Comments (4)

tslilc avatar tslilc commented on July 25, 2024

I'd be interested in helping to solve this problem, but to be sure, is this some issue with the way emacs handles set-window-point? There's not a whole lot going on in ctrlf-cancel, so i imagine this comes from here:

(set-window-point (minibuffer-selected-window) ctrlf--starting-point)

Did you have any details on this bug?

from ctrlf.

raxod502 avatar raxod502 commented on July 25, 2024

It probably has something to do with redisplay. After a display change, Emacs does not compute visual line numbers, window lines, etc. until a redisplay has happened. See e.g. code in Selectrum which works around this issue, and you can also see it right in ctrlf-cancel. As well worked around in ctrlf-minibuffer-post-command-hook. (Sheesh.)

Actually, looking at ctrlf-cancel, would moving the redisplay call to before setting the window point work?

from ctrlf.

tslilc avatar tslilc commented on July 25, 2024

Thanks for the response. I hadn't been using CTRLF for a while, and now using Melpa version ctrlf-20200523.1558 i can't seem to reproduce this any more.

I can confirm that removing the (redisplay) call from ctrlf-cancel re-introduces the issue with every search, but even at it's present location (after set-window-point) it seems to be prohibiting the issue for me. Perhaps you have some other way of reproducing this, though.

from ctrlf.

raxod502 avatar raxod502 commented on July 25, 2024

At first glance just now, I cannot reproduce the issue. Closing for now.

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.