From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: isearch region or thing at point. Date: Wed, 01 May 2019 23:57:58 +0300 Organization: LINKOV.NET Message-ID: <87bm0lj3jd.fsf@mail.linkov.net> References: <20190427001453.isjx247kc3lu5fe4@Ergus> <87a7gcp51i.fsf@tcd.ie> <20190429004135.rn5tp2gnmbjovrxj@Ergus> <87h8agy4yf.fsf@mail.linkov.net> <20190430162501.xmqh5r5h57sjjlq5@Ergus> <87h8af15kg.fsf@tcd.ie> <20190430231614.l423x6eqta5fbhor@Ergus> <874l6f132f.fsf@tcd.ie> <20190501001310.xvneubg4rl7c5dit@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="180021"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: "Basil L. Contovounesios" , emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 01 23:23:15 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLwh8-000ked-Bf for ged-emacs-devel@m.gmane.org; Wed, 01 May 2019 23:23:14 +0200 Original-Received: from localhost ([127.0.0.1]:41531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLwh7-0004FV-9A for ged-emacs-devel@m.gmane.org; Wed, 01 May 2019 17:23:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLwh1-0004Cp-I8 for emacs-devel@gnu.org; Wed, 01 May 2019 17:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLwgz-00033o-90 for emacs-devel@gnu.org; Wed, 01 May 2019 17:23:07 -0400 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:11874) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLwgx-00032F-3S for emacs-devel@gnu.org; Wed, 01 May 2019 17:23:03 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7B7CA125423; Wed, 1 May 2019 21:23:00 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a51.g.dreamhost.com (unknown [100.96.11.48]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 24AE612499A; Wed, 1 May 2019 21:23:00 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a51.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Wed, 01 May 2019 21:23:00 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Hook-Juvenile: 1e819399609a5225_1556745780296_656844655 X-MC-Loop-Signature: 1556745780296:1750186355 X-MC-Ingress-Time: 1556745780295 Original-Received: from pdx1-sub0-mail-a51.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTP id B24E4805E8; Wed, 1 May 2019 14:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=PczsdzaoNKKsqAGyc//rtMbcnas=; b= SdKwzaStd5pO6F+w/Nk8xtmvoBUhQ16WtAw0/42xC7j0hxUjuQhx4b8+oLf3aPxd uVhgWcIwJkB9cCelEiJV/phcwq2PPxjtff22M57HNTxV2PFwCtBwotuxeCzLEGKN QuabOhfnfmrOF1Ng1BLguc+4BdHxB0OEC9/v0jnr0Ow= Original-Received: from mail.jurta.org (m91-129-107-198.cust.tele2.ee [91.129.107.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTPSA id 8E08B805DC; Wed, 1 May 2019 14:22:56 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a51 In-Reply-To: <20190501001310.xvneubg4rl7c5dit@Ergus> (Ergus's message of "Wed, 1 May 2019 02:13:10 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrieejgdduiedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrdduleeknecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrudelkedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehsphgrtghisggsrgesrgholhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.151 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:236099 Archived-At: > 3) What do you think is the right behavior in case isearch-string is not > empty? > > Suppose you marked a region and then type: C-s letter, the cursor will > move to letter, but the actual active region will be from mark->letter. > > Because in that case the point has already moved from it's initial > position, so the region is not the same than when it started. > > 1) Should the command do nothing in that case? > > 2) Or it must yank what used to be the initial region?? > > 3) Something else? This is an interesting question. Perhaps it should replace the current search string with the text from the region.