From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Simple isearch concerns Date: Tue, 11 May 2021 13:20:42 +0700 Message-ID: References: <20210403001539.x4rb55dvh46rmhb3.ref@Ergus> <87wnsurdr7.fsf@gmail.com> <87fszij6to.fsf@mail.linkov.net> <87v98asulc.fsf@gmail.com> <87pmyimiwd.fsf@mail.linkov.net> <87bla11u5q.fsf@gmail.com> <87lf937hgk.fsf@mail.linkov.net> <87y2d1ksga.fsf@mail.linkov.net> <87r1it7zfw.fsf@gmail.com> <87v98466it.fsf@mail.linkov.net> <87bl9wcksv.fsf@gmail.com> <87tunnzqci.fsf@mail.linkov.net> <87bl9tmzun.fsf@gmail.com> <87y2cwhiti.fsf@mail.linkov.net> <87h7jk75b7.fsf@gmail.com> <87k0ofyd4p.fsf@mail.linkov.net> <875yzwq4x7.fsf@mail.linkov.net> <875yzumpur.fsf@mail.linkov.net> <87v97tcyx5.fsf@gmail.com> <87k0o7n2kk.fsf@mail.linkov.net> <878s4muwdn.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35317"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , Ergus , "emacs-devel@gnu.org" , Gregory Heytings , Manuel Uberti , Augusto Stoffel , Drew Adams To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 11 08:21:53 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 1lgLmD-00093r-64 for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 08:21:53 +0200 Original-Received: from localhost ([::1]:58898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgLmB-0004sj-97 for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 02:21:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgLlN-00049n-Oz for emacs-devel@gnu.org; Tue, 11 May 2021 02:21:01 -0400 Original-Received: from mail-ua1-x936.google.com ([2607:f8b0:4864:20::936]:40751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgLlJ-0000V1-KK for emacs-devel@gnu.org; Tue, 11 May 2021 02:21:01 -0400 Original-Received: by mail-ua1-x936.google.com with SMTP id 33so6002190uaa.7 for ; Mon, 10 May 2021 23:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=upMB2yEBIsjlo0Oul9uVDXc1m4kAbzHGhspV5Ci2wlI=; b=VQNgBu1GuoB/t8LUlS2MI95NbT97skbN9NT6Fmxb03MaXqZ2kXMVNQg0sSrNwo6yBu VYk3hgRvvHcL4qAlfaIFnG4x13MNI+C3jFCQkahyfrsI6jF8M59vA3l9H0rTYwMIVVL3 zKXfBnLblsAfwj3qXrkoIDxIXhowXyKTTCvh2zFjF1sE9c0o7ci6WDLIchDXKKQvZSgQ wBxBhcEn9SbEvO5JJ/ZIwGVvlcjAJyNoXu1F70YJMrh7eYRiBfV7pzfVPylxXe7VgWwv o7iqWek6OtOPPP464T/6ohAgsAhoolWUvTMHb1LkWRHJbHx6BSGQvZqawMftmboPAVHX euqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=upMB2yEBIsjlo0Oul9uVDXc1m4kAbzHGhspV5Ci2wlI=; b=PtNbxMbBabB8GRBQ8ru3BlQamQOeXE87C401QHOZMAOn+Er+lfAZDMQ5diJz25NiZ2 Gx4XWYiWSAyswnKpwleR/GiN5iIPBatayAl5jtJ/QEjyBaC3XvzP/LXXxSiy7EfetZZf 3r2P92KUshaCac5LZNO306pT+A8rFsAU3J4ync84f2o2yptvMMQKadZzvbCSwm7amm8m RRAziNczaEi2wG10Z1knii7tESXHVwRGijaH8DlU9G9kN2dfX1X2w3uEYNz3eROp4OGk lt60pP+ud4YiQUVahBOKCoJv8VdZTpDQ/xqDjjW4CV+GjzGO0a3oqISaUlDO+L9Qwh5m Dhig== X-Gm-Message-State: AOAM533DhZjWbcoTsgk5Yimp9L6SxJ+y0/Gll+G3aOeHOb43tQlqXkZ+ z7N8JY+/nM6JL7e9CsPvIb5nKNxuhnYbvR+78vc= X-Google-Smtp-Source: ABdhPJx5sihTkuhirm0W4/hUPM4SDIFG4CKrORo0GQmBrNljePFy0lukqlCfQjAlbkVTXxPDN5LwbBnKi35Ql0M418w= X-Received: by 2002:ab0:6497:: with SMTP id p23mr23287473uam.86.1620714054055; Mon, 10 May 2021 23:20:54 -0700 (PDT) In-Reply-To: <878s4muwdn.fsf@mail.linkov.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x936.google.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, 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:269145 Archived-At: On Tue, 11 May 2021 at 04:31, Juri Linkov wrote: > When you type 'C-f' in a web browser, it activates the "minibuffer". > Then you can type a search string. As soon as you type a character > in the minibuffer, it immediately updates the search state > in the original window. You can edit the search string > while the minibuffer is active, and the search results are > updated immediately. Also each browser window has own search. That makes sense for a web browser, because a web browser is typically used only for viewing content and not editing. It typically also has no point (except in form fields and editable content). (There is also an optional accessibility feature that gives you a point which you can move around the page and select text with the keyboard.) The typical use case in a browser is to enter a search term and jump through its occurrences. As soon as you have found the one you want, you just keep reading from that point. Because browsing the Web is mostly a mouse-driven activity, and only a few keys are involved, a browser can afford giving all text editing keys to the search bar, including Home/=E2=86=90/=E2=86=92/End to move the = insertion point within the search box and any text selection and cut/copy/paste keys. On the other hand, in a text editor such as Emacs, the use case is different. You want to find an occurrence and then work with buffer text in its neighborhood, and you want to switch from searching to editing with as little friction as possible =E2=80=94 preferably none. Isea= rch supports exactly this use case, by making any unbound key terminate the search and then perform its usual action, and making an exception for Backspace so you can correct small typing mistakes. This comes at the price of making editing the search string itself a bit less convenient =E2=80=94 one has to press M-e for that.