From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: isearch and region ? Date: Tue, 7 Nov 2017 15:31:34 +0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510043563 21887 195.159.176.226 (7 Nov 2017 08:32:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2017 08:32:43 +0000 (UTC) Cc: emacs-devel To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 07 09:32:33 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBzJ7-00050x-NB for ged-emacs-devel@m.gmane.org; Tue, 07 Nov 2017 09:32:29 +0100 Original-Received: from localhost ([::1]:52075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBzJC-00079y-27 for ged-emacs-devel@m.gmane.org; Tue, 07 Nov 2017 03:32:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBzIb-00076o-HN for emacs-devel@gnu.org; Tue, 07 Nov 2017 03:31:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBzIa-0007I4-Mj for emacs-devel@gnu.org; Tue, 07 Nov 2017 03:31:57 -0500 Original-Received: from mail-ot0-x233.google.com ([2607:f8b0:4003:c0f::233]:55532) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBzIa-0007Hi-ID for emacs-devel@gnu.org; Tue, 07 Nov 2017 03:31:56 -0500 Original-Received: by mail-ot0-x233.google.com with SMTP id u41so11376427otf.12 for ; Tue, 07 Nov 2017 00:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=6z5QiHK778xD7cNtUMy3pFw6UsQHyh270KISKattQ7g=; b=TVxjSMWNtI4fCOQXrztyKJLnEc417SF93TqoX8Ybf2ywCb0sDXSFGmsf6Rjsc3whCB TrILozWYH+K1MF5K63ATjskh58vBUv2CKIaXyDUCWYpQSDtrX3UHsqcR9rODglEK4XrN Y2OqKT7QJeO2hYGN2DKt0cQjfLwKm7zaE1axtWSD5KHnlqRhH3jJ/WYFFbFB55yj4mQO OcWMNuq+IEON//fAIR83k28HlL8bknTNaasPXUvgs1xBICnup9/wMXUxK7KtDallFvVV B8b75QGcI/uhf+CKrS505TKNlIuvzm+ScVifxBaGaFnyLRllcaERj2ZFnAOBsY9y59hw jMkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=6z5QiHK778xD7cNtUMy3pFw6UsQHyh270KISKattQ7g=; b=OO0vESI9bzlBpB7tA/EJWwZ4AoavYVis0dhx2XQt6LX8P9F00N0wTEYcK/v2GZaYvq yuWX94yZ4ujNrk3/Qmo53blqs7tS1ySs9PixmtCxlqPa6u4hx8znU7GX3mFiJuinGR0s ML1GI0KNjP1sUU9NN1SEjGfgEWx7y9/R+oY5Kh9OPET5k2QBdDFpIxFve5itlk6sE7EL ZmSI/rOW1xBITv1dahyPZD9ElRK9SisCnOtdrXxB+5IMgkz82ZsmdhEvLKNogZuVTphy 9ixGskqx959VRoVtZwHqmWRenjR/FZieWOEzNx9W6Ym51GzVRrv7vndX2+xG4lxAtq3e hy6Q== X-Gm-Message-State: AJaThX7SjMK0mgdElAPQZ6yyyUrsR6B/l5/4whyFCNZBriduzJgctHCa G2ZbI2sIBRAYoroY4W1s9yO6wzcBNRpajTx41DY= X-Google-Smtp-Source: ABhQp+S6PlylIiOt+OfvKSN0JyamrpCod0xsilz2QOGSQD9A8pu+FnctSbdVgDYhE9TADgZDLJxfRsr4B2eoreA0Ojs= X-Received: by 10.157.41.10 with SMTP id d10mr10160139otb.217.1510043515272; Tue, 07 Nov 2017 00:31:55 -0800 (PST) Original-Received: by 10.74.118.21 with HTTP; Tue, 7 Nov 2017 00:31:34 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: Rxj-qmrtxhg7RrjkLmPREVV012M X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219956 Archived-At: On Tue, Nov 7, 2017 at 2:39 PM, Jean-Christophe Helary wrote: > I would like to know why isearch has been designed so that it does not cr= eate a region with the matching string. The thing that appears in the buffe= r looks like a region, but it is not, and that keeps the user from immediat= ely interacting with the matching string (deleting, overwriting, killing or= yanking, etc.) isearch is incremental, so most of the region-affecting actions would conflict with it. * Deleting with Backspace deletes the last character of the pattern (conflicts with deleting the region). * Typing text adds to the pattern (conflicts with overwriting the region). * Pasting (yanking) adds to the pattern, too. You would need an isearch command that (1) marks the current occurrence as a region, and (2) exits isearch mode so you can affect the region with your next command. On the other hand, some commands could work right out of isearch mode, if suitably implemented: * Deleting with Delete. * Cutting (killing) and copying.