From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#39015: `isearch-complete1' should use `completion-at-point' or `completion-in-region' Date: Mon, 20 Jan 2020 02:27:06 +0200 Organization: LINKOV.NET Message-ID: <87v9p7km5h.fsf@mail.linkov.net> References: <7da1738e-1e8a-3c12-31bf-741ee171db5c@Alexander.Shukaev.name> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59053"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (x86_64-pc-linux-gnu) Cc: 39015@debbugs.gnu.org To: Alexander Shukaev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 20 01:43:57 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1itLAa-000FJx-Pf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jan 2020 01:43:56 +0100 Original-Received: from localhost ([::1]:55816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itLAZ-0006gE-Na for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jan 2020 19:43:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36864) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itL9l-0005vz-Ng for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2020 19:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itL9j-0007uV-Hn for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2020 19:43:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itL9j-0007te-2B for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2020 19:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1itL9j-00012M-0H for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2020 19:43:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 00:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39015 X-GNU-PR-Package: emacs Original-Received: via spool by 39015-submit@debbugs.gnu.org id=B39015.15794809643924 (code B ref 39015); Mon, 20 Jan 2020 00:43:02 +0000 Original-Received: (at 39015) by debbugs.gnu.org; 20 Jan 2020 00:42:44 +0000 Original-Received: from localhost ([127.0.0.1]:44186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itL9Q-00011E-91 for submit@debbugs.gnu.org; Sun, 19 Jan 2020 19:42:44 -0500 Original-Received: from eastern.birch.relay.mailchannels.net ([23.83.209.55]:31059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itL9O-000114-VR for 39015@debbugs.gnu.org; Sun, 19 Jan 2020 19:42:43 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B91A1E1130; Mon, 20 Jan 2020 00:42:39 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a96.g.dreamhost.com (100-96-11-8.trex.outbound.svc.cluster.local [100.96.11.8]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 292C4E10C1; Mon, 20 Jan 2020 00:42:39 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a96.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Mon, 20 Jan 2020 00:42:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Shrill-Bored: 5e6bd6b4054c0cc1_1579480959573_686788688 X-MC-Loop-Signature: 1579480959573:2580974660 X-MC-Ingress-Time: 1579480959572 Original-Received: from pdx1-sub0-mail-a96.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a96.g.dreamhost.com (Postfix) with ESMTP id 103F67F074; Sun, 19 Jan 2020 16:42:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=a8510jNaaDmQH2hLOQihq6rKY1w=; b= ssatTfY7vtCC79/FT9PJ7hrdRHJ0Sf896IGIRIihLb0O1iQgQLloKCQKry1kgviP vWgC59wR1SMp7nKw7QpIOKnSffm4id0lRFoNnniWW1tjBHx9qLaQZyqlSeA/xmG+ Gx2Mz/Ej06O3b1tbqLrCdM9EojL/tuty45GEFMyvhVo= Original-Received: from mail.jurta.org (m91-129-103-201.cust.tele2.ee [91.129.103.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a96.g.dreamhost.com (Postfix) with ESMTPSA id 698607F075; Sun, 19 Jan 2020 16:42:31 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a96 In-Reply-To: <7da1738e-1e8a-3c12-31bf-741ee171db5c@Alexander.Shukaev.name> (Alexander Shukaev's message of "Tue, 7 Jan 2020 17:19:29 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudeggddvgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgnhhurdhorhhgnecukfhppeeluddruddvledruddtfedrvddtudenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrddvtddupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghmrggtshestehlvgigrghnuggvrhdrufhhuhhkrggvvhdrnhgrmhgvnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:174895 Archived-At: > 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.