Comments (5)
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.
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.
Cool, thanks!
from switch-window.
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.
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)
- Switching without the "hint" HOT 1
- Switch Window Kill HOT 2
- Setq line-space to 0 when use asciiart HOT 1
- Error trying to use switch-window-minibuffer-shortcut HOT 4
- Unknown upattern `quote asciiart` HOT 4
- Suggest add a tag: v1.5.0
- Add buildin feature: golden-ratio HOT 1
- Bug in alphabet shortcut style HOT 1
- Support "other-window" functions (ones that start C-x 4) HOT 1
- Customize label face? HOT 6
- Window numbers are incorrect in daemon mode HOT 5
- An error occurred when there were more than 8 windows HOT 3
- Key configuration HOT 2
- Use popup in ascii mode HOT 4
- Problem with find file other window HOT 1
- "end of buffer" in emacs 27.1 HOT 2
- switch-window-multiple-frames returns error in EXWM
- use posframe instead of overlays? HOT 1
- error when changing window with 5 windows asciiart and querty HOT 4
- Can't switch out of minibuffer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from switch-window.