From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: killing the result of isearch Date: Tue, 07 Nov 2017 09:31:21 +0100 Message-ID: <877ev2pk12.fsf@mbork.pl> References: <433bd3d0-a506-4d89-9d10-dcbfb0e23be0@default> <852BAA28-2A50-4AD9-B8D6-9F06905A4395@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510043609 29049 195.159.176.226 (7 Nov 2017 08:33:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2017 08:33:29 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 27.0.50 Cc: Help Gnu Emacs mailing list To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 07 09:33:26 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1eBzK1-0007NY-E5 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 09:33:25 +0100 Original-Received: from localhost ([::1]:52079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBzK8-0007f0-9q for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 03:33:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBzIh-0007Bw-L7 for help-gnu-emacs@gnu.org; Tue, 07 Nov 2017 03:32:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBzId-0007Ix-N1 for help-gnu-emacs@gnu.org; Tue, 07 Nov 2017 03:32:03 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:46860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBzId-0007HI-G8 for help-gnu-emacs@gnu.org; Tue, 07 Nov 2017 03:31:59 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 88412E6683; Tue, 7 Nov 2017 09:31:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5c8FL_GfntHz; Tue, 7 Nov 2017 09:31:46 +0100 (CET) Original-Received: from localhost (unknown [150.254.82.251]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 51CDCE6265; Tue, 7 Nov 2017 09:31:45 +0100 (CET) In-reply-to: <852BAA28-2A50-4AD9-B8D6-9F06905A4395@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114766 Archived-At: On 2017-11-07, at 07:01, Jean-Christophe Helary wrote: > But, isn't it something emacs users do normally? Search for a string and just delete it? Doesn't it look like a function that could be useful in vanilla emacs? How about this? C-s whatever M-% RET . Explanation: when in isearch, typing M-% starts query-replace prepopulated with isearched string. RET makes the replacement empty. `.' (period) performs a replacements and exits query-replace. Hth, -- Marcin Borkowski