Giter Site home page Giter Site logo

Comments (5)

dimitri avatar dimitri commented on September 3, 2024

I think that's because the point in the scrolling window is left somewhere else that (point-max), do you want to try proposing a fix?

from switch-window.

spontarelliam avatar spontarelliam commented on September 3, 2024

I'll give it a try.
-Adam

On Sun, Sep 8, 2013 at 8:00 AM, Dimitri Fontaine
[email protected]:

I think that's because the point in the scrolling window is left somewhere
else that (point-max), do you want to try proposing a fix?


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-24019726
.

from switch-window.

dimitri avatar dimitri commented on September 3, 2024

Cool, thanks!

from switch-window.

spontarelliam avatar spontarelliam commented on September 3, 2024

Attached is a fix I put together that seems to work reasonably well. I'm
new to Elisp, so if I've done anything seemingly dumb, please feel free to
change it.

The basic idea is to create a hash table containing the buffer names (keys)
and flags (values) indicating whether the point was on the last line as
soon as C-x o is pressed. Then once a new window is selected, the hash
table is passed into reset-point, and if the flag=1, the point is moved to
point-max.

You can test this by opening 3 windows, and running a simple bash loop
printing out a counter ever second. As long as the point is on the last
line when C-x o is pressed, it should be moved to the last line upon
choosing a window.

The problem I'm still having is if the timeout occurs or the user presses
C-g. I added a call to reset-point for those cases, but it doesn't seem to
work. Maybe you'll know why.

Thanks,
Adam

On Sun, Sep 8, 2013 at 4:22 PM, Dimitri Fontaine
[email protected]:

Cool, thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-24028603
.

from switch-window.

dimitri avatar dimitri commented on September 3, 2024

I think you need to make a git branch and a proper pull request, because I'm not seeing your attachment from the github website...

from switch-window.

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.