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: Simple isearch concerns Date: Sat, 3 Apr 2021 02:15:39 +0200 Message-ID: <20210403001539.x4rb55dvh46rmhb3@Ergus> References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> 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="40755"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 03 02:16:50 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 1lSTy5-000AUv-Mt for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Apr 2021 02:16:49 +0200 Original-Received: from localhost ([::1]:36272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSTy4-0003F0-Pe for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Apr 2021 20:16:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSTxT-0002oV-0a for emacs-devel@gnu.org; Fri, 02 Apr 2021 20:16:11 -0400 Original-Received: from sonic314-14.consmr.mail.bf2.yahoo.com ([74.6.132.124]:39717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSTxO-0003vk-MM for emacs-devel@gnu.org; Fri, 02 Apr 2021 20:16:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1617408962; bh=bYqvh5EZEWkIllxOPd0YuldCZQtuZFDF2De/21ETCQo=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=jZnNZn1vSmkVDd79gHnwGdpE/HAvz4elaGwcU0hChBVuQabzNpWNr9NgklMqqE1dz1xjbw08xvEhZPxHV+hTzmf0W9LJNbdGEbtespDYbzEX5lpGzHl1EnUXGzR6Y0s1Hj7ovAfjzVt61XcIf7sietE1CCj9qsavqcK6/IQVM6GPbwdVnloW6L6c9iKm0hQCGEjy/AnnhsINB1K5l8nBS/3ixjxrfg/RQinjXxjbbeIA9ziVhFg6cmQCG54WtvzgtilAQPNMVuOoNpJ/tIVeTtoks9YyrRsJm8e11N3r0xYid33isTCHAqO41nOCcKdCINJJHuhf0ohYZuOfzXlcHA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1617408962; bh=H37YAaKW/wp4okMJSv3YUlBMky9lg25h/Sr2T4fLHCP=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=bsjImCxiaCM6jmTCQq48dOGCxMYPaPQBYni9IajkGiTlgdKDC2rVsDfmBQ8GFjU++coSNqMIGxE4VSAkJY69BFMjbcSzqOrMX7QM3Xl7dIXmLUAh35bScJCP1WwJXdzlUh0eCB6soKTnEFfw9Ju16amqZsn09zwpGWAPdG+RxO2XhtQePoXQwXERi4KVIilj5Yvl/LxrHme55D7by7+/4ULU54QJN46sIuWd9BTBRnbs+B76Ezb+8z8VJmXQH3PymAf5+JeiRoi1HUb3veCgPMPHkGFAJg3JvoG3X8MT4VGL+1Vq8Dc/zdGtAkymIuGmbBz1nCMU6RoQytY5/emdBw== X-YMail-OSG: 3C5RZw0VM1myQDLr8m8SpMQn0wWkOacYgUPSexWbskiHLYQIjazOGuddt7ubzw7 lwp59aL3HnVPxzZv.DkwMNW6kgRjDGW7AxcY8xE1mMXps.atGqlxOtMe0PJPg_PQF5kj0RBervbk eQWoeypwl5bh5Oq64YuTigmS3zp6LmCzm093hGqOaA0GzWVlNtlj_ssY6Bt8Hijx.9rr9HXAxzat NIZTejl.AIz3JOZigQDpWaouFDlD70Q_6zBj6Y8XUuwsG5846Z1wBQUHgsyNix3Y9i0DFnk_0Wxi w2kf1s76umOEfjx3o.4STyNHb5X2SFeuXykeAviz60bZuAlK5Myat0HfQzcCMVc7ZRiZzW0UqaZW j.Q04NS5sXKmXVMiNpVndrLwH1AVCx1YPJvQjM7CE0MBJYVJ6aorkFuqdjdm3UzpxN442vpKV.Dz xsevAXmL4r90f8_NZ7P3AbzfxpMpzAyuhrJvG.ylV.NTo7F_3yrJATKjOJjLNgVUsHNLaRq6ecUJ ZGF5SSrJ2mYV6W_3jxe9sPVXCAmFWWaqrZt4o.B0SkFHgkmQNUmPvAn9qgygpUbPthN0CQM7CIRQ iHNxOtXuvpeqlh5.MvBgLADi4hXt.SMb9HJETLOtP_YYuJvTfzgsGq3PdXf3JXptTMcmW9aA_xpP ieYoMCsFWKSwliC_1xoUY96u_kXsYUDhHABFOYjhGSzpE6ehzBUtr7pgjmgUAaBuzekU3QbrGOUp pgiL.CzxcYxhjw0ef3hyk1BAZ4_CERSksnjKB3gEmTxriQIQdIGDvCQFctvHZkGsDSl0o6K3W_oz edk0v6y66XcdN2oqB0dFQFkY9Y8iulGS6uEDXa.DLo X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Sat, 3 Apr 2021 00:16:02 +0000 Original-Received: by kubenode512.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID ecb7100349b6b7b0fd948bc3649d6708; Sat, 03 Apr 2021 00:15:58 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.18033 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=74.6.132.124; envelope-from=spacibba@aol.com; helo=sonic314-14.consmr.mail.bf2.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:267313 Archived-At: Hi: After some time I returned to isearch and I am concerned about some details and I am not sure if they are issues or design choices. IMHO they look more like issues giving limited experience to the users; but probably I am wrong ... 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. 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. 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, I am wondering if one of the main maintainers is planning to do some refactor and cleanup to the isearch code because it looks like it is using some old things and the code has evolved into a sort of labyrinth (for example it is not using the minor-mode functions, but manually implementing a similar behavior), there are many useless conditions that could be replaced with substitutions, redundant variables and so on... Are there any WIP related? Best, Ergus