Closed bymoz089 closed 4 years ago
Question is, why would you want to go there? Suppose you have:
ELISP> emacs
Pressing C-a takes you to the beginning of emacs
, not the beginning of ELISP>
. We could also advice beginning-of-line
to bind inhibit-field-text-motion
, but why? The current behavior is on purpose. Unless I'm missing something.
My point
lands very often at the beginning of those lines, as described in the reproduction example.
But since you wrote: the behavior is intended, I'll close this issue and write a small wrapper function for the avy-goto-char-in-line
command into my initrc
.
avy-goto-char-in-line
fails when point is at the beginning of a REPL prompt.Reason is, those pompts are fields and
regexp-quote
can't jump over fields.Possible Solution: set variable
inhibit-field-text-motion
to't
.How to reproduce the bug:
M-x ielm
avy-goto-line
to a line, which contains a repl prompt. So point is atE
ofELISP>
avy-goto-char-in-line
(it wil fail, with "zero candidates" message)Edit: this issue is present in all comint-derived modes like
M-x shell
M-x ielm
and inslime
.Emacs manual: Shell Prompts
Emacs manual: Fields