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#20351: isearch-lax-whitespace should be customizable variable Date: Thu, 02 Jul 2015 01:30:47 +0300 Organization: LINKOV.NET Message-ID: <87ioa38q94.fsf@mail.linkov.net> References: <87d20eyw78.fsf@mail.linkov.net> <87bnfwsyun.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435790359 18824 80.91.229.3 (1 Jul 2015 22:39:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2015 22:39:19 +0000 (UTC) Cc: 20351@debbugs.gnu.org, Ken T Takusagawa To: Artur Malabarba Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 02 00:39:11 2015 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 1ZAQer-0002YO-JE for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 00:39:09 +0200 Original-Received: from localhost ([::1]:33117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAQer-0006kO-3K for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jul 2015 18:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAQeo-0006k9-5m for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 18:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAQel-0000Ho-D8 for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 18:39:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAQel-0000Hj-A4 for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 18:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAQel-0002iT-0u for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2015 18:39:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jul 2015 22:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20351 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20351-submit@debbugs.gnu.org id=B20351.143579028510323 (code B ref 20351); Wed, 01 Jul 2015 22:39:02 +0000 Original-Received: (at 20351) by debbugs.gnu.org; 1 Jul 2015 22:38:05 +0000 Original-Received: from localhost ([127.0.0.1]:36525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAQdp-0002gP-91 for submit@debbugs.gnu.org; Wed, 01 Jul 2015 18:38:05 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:48215 helo=homiemail-a15.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAQdl-0002fj-Te for 20351@debbugs.gnu.org; Wed, 01 Jul 2015 18:38:02 -0400 Original-Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 18A8276C07F; Wed, 1 Jul 2015 15:38:01 -0700 (PDT) Original-Received: from localhost.linkov.net (m212-53-110-158.cust.tele2.ee [212.53.110.158]) (Authenticated sender: jurta@jurta.org) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id E99F976C073; Wed, 1 Jul 2015 15:37:59 -0700 (PDT) In-Reply-To: (Artur Malabarba's message of "Tue, 30 Jun 2015 22:05:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:104591 Archived-At: >>>> (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 variab= le >>>> to its default value, thus keeping the value from the previous searc= h >>>> \(changed using toggling commands)." >>>> :type '(set (const :tag "Case folding" isearch-case-fold-search) >>>> (const :tag "Character folding" character-fold-search) >>>> (const :tag "Invisible text" isearch-invisible) >>>> (const :tag "Filters" isearch-filter-predicate) >>>> (const :tag "Lax whitespace" isearch-lax-whitespace) >>>> (const :tag "Regexp lax whitespace" isearch-regexp-lax= -whitespace)) >>>> :group 'isearch) >>> >>> Though this is not strictly in conflict with turning the individual >>> variables into defcustoms, I think it's a bit in ideological conflict= , and >>> we should probably pick one of the two. >> >> Would it be better to pollute the namespace with N*M more customizable= variables >> like =E2=80=98isearch-keep-case-fold-search=E2=80=99, =E2=80=98isearch= -keep-lax-whitespace=E2=80=99, >> =E2=80=98isearch-initial-case-fold-search=E2=80=99, =E2=80=98isearch-i= nitial-lax-whitespace=E2=80=99, I'm not sure. > > No. I like the idea of this variable, and I much prefer this defcustom > over N different `isearch-keep-...' defcustoms. > What I said is that if we have *this* defcustom, we don't need to turn > `isearch-lax-whitespace' into a defcustom too (the actual variable, > not the `keep...' variable). It seems we can't avoid turning `isearch-lax-whitespace' into a defcustom because users need to be able to disable these features initially, and there is no convenient way to customize initial values with a single defcustom such as =E2=80=98isearch-initial-variables=E2=80=99. =E2=80=98case-fold-search=E2=80=99 is a customizable variable - and right= fully so =E2=80=98char-fold-search=E2=80=99 has to be customizable as well.