Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix `avy-goto-subword-0' leading chars ordering #27

Closed
wants to merge 1 commit into from
Closed

Fix `avy-goto-subword-0' leading chars ordering #27

wants to merge 1 commit into from

Conversation

aethanyc
Copy link
Contributor

@aethanyc aethanyc commented May 9, 2015

  • avy-jump.el (avy-dowindows): Add an argument `reverse' for run body in
    reversed window list.

Fixed #14.

According to `window-list' documentation, the selected window
will appear on the first item in the list. So I revert e931071.

In `avy-goto-subword-0', the candidates had been collected in natural
order per window. If we traverse in reversed windows list, the leading
char will be in correct order across multiple windows.

@abo-abo
Copy link
Owner

abo-abo commented May 9, 2015

I don't like adding another argument to avy-dowindows. That argument will be the same most of the time and therefore useless. Just modify the candidates collector. Or reverse the window list always.

Also, do you have an Emacs copyright assignment? Only 15 lines are allowed without it.

* avy-jump.el (avy-goto-subword-0): Collect candidates by the ordering
  of the window.

Fixed #14.
@aethanyc
Copy link
Contributor Author

aethanyc commented May 9, 2015

Yes. I've signed Emacs copyright assignment.

@abo-abo
Copy link
Owner

abo-abo commented May 9, 2015

So the issue currently isn't with the current window, it's just with the order of the other windows?

abo-abo added a commit that referenced this pull request May 9, 2015
@abo-abo
Copy link
Owner

abo-abo commented May 9, 2015

See if this nreverse solves the problem.

@aethanyc
Copy link
Contributor Author

aethanyc commented May 9, 2015

Yes. The issue is with the order of the other window.

abo-abo added a commit that referenced this pull request May 9, 2015
@aethanyc
Copy link
Contributor Author

aethanyc commented May 9, 2015

nreverse makes the leading chars count from the bottom of the current window. It's good enough for me. Thanks.

@aethanyc aethanyc closed this May 9, 2015
@aethanyc aethanyc deleted the fix-issue-14 branch May 9, 2015 12:45
abo-abo added a commit that referenced this pull request May 9, 2015
@abo-abo
Copy link
Owner

abo-abo commented May 9, 2015

OK, hopefully this is the last iteration.

@aethanyc
Copy link
Contributor Author

Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leading chars does not start counting from focus window
2 participants