From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#11378: 24.1.50; Suggestion: Let M-i in isearch cycle `search-invisible' Date: Thu, 30 May 2013 01:45:53 +0300 Organization: JURTA Message-ID: <871u8pmmla.fsf@mail.jurta.org> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369868164 26832 80.91.229.3 (29 May 2013 22:56:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 May 2013 22:56:04 +0000 (UTC) Cc: 11378@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 30 00:56:03 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UhpHm-0001Jz-5H for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2013 00:56:02 +0200 Original-Received: from localhost ([::1]:39067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpHl-00007e-Sl for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2013 18:56:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpHX-0008VX-Vo for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 18:55:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhpHO-0002Bt-M8 for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 18:55:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpHO-0002Be-IC for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 18:55:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UhpIk-00024O-LH for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 18:57:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 May 2013 22:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11378 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11378-submit@debbugs.gnu.org id=B11378.13698681787880 (code B ref 11378); Wed, 29 May 2013 22:57:02 +0000 Original-Received: (at 11378) by debbugs.gnu.org; 29 May 2013 22:56:18 +0000 Original-Received: from localhost ([127.0.0.1]:40891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhpI0-00022z-Ph for submit@debbugs.gnu.org; Wed, 29 May 2013 18:56:17 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:48257 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhpHx-00022l-EO for 11378@debbugs.gnu.org; Wed, 29 May 2013 18:56:14 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 451A7258B9E91C; Wed, 29 May 2013 15:54:45 -0700 (PDT) In-Reply-To: <084871f7-9554-450a-863f-52a5b251d7d0@default> (Drew Adams's message of "Tue, 28 May 2013 15:45:24 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74647 Archived-At: > A major difference is that my code does not hesitate to use the > command to toggle the user option value. I realize you consider > that a no-no. I think that commands to toggle user options are > often a plus, not a minus. (Think minor-mode variables, if that helps. > Or think of toggling an option via the options menu.) Most togglable search variables should preferably have two versions anyway: the default value (persistent in case of `defcustom') used initially for every new search (and often consulted in toggling commands to get the initial default value) and a transient value used in the currently active search. This is what `case-fold-search' and `isearch-case-fold-search' already do and this is a flexible approach. I intend to implement the same approach for other search variables as well, e.g. adding `search-filter-predicates' to hold the default value for `isearch-filter-predicates'. The prefix `search-' is more appropriate for such variables when they are used outside of isearch. So `isearch-filter-predicates' could be used to incrementally add/remove filters in isearch-mode, but to use `search-filter-predicates' in `query-replace', etc.