From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#11378: 24.1.50; Suggestion: Let M-i in isearch cycle `search-invisible' Date: Fri, 01 Nov 2019 19:50:43 +0100 Message-ID: <874kznig70.fsf@skangas.se> References: <87haw32hly.fsf@web.de> <87397m6oxf.fsf@mail.jurta.org> <87y5pcdzxx.fsf@mail.jurta.org> <874nqzgcuk.fsf@mail.jurta.org> <87vcjesccy.fsf@mail.jurta.org> <87lijtcx8m.fsf@mail.jurta.org> <87sj1811tq.fsf@mail.jurta.org> <87vc6222vi.fsf@mail.jurta.org> <084871f7-9554-450a-863f-52a5b251d7d0@default> <871u8pmmla.fsf@mail.jurta.org> <6dcc689e-53a8-4982-953c-1b21c11cec78@default> <87k3mgevq2.fsf@mail.jurta.org> <87wqqghvy1.fsf@mail.jurta.org> <87txlglu8v.fsf@mail.jurta.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24777"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 11378@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 19:51:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQc0u-0006I6-1b for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 19:51:12 +0100 Original-Received: from localhost ([::1]:42148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQc0s-0002bv-B2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 14:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54522) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQc0l-0002bk-Vi for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQc0k-0003nM-Fh for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48317) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQc0k-0003mK-4P for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQc0k-000315-0e for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11378 X-GNU-PR-Package: emacs Original-Received: via spool by 11378-submit@debbugs.gnu.org id=B11378.157263425511578 (code B ref 11378); Fri, 01 Nov 2019 18:51:01 +0000 Original-Received: (at 11378) by debbugs.gnu.org; 1 Nov 2019 18:50:55 +0000 Original-Received: from localhost ([127.0.0.1]:57138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQc0c-00030f-Dg for submit@debbugs.gnu.org; Fri, 01 Nov 2019 14:50:54 -0400 Original-Received: from host.gofardesign.uk ([208.79.239.190]:56965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQc0a-00030L-BF for 11378@debbugs.gnu.org; Fri, 01 Nov 2019 14:50:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8wlJMJDQggqakjvsB/VMW4ViZOE32jSb/crdMbNVuws=; b=pToG9L2N03rdwXzAaV2331boZA v7sFoZJpQXEJfE+Vie+GPFPmKBCRN6W9IdakQXbPXEyclSXEv1LiTdMVpW0lY8WFVZ5H762bZTuBa FvLFzBCMGmvDVe+01oja7bY1KrOfy+8LU+FvdJApndxK/AazInB1GS9d5FRn2mrGOuXk=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:58218 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iQc0T-0006Wu-JP; Fri, 01 Nov 2019 13:50:46 -0500 In-Reply-To: <87txlglu8v.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 02 Jun 2013 12:47:12 +0300") X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se 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: 209.51.188.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:170657 Archived-At: Juri Linkov writes: >> I'm preparing a patch that adds it to customize the behavior of >> case-fold and invisible. > > This patch adds a new user option `isearch-keep-mode-variables' > in parallel to another new option `isearch-keep-stack-variables' > added in bug#12986. It supports `isearch-case-fold-search' and > `isearch-invisible' variables, but `isearch-filter-predicates', > `isearch-lax-whitespace' could be added in the same way later. The below patch from 6 years ago was sent but never applied at the time. Is it still relevant? Best regards, Stefan Kangas > === modified file 'lisp/isearch.el' > --- lisp/isearch.el 2013-05-30 23:50:36 +0000 > +++ lisp/isearch.el 2013-06-02 09:45:01 +0000 > @@ -153,6 +153,20 @@ (defcustom isearch-hide-immediately t > :type 'boolean > :group 'isearch) > > +(defcustom isearch-keep-mode-variables nil > + "A set of search variables to keep between different searches. > +When a search variable is customized to exist in this set, then > +starting a new search doesn't reset the corresponding isearch variable > +to its default value, thus keeping the value from the previous search > +\(changed using toggling commands)." > + :type '(set (const :tag "Case folding" isearch-case-fold-search) > + (const :tag "Invisible text" isearch-invisible) > + (const :tag "Filters" isearch-filter-predicates) > + (const :tag "Lax whitespace" isearch-lax-whitespace) > + (const :tag "Regexp lax whitespace" isearch-regexp-lax-whitespace)) > + :version "24.4" > + :group 'isearch) > + > (defcustom isearch-resume-in-command-history nil > "If non-nil, `isearch-resume' commands are added to the command history. > This allows you to resume earlier Isearch sessions through the > @@ -866,8 +895,6 @@ (defun isearch-mode (forward &optional r > isearch-word word > isearch-op-fun op-fun > isearch-last-case-fold-search isearch-case-fold-search > - isearch-case-fold-search case-fold-search > - isearch-invisible search-invisible > isearch-string "" > isearch-message "" > isearch-cmds nil > @@ -898,6 +927,11 @@ (defun isearch-mode (forward &optional r > isearch-original-minibuffer-message-timeout minibuffer-message-timeout > minibuffer-message-timeout nil) > > + (unless (memq 'isearch-case-fold-search isearch-keep-mode-variables) > + (setq isearch-case-fold-search case-fold-search)) > + (unless (memq 'isearch-invisible isearch-keep-mode-variables) > + (setq isearch-invisible search-invisible)) > + > ;; We must bypass input method while reading key. When a user type > ;; printable character, appropriate input method is turned on in > ;; minibuffer to read multibyte characters.