From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Simple isearch concerns Date: Tue, 6 Apr 2021 00:16:06 +0200 Message-ID: <20210405221606.escnahhx57brse4u@Ergus> References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <20210403001539.x4rb55dvh46rmhb3@Ergus> <878s5wmsjp.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1277"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 06 00:18:00 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 1lTXXj-0000Bb-7r for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Apr 2021 00:17:59 +0200 Original-Received: from localhost ([::1]:60912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTXXi-0004GC-5G for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 18:17:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTXWK-0003od-Te for emacs-devel@gnu.org; Mon, 05 Apr 2021 18:16:32 -0400 Original-Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]:38454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTXWH-0004gk-Rv for emacs-devel@gnu.org; Mon, 05 Apr 2021 18:16:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1617660986; bh=oyRyU/eUnoo9jX5CjeUVuhf9Ls5VX2/TD8N/0jAL0VA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=OueGi05CuXDzAVeoW9acBOd78Y8VZvAsbmVB0bvfbH2fWlzz12cljYbMk4VmH1ICAAS+3JqfMfFBuNPgFxayn+zyC3l3wPAAcZ6tAmAwSKgXBU0J7k0J4Gzas7qU3Gt96DOve9IwjJtCMaqAamLJZAjN65m7T29Ueg/ugdrerbXSdeA0RqZbTl4jlbk2epGZmRFky6pI4KCnlgaXRey6C4bBPESnTLffz3L0Kr9uI6k57JtT5teHy0clxUldyAoW09m+HefViil1AeFtK9GT6DDmMFSWBZXusk4oqzQQGBhSoB/UX+3IvgYiySbixaAm5VOeg7QagdP3w56ghS95vA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1617660986; bh=1lis61RzLJqNNWOy5Tcfhw5c6VJuuMSELHbWrkqdmcF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Q0/j52naJdjeWl4J2IlL8gTtOO2RPt/wOszlxw6k//4VETb3K9KqsaN1c/6Ox3AocIx5zZf/wEJ9OkDdPpbpl5pYFuZdONidkoPB7wFRYDqml3QcIVbCAnjGV4FUY/znxuSvhbAMFr130VkVW+Okpxr70G3euVney797VLdFyih+3t5OWZNzbYFgzscjTGdkk03tFUf3ovfOPln9YBg+axkNkXXU/tb3lX+vNyC2ewTJIQ/pN9GlYq8GMXw5sazzA5CDm+0/3Rfg6Vj41GpbTiqZBgzFHB+uOi35XLMEnRSup0TXLsGxYMUjrS/FIIL0dv04NRjdzxwpn+6MWk9MKw== X-YMail-OSG: F4k4wcUVM1k_OMCrIYoNwS18zcG7pb_y4G7XasFcaAHpo7AXswnucmO8jF1f6mv 3IEBMSoduz5LXLXXs_O0wNZZRjZ3gsjDYy971kIH7yxFkdDMMK65oOLrn7_T6MAi5wGxPC2XMtOK lB0qG_1YX5bzRM_luZpZ6zJ9cOh9q.i8TgWcsxmat5enhrK4M211RDmUka2V.xy8CdgRNnDknaAE FeDQTNgwA_CCmkSOuNgrUXeWqVHz9xpzS7UDBdZQE1hzjmhUPyEu7j8sEl.cGfOPH5TKCCk2Ggf0 cRjkIL87dktjcMpQeGujm9RgFuo6yor0R.bqaKG4Jfrxb.0WUVYahv0lErI4GLX7yxu5_XCA6tw5 vxeViOZjojgYzqTfQwp8SIew3ZbYW9VVmIO98Ai5RlzMgVLscxaXjd7KhbXrhb39GSubG8gkG5vm XZsU9Wk8GmGVuEilGLVqLqrP1v57boK60IMPk5c3jy9omrRqdJ88EAaBMPMD2jaNuFjGuwyAcB8z rPqzR_WXxU.4iEKoZm8zpSSjJmdeKMd1ZxAV4RpFbgmNt6eQbSeepob6F6j8TnPzyPv6ixOBF70_ ZVN6uOTioE2_3fZaBD1bS.YvmUAsI1naWMtn.u7MvDX7bzAzAMF149NAJo6zdQINEn4_3g8QxNrz 0MesOVJcYPp5YlN9OnebjBR49jZgO6.PPNYvbZgTN4NVdbxuw00UHsQ1FUU3nKbaTPDGzm7BITeZ stKOX8whPpZpcC_bH9dKR9_EhFyIpMbjGbkGCRx7Y8E8LdMAZqIGaXbcpZKzoCr2sbpyZL7lo9U0 bSvCn6JODFM6pAfMKOGxLdib8l9SV_JRgKGVlOkRaS X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Mon, 5 Apr 2021 22:16:26 +0000 Original-Received: by kubenode528.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a9c8cfc8eb9330844645af9a5c1406b7; Mon, 05 Apr 2021 22:16:23 +0000 (UTC) Content-Disposition: inline In-Reply-To: <878s5wmsjp.fsf@mail.linkov.net> X-Mailer: WebService/1.1.17936 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/16) Received-SPF: pass client-ip=66.163.189.84; envelope-from=spacibba@aol.com; helo=sonic306-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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:267443 Archived-At: On Mon, Apr 05, 2021 at 11:37:30PM +0300, Juri Linkov wrote: >> 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. > >As you see from the discussion, adding a defcustom makes little sense, >because this feature might be needed only occasionally, so better >to be bound to a special key, e.g. C-RET to exit and move to other-end, >S-RET to exit and mark the found string as a region. > Ok for me. >> 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. > >isearch-wrap-function can't be a defcustom too, because it's impossible >to implement automatic wrapping by a wrap function. > Sorry I don't get this one, on yesterday you gave what was IMO the best proposal. Provide 3 options for: disable wrapping, pause and just wrap. Are these really so hard to provide? * Any way if there is a reason for this; then I won't argue about that. >> 3) In general many of the customizable variables in isearch are defined >> with defvar so it is difficult to distinguish between internal and user >> exposed ones. Just to mention some examples: >> isearch-push-state-function, isearch-filter-predicate, the hooks, > >Most of these functions are intended to be modified by different modes >using add-function, so again there is nothing to customize here, sorry. > I use some of them as simple hooks. But again (go to *)