GithubHelp home page GithubHelp logo

Comments (7)

abo-abo avatar abo-abo commented on July 22, 2024

Can't reproduce, works fine for me.

from avy.

kaushalmodi avatar kaushalmodi commented on July 22, 2024

OK, I will then need to understand how one of the avy goto functions works and see what happens differently if the same buffer is shown in both windows vs different buffers in the windows.

I can consistently recreate this problem by taking any buffer and then,

  • C-x 1
  • C-x 3
  • M-x avy-goto-line

The problem does not show up when doing M-x avy-goto-word-1. So it's probably specific to avy-goto-line implementation. The problem did not show up for avy-goto-word-1 because I had its style se to 'pre (as shown below).

Also if this helps, this is the only customization I do for avy:

    (setq avy-style 'at-full)
    (setq avy-styles-alist '((avy-goto-word-1 . pre)))

from avy.

kaushalmodi avatar kaushalmodi commented on July 22, 2024

Actually, the problem happens when I set the avy style to 'at-full. The problem went away after I eval'd

(setq avy-style 'pre)

Summary: Problem with any avy command when the same buffer is shown in multiple windows and avy-all-windows is t and that command's style is set to 'at-full.

from avy.

abo-abo avatar abo-abo commented on July 22, 2024

OK, I see it now.

from avy.

abo-abo avatar abo-abo commented on July 22, 2024

This change alleviates the problem slightly. I don't understand why this is happening, could be an Emacs bug.

from avy.

kaushalmodi avatar kaushalmodi commented on July 22, 2024

I see that the problem starts happening at the point where we run out of jump shortcuts (avy keys). For example, by default we have 9 keys in avy-keys. The problem triggers after all 2-key combinations are exhausted, after N^2 - N combinations where N is number of keys in avy-keys. I was able to alleviate the problem at least for avy-goto-line (with a 2-window frame config) by increasing the number of keys in avy-keys.

Example:

(setq avy-keys-alist '((avy-goto-line . (?a ?s ?d ?f ?g ?h ?j ?k ?l ?b ?n ?m))))

But the problem returned once I had 4 windows in the frame and there were more lines to index than the number N^2-N

from avy.

kaushalmodi avatar kaushalmodi commented on July 22, 2024

Also, from the line where this problem starts occurring, the line contents are shifted to the right even when the style for avy-goto-line is 'at-full.

from avy.

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.