From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.devel Subject: Re: Simple isearch concerns Date: Sat, 03 Apr 2021 12:28:31 +0200 Message-ID: References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <20210403001539.x4rb55dvh46rmhb3@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16163"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 03 12:29:18 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lSdWm-000452-12 for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Apr 2021 12:29:16 +0200 Original-Received: from localhost ([::1]:50540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSdWl-0007i9-0v for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Apr 2021 06:29:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSdWD-0007IM-Rw for emacs-devel@gnu.org; Sat, 03 Apr 2021 06:28:41 -0400 Original-Received: from sonic302-20.consmr.mail.ir2.yahoo.com ([87.248.110.83]:33406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSdWB-0000Fw-N1 for emacs-devel@gnu.org; Sat, 03 Apr 2021 06:28:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1617445715; bh=WA8yQ32svomVeSr+woRvrLAbbuARG1Axe+NDNw7DGYc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=d62t00ZL4QGdiWXln4T+Q2hlxRyEJrN7PHp6i7Dn1cEG00pE/3iRYuh3KIO7XMKTLIhPzBSUQIEkdkn2uVPkU8O5xbZXEkadf/WkrCAPo6ngTxxBuU0aDHaf+y5oexAq9Nh4IdP24pqmCr8JC/qg/WuRRCq4XkWTNKyExFnUkdN6xnYC/MAg2o3VgDOetaTI4pFHSGTv6EkwovUg8S4LTXwu+Kg61Q7LK8UoH3cPk3TqcDMjrL9VV52DllF5ikvEPMyMzX/nBpyaEgkq2KK63WBicSbkp5pvyIxZ3zntAuO8OWo5wLSW4NzOFFKXp1iNlrpBjPyvo2IBXumI4ug63w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1617445715; bh=lFo3+n2BhNlq61uwG8/uNuXKcgqkekVAOWafQqBpQ1/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=CCwbXpuDwtkYfnFZKinII2pYqKDSx+bZvx06DMvPuyfovOdvERjzzIvv8PZ+Lbr2EFJnY5OqXQx+Ryp2PQcqw2PLqELCdZSfSbWy/eGtOWXrDkdWkN/pITkFffhjv3GMtxDC2KYnYCZTBEJ9PZTqnNEmJTJ4fYF1xfxqrCDCR+naTVcwq4wt4chhfXs9kNdTkJiR7nvgymc8KAiQLBqL8wLqnBkPs+UfuyYDqtSY09gbzVGSXXk0/BxmhisM77zy8Kv9kNm41wo2zuG4dmQaJgUrUVfOa8Za6h5VcM//wULawc10aTf9DL3V2zZeE5xSezuacq8UPqyyURaVCtnvSg== X-YMail-OSG: M_trRa0VM1mCp.uvRnfjw6yrNdU6JfCvt9hbHQ33NIEDnHklCHrNISbPZHLD_E_ aGhg2aqYrIQtmRshh4AD0X3EQkS.rCQwLPp7T4vwECnD2Pw2Tr3FxOC_991SGD3s_9Jm4N9yVdYO Kw93rW0.ARkkMZJvNs7BdCeErZ9iW447g20aLZ0klQGJcBa8YLQEPYl7Ncj_TimYIqlfTYjxY_MG a56mIp9h.Bc2J_ImOcDumerZ.yO5EQN_bTsayh9nH8trk3IRy4LKoNJYQISFI816UYWzEo5zeiZR 66YxBqh71Wc5aFxCBfw.OCIXLZE2pjjdc4ZhluGk0xgSk5h_RnNfjnHPu0ZAx3BpNY1d9FOlYClN 60d2k0bTOzj9rdfLiqN6Yrk4i40s102aqE4w38L2wjKr6ckgXJSjUfp4InVMR6Ww6tt9eJOf3j1r lQ_k.A341nZ7GDs0X2miFPEJ_c_PkcJwWtuLo9c1rylt9PYG4RSXg_SfYdb6DPATstdNc6j5y_Zg RGPTnZUaQTiW5qPlH8SCCbb7KZWZO9YIYV16_PVmK9XT7ddWyiIdKr_CYB6sBjJYN73RMzJe6xDs N.R2FwFscc58n8QpOJ_K98kVF4JU7geBXdTR4fZHLIN2zRQUcYDhNlBwOIiX0WjZN2Wiqff6yZXq gcFHW9FVr9iY_lZ1CWEYTCutNOkKE5Umtt.hKcjBomOHD.SseWHi4LuGGdet6zFHsIavdDLyytF4 qZQm1vW4s0MYZ21yy5O4jwR9Br8fyQh8.Yrz7A1VPhidNHd1AjKBvhyULJE0dbyCk5OLjgrdHh01 41tp.Dg68MS4DrYXxEEGB81NLb.P4Q.XTgyRgdtijp X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ir2.yahoo.com with HTTP; Sat, 3 Apr 2021 10:28:35 +0000 Original-Received: by kubenode510.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b3be906b23fc3085a3687ab7624bf1d3; Sat, 03 Apr 2021 10:28:33 +0000 (UTC) In-Reply-To: <20210403001539.x4rb55dvh46rmhb3@Ergus> (Ergus's message of "Sat, 3 Apr 2021 02:15:39 +0200") X-Mailer: WebService/1.1.17936 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/16) Received-SPF: pass client-ip=87.248.110.83; envelope-from=mardani29@yahoo.es; helo=sonic302-20.consmr.mail.ir2.yahoo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267332 Archived-At: Ergus writes: > > 1) Are there any option to move the cursor to the start of the candidate > after the search? I see that there is an isearch-other-end. But it is > not a custom but an internal variable. Now I am using a hook but it > seems a bit hacky. You can create your own command that exits the search and moves the point to the other end of the match. See https://www.emacswiki.org/emacs/ZapToISearch (`isearch-exit-other-end'). > > 2) I want to disable wrapping and I see that there is an > `isearch-wrap-function` but it is a variable not a custom and it is not > documented in detail what is expected to be there. Did you try to set it to something that is not `nil' but that will still do nothing, like #'ignore?