GNU bug report logs -
#68875
[PATCH] ; Fix mid-symbol updating/cycling completion preview
Previous Next
Reported by: Eshel Yaron <me <at> eshelyaron.com>
Date: Thu, 1 Feb 2024 17:08:02 UTC
Severity: normal
Tags: patch
Fixed in version 30.1
Done: Eshel Yaron <me <at> eshelyaron.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68875 in the body.
You can then email your comments to 68875 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68875
; Package
emacs
.
(Thu, 01 Feb 2024 17:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eshel Yaron <me <at> eshelyaron.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 01 Feb 2024 17:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
The attached patch fixes an issue where the completion preview overlay
(of Completion Preview mode) could at certain cases appear in the wrong
place when point is in the middle of a symbol.
To observe the effect of this patch:
1. emacs -Q
2. In the *scratch* buffer, say M-x completion-preview-mode RET
3. Type "defaul-di"
4. C-3 C-b to place point before the hyphen
5. Type "t"
The completion preview overlay appears after "-di", showing "rectory".
So far so good.
6. M-x completion-preview-next-candidate RET
Before this patch, the preview now shows "-directory", thus repeating
the existing suffix "-di". With this patch, the preview shows just
"rectory", as expected.
[0001-Fix-mid-symbol-updating-cycling-completion-preview.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68875
; Package
emacs
.
(Fri, 02 Feb 2024 12:55:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 68875 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> Tags: patch
>
> The attached patch fixes an issue where the completion preview overlay
> (of Completion Preview mode) could at certain cases appear in the wrong
> place when point is in the middle of a symbol.
>
> To observe the effect of this patch:
>
> 1. emacs -Q
> 2. In the *scratch* buffer, say M-x completion-preview-mode RET
> 3. Type "defaul-di"
> 4. C-3 C-b to place point before the hyphen
> 5. Type "t"
> The completion preview overlay appears after "-di", showing "rectory".
> So far so good.
> 6. M-x completion-preview-next-candidate RET
> Before this patch, the preview now shows "-directory", thus repeating
> the existing suffix "-di". With this patch, the preview shows just
> "rectory", as expected.
Sorry, that patch contained a thinko (which was caught by one of the
existing tests, fortunately). I'm attaching an updated patch below.
Thanks,
Eshel
[v2-0001-Fix-mid-symbol-updating-cycling-completion-previe.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68875
; Package
emacs
.
(Wed, 21 Feb 2024 17:26:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 68875 <at> debbugs.gnu.org (full text, mbox):
close 68875 30.1
quit
Eshel Yaron <me <at> eshelyaron.com> writes:
>> Tags: patch
>>
>> The attached patch fixes an issue where the completion preview overlay
>> (of Completion Preview mode) could at certain cases appear in the wrong
>> place when point is in the middle of a symbol.
>>
>> To observe the effect of this patch:
>>
>> 1. emacs -Q
>> 2. In the *scratch* buffer, say M-x completion-preview-mode RET
>> 3. Type "defaul-di"
>> 4. C-3 C-b to place point before the hyphen
>> 5. Type "t"
>> The completion preview overlay appears after "-di", showing "rectory".
>> So far so good.
>> 6. M-x completion-preview-next-candidate RET
>> Before this patch, the preview now shows "-directory", thus repeating
>> the existing suffix "-di". With this patch, the preview shows just
>> "rectory", as expected.
>
> Sorry, that patch contained a thinko (which was caught by one of the
> existing tests, fortunately). I'm attaching an updated patch below.
Pushed to master, and closing the bug.
bug marked as fixed in version 30.1, send any further explanations to
68875 <at> debbugs.gnu.org and Eshel Yaron <me <at> eshelyaron.com>
Request was from
Eshel Yaron <me <at> eshelyaron.com>
to
control <at> debbugs.gnu.org
.
(Wed, 21 Feb 2024 17:26:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 21 Mar 2024 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 127 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.