From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#30187: M-e should restore isearch correctly in special modes Date: Tue, 23 Jan 2018 00:14:23 +0200 Organization: LINKOV.NET Message-ID: <87fu6x7d8g.fsf@mail.linkov.net> References: <87607wnsnb.fsf@mail.linkov.net> <83y3krqk0n.fsf@gnu.org> <87mv166h54.fsf@mail.linkov.net> 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 1516659575 20225 195.159.176.226 (22 Jan 2018 22:19:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2018 22:19:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 30187-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 22 23:19:31 2018 Return-path: Envelope-to: geb-bug-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 1edkQr-00042z-JE for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 23:19:13 +0100 Original-Received: from localhost ([::1]:41872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edkSr-00083D-Vr for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 17:21:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edkMs-00030L-2R for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 17:15:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edkMo-00070m-UK for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 17:15:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edkMo-00070d-QG for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 17:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edkMo-00011h-K2 for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 17:15:02 -0500 Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jan 2018 22:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 30187 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 30187@debbugs.gnu.org, juri@linkov.net, juri@linkov.net Original-Received: via spool by 30187-done@debbugs.gnu.org id=D30187.15166592923904 (code D ref 30187); Mon, 22 Jan 2018 22:15:02 +0000 Original-Received: (at 30187-done) by debbugs.gnu.org; 22 Jan 2018 22:14:52 +0000 Original-Received: from localhost ([127.0.0.1]:38676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edkMe-00010u-8v for submit@debbugs.gnu.org; Mon, 22 Jan 2018 17:14:52 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:34041 helo=homiemail-a21.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edkMd-00010n-7T for 30187-done@debbugs.gnu.org; Mon, 22 Jan 2018 17:14:51 -0500 Original-Received: from homiemail-a21.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTP id 7CA1E1C0064; Mon, 22 Jan 2018 14:14:50 -0800 (PST) Original-Received: from localhost.linkov.net (m91-129-108-180.cust.tele2.ee [91.129.108.180]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPSA id A26341C0062; Mon, 22 Jan 2018 14:14:49 -0800 (PST) In-Reply-To: <87mv166h54.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 21 Jan 2018 23:23:03 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142398 Archived-At: >>> All imaginable solutions were very bad. But now I found a solution >>> that at least not bad. It changes the global value of customizable >>> variables for the time while isearch is active (including the time >>> when isearch is suspended temporarily), and restores the original val= ue >>> afterwards. >> >> What if the user QUITs out of the search -- will the original value be >> restored? > > Yes, the original value is restored thanks to =E2=80=98condition-case=E2= =80=99 with > =E2=80=98quit=E2=80=99 in =E2=80=98with-isearch-suspended=E2=80=99 that= guarantees that =E2=80=98isearch-abort=E2=80=99 > is always called. Done.