abo-abo / swiper

Ivy - a generic completion frontend for Emacs, Swiper - isearch with an overview, and more. Oh, man!
https://oremacs.com/swiper/
2.29k stars 338 forks source link

Completion inserted in wrong place with new emacs version. #3056

Open chep opened 3 weeks ago

chep commented 3 weeks ago

Since this commit in emacs: 6b7ff60a5e71c161a064e27509fe4fb95cf74ddd (I usually use master branch) I'm not able to use (completion-at-point) when ivy-mode is enabled . Completion works fine but is inserted in the wrong place.

Example:

I have this directory: /tmp/directory/child I run M-x compile Delete the compile line and type cd /tmp/directory/ch and then press TAB (completion-at-point) I now have cd /tmp/directchild in the minibuffer.

I don't know if this is an emacs bug or if ivy-mode has to adapt to a new behavior.

It can be reproduced with emacs -q:

(add-to-list 'load-path "~/.emacs.d/straight/repos/swiper/")
(require 'ivy)
(ivy-mode)

Then, compile command is a good exemple to reproduce the bug.

(I got commit hash with git bisect)

basil-conto commented 3 weeks ago

Thanks, and sorry for the delay in resolving this.

Is this problem already covered in https://github.com/abo-abo/swiper/issues/1755#issuecomment-2286316521 and #3051?

basil-conto commented 3 weeks ago

I have hidden and reported this off-topic comment as spreading malware; it's been recurring across GitHub today.

image

See also: https://github.com/Anjok07/ultimatevocalremovergui/issues/1533#issuecomment-2310471876

chep commented 3 weeks ago

It sounds the same as #1755. Sorry for the duplicated issue.

chep commented 3 weeks ago

I tried the branch of the pull request and it seems to solve the issue.