From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47599: 28.0.50; Feature request improve/update isearch Date: Wed, 07 Apr 2021 10:44:23 +0000 Message-ID: <3ec7e2e58a163e5f05c8@heytings.org> References: <20210405020725.ob7bewlin7cid4pa.ref@Ergus> <20210405020725.ob7bewlin7cid4pa@Ergus> <87mtubrzp3.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k9cFWg2Fgb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3393"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ergus , 47599-done@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 07 12:45:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lU5gO-0000iF-7e for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 12:45:12 +0200 Original-Received: from localhost ([::1]:45782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lU5gM-00045m-Q3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 06:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU5gE-00045c-Ki for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 06:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lU5gE-0008UV-DA for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 06:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lU5gE-0004rc-AQ for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 06:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Apr 2021 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47599 X-GNU-PR-Package: emacs Original-Received: via spool by 47599-done@debbugs.gnu.org id=D47599.161779226718642 (code D ref 47599); Wed, 07 Apr 2021 10:45:02 +0000 Original-Received: (at 47599-done) by debbugs.gnu.org; 7 Apr 2021 10:44:27 +0000 Original-Received: from localhost ([127.0.0.1]:43197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lU5fe-0004qc-S0 for submit@debbugs.gnu.org; Wed, 07 Apr 2021 06:44:27 -0400 Original-Received: from heytings.org ([95.142.160.155]:56682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lU5fd-0004qT-09 for 47599-done@debbugs.gnu.org; Wed, 07 Apr 2021 06:44:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1617792263; bh=R8ieS7N6k1rnwZS4LncQJjxGFCvcydLZRzJO12efjfI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=a9feN58hshPQCnxsb85cuqF1L+gXK9shtXmvDEMm5POANGXJhEONyBMZTaU/6AJqi 3ZaxZyv5/vH/RVcgqNZRdkVmjZHrUjZQxXGpxThTuFrO9SVKc838C5rb8q107el1Ed a3gmN2qwdP4c458+itzauMIv3V6KvicRt+gop+Yw+YzR2Ybn3/WeHocu7jUDBbehYH pJNDkXEgR1RxIT4RrV0zHI1ISRlkpxYGXuI/72dsHcbniPhex+VbsiEw49D10G+Zp0 qdJUp5PmsNz0Vp7gXj8iNlOsu8MoFQoMPfwyRzkGfN6dmAkRCtEj1n+7q01WLSbLVP IaBW/m38T1MCA== In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203676 Archived-At: --k9cFWg2Fgb Content-Type: text/plain; charset=us-ascii; format=flowed >>> 1) Option or command to automatically go to the other end on exit. >> >> It seems the conclusion was that it should not be an option. As for a >> command, there were objections against binding it to a key, but without >> a keybinding such command has little sense. > > I attach a patch which implements these two "options" in isearch-exit. > And here is an updated patch which adds three options to isearch-exit: C-u RET moves point to the other end, C-u C-u RET activates region around match, C-u C-u C-u RET moves point to the other end and activate region around match. --k9cFWg2Fgb Content-Type: text/x-diff; name=0001-Add-options-when-exiting-isearch.patch Content-Transfer-Encoding: base64 Content-ID: <3ec7e2e58a9a6ab6d12c@heytings.org> Content-Description: Content-Disposition: attachment; filename=0001-Add-options-when-exiting-isearch.patch RnJvbSA4OTIyYzQyYWQ5M2M1YzFiZmViMGVkMjljNTk4OTQxZTkxNDEyMjdj IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogR3JlZ29yeSBIZXl0 aW5ncyA8Z3JlZ29yeUBoZXl0aW5ncy5vcmc+DQpEYXRlOiBXZWQsIDcgQXBy IDIwMjEgMTA6Mzk6MTkgKzAwMDANClN1YmplY3Q6IFtQQVRDSF0gQWRkIG9w dGlvbnMgd2hlbiBleGl0aW5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