GNU bug report logs - #76440
30.1; different behavaiour of 29.4 and 30 for ivy completition of absolute paths

Previous Next

Package: emacs;

Reported by: Evgeniy Dushistov <dushistov <at> mail.ru>

Date: Thu, 20 Feb 2025 16:17:02 UTC

Severity: normal

Tags: patch

Fixed in version 30.1

Done: "Basil L. Contovounesios" <basil <at> contovou.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Basil L. Contovounesios" <basil <at> contovou.net>
To: Evgeniy Dushistov <dushistov <at> mail.ru>
Cc: Stefan Kangas <stefankangas <at> gmail.com>, 76440 <at> debbugs.gnu.org, Oleh Krehel <ohwoeowho <at> gmail.com>
Subject: bug#76440: 30.1; different behavaiour of 29.4 and 30 for ivy completition of absolute paths
Date: Mon, 24 Feb 2025 12:51:25 +0100
[Message part 1 (text/plain, inline)]
tags 76440 + patch
quit

Evgeniy Dushistov [2025-02-20 22:50 +0300] wrote:
>> > Evgeniy Dushistov writes:
>> >
>> >> After start open "/tmp" directory, and then press
>> >> C-x C-f and then type /var, the content of minibuffer would be
>> >> "/tmp//var",
>> >> if after that press TAB
>> >> the result would be "/tmp/var"
>> >> while expected "/var".
>> >>
>> >> emacs 29.4 gives "/var", while emacs 30.1-rc1 gives "/tmp/var".
>
> The similar, but much worse issue competition of absolute paths
> with gud-gdb+ivy:
>
> M-x gud-gdb
> In minibuffer:
> "gdb --fullname /tmp"
>
> press TAB, and for some reason get:
> "gdb --fullname tmp/"
>
> ok, I fix this and add almost all path to 
> existing directory (build-dir):
> "gdb --fullname /tmp/build-d"
>
> press TAB, and get:
> "gdb --fullname build-dir"
>
> so it just remove for some reason "/tmp" when complete path,
> again I fix it in minibuffer, and add almost all path to existing
> binary(exe):
> "gdb --fullname /tmp/build-dir/ex"
>
> press TAB and get:
> "gdb --fullname /tmp/build-direxe"
>
> instead of
> "gdb --fullname /tmp/build-dir/exe"
>
> So with gdb-gud+ivy+emacs 30.1 TAB almost always gives not
> valid path for some reason, while with emacs 29.4 all works perfect.

Could you please check whether

  https://github.com/abo-abo/swiper/pull/3065

fixes these issues for you?

I attach the constituent patches for convenience.

Thanks,
-- 
Basil

[0001-Fix-ivy-completion-in-region-return-value.patch (text/x-diff, attachment)]
[0002-Fix-some-point-placement-on-exact-completion-exit.patch (text/x-diff, attachment)]
[0003-Add-ivy-completion-common-length-regression-tests.patch (text/x-diff, attachment)]
[0004-Fix-ivy-completion-common-length.patch (text/x-diff, attachment)]
[0005-Prefer-base-size-over-ivy-completion-common-length.patch (text/x-diff, attachment)]

This bug report was last modified 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.