Comments (7)
Can't reproduce, works fine for me.
from avy.
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 The problem did not show up for avy-goto-line
implementation.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.
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.
OK, I see it now.
from avy.
This change alleviates the problem slightly. I don't understand why this is happening, could be an Emacs bug.
from avy.
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.
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)
- Reverse the order of key-labels for avy-goto-*-above HOT 2
- Avy's upstream and its version in elpa.git diverged
- Dimming buttons and headers HOT 1
- First char not highlighted
- Is there a workaround for shifted characters in variable-pitch-mode? HOT 1
- avy-copy/move-line/region expects a keystroke on emacs 28 HOT 2
- add-text-properties can be called on empty string
- Contribution Guidance Request: avy-goto-char-timer populate lead key face automatically
- How do I "activate" the avy-org-* commands?
- avy-dispatch-alist to invoke "isearch-forward-symbol-at-point" on C-s HOT 2
- What does de-bruijn style do? HOT 1
- avy-goto-char-2 display overlays after first character like Neovim's leap
- Go to word(-0) in line? HOT 1
- avy-org-refile-as-child error
- avy-org-refile-as-child error
- [FR] Select two arbitrary characters and copy the content between them HOT 1
- Temporarily disable prettify-symbols-mode
- avy-linum-mode clashes with visual-line-mode
- The mouse position after executing the avy-copy-region command?
- Some useful functions (with suggested optimizations) HOT 1
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 avy.