GNU bug report logs - #39015
`isearch-complete1' should use `completion-at-point' or `completion-in-region'

Previous Next

Package: emacs;

Reported by: Alexander Shukaev <emacs <at> Alexander.Shukaev.name>

Date: Tue, 7 Jan 2020 16:20:01 UTC

Severity: minor

To reply to this bug, email your comments to 39015 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#39015; Package emacs. (Tue, 07 Jan 2020 16:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexander Shukaev <emacs <at> Alexander.Shukaev.name>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 07 Jan 2020 16:20:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexander Shukaev <emacs <at> Alexander.Shukaev.name>
To: bug-gnu-emacs <at> gnu.org
Subject: `isearch-complete1' should use `completion-at-point' or
 `completion-in-region'
Date: Tue, 7 Jan 2020 17:19:29 +0100
Not sure why in the first place `isearch-complete1' uses some custom 
auto-completion implementation that is different from a conventional 
solution, perhaps historical reasons.  Thus, I believe that reusing 
either `completion-at-point' or `completion-in-region' to implement that 
functionality is much better in the long run.  This would also allow 
packages, which customize completion behavior, to hook into `isearch' 
auto-completion as well.  See also [1] for example.

[1] https://github.com/abo-abo/swiper/issues/1882




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39015; Package emacs. (Mon, 20 Jan 2020 00:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 39015 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Alexander Shukaev <emacs <at> Alexander.Shukaev.name>
Cc: 39015 <at> debbugs.gnu.org
Subject: Re: bug#39015: `isearch-complete1' should use `completion-at-point'
 or `completion-in-region'
Date: Mon, 20 Jan 2020 02:27:06 +0200
> Not sure why in the first place `isearch-complete1' uses some custom
> auto-completion implementation that is different from a conventional
> solution, perhaps historical reasons.  Thus, I believe that reusing either
> `completion-at-point' or `completion-in-region' to implement that
> functionality is much better in the long run.  This would also allow
> packages, which customize completion behavior, to hook into `isearch'
> auto-completion as well.  See also [1] for example.
>
> [1] https://github.com/abo-abo/swiper/issues/1882

Based on this solution
https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00447.html
it should be possible to write a patch that would hook into `isearch'
auto-completion.  I seems I can't do this since I don't understand
how to test it.




This bug report was last modified 5 years and 147 days ago.

Previous Next


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