From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Loris Bennett" Newsgroups: gmane.emacs.help Subject: Re: killing the result of isearch Date: Tue, 07 Nov 2017 16:08:03 +0100 Organization: ZEDAT, Freie =?utf-8?Q?Universit=C3=A4t?= Berlin Message-ID: <87wp32f7os.fsf@hornfels.zedat.fu-berlin.de> References: <433bd3d0-a506-4d89-9d10-dcbfb0e23be0@default> <852BAA28-2A50-4AD9-B8D6-9F06905A4395@gmail.com> <87r2tava5x.fsf@hornfels.zedat.fu-berlin.de> <87y3nigy86.fsf@hornfels.zedat.fu-berlin.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1510067711 7243 195.159.176.226 (7 Nov 2017 15:15:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2017 15:15:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 07 16:14:55 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 1eC5aV-00015P-B1 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 16:14:51 +0100 Original-Received: from localhost ([::1]:53893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC5ac-0004Ts-NN for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 10:14:58 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-X-Trace: news.uni-berlin.de 8mSiPI6T0rx+cLOY5NRR3QihJnVjeP4NZJprllpuZDwy0K Cancel-Lock: sha1:qDa3HkdOZlBTbw4Qdgv5P2Wka1E= Original-Xref: usenet.stanford.edu gnu.emacs.help:220662 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:114770 Archived-At: Jean-Christophe Helary writes: >> On Nov 7, 2017, at 19:49, Loris Bennett wrote: >> >> >> So doesn't searching-and-replace with an empty replacement work? > > It works to accomplish the same result but it takes many more step as I wrote > earlier: > > isearch string isearch-query-replace (replace with nothing) > >> As to Emacs behaving differently to other editors, I think it is the other way >> round ;-) > > No, actually it really is the other way round. Emacs is not a text editor, it is > a Lisp virtual machine with text editing functions. According to https://www.gnu.org/software/emacs/ GNU Emacs is: An extensible, customizable, free/libre text editor — and more. > Applications that are created to be specialized in text editing are > closer to what the users need in terms of interaction. Which is the > point of the current discussion. My point was that you are comparing the editing idiom of Emacs, which arose in the 1980s, with that of more modern editors. In addition, you are talking about what you need, rather than what "users" need. > The problem with emacs and searches, is that you only search, you don't *find*, > as in the action of searching does not result in an object that you can act > upon. Which defeats the purpose of searching. > > A simple "search" does nothing but put the point at the end of the match. it is > nice to navigate the document but it does nothing about the match. isearch is > even more treacherous since it makes it look like you are finding something, > when actually you have also just moved the point in the buffer and nothing more. > > A simple "search" should at least be able to create a region on the match, it > doesn't even do that. If Emacs doesn't do something, to me, that suggests it is not a very common thing to do. However, fortunately Emacs is extensible and customizable and so you can make it do less common things too. Cheers, Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email loris.bennett@fu-berlin.de