From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Please add comments to isearch.el Date: Wed, 16 Dec 2015 09:06:48 +0000 Message-ID: References: <83fuzoojcn.fsf@gnu.org> <83poyd8kta.fsf@gnu.org> <20151211121617.GA3351@acm.fritz.box> <83y4d16txk.fsf@gnu.org> <83lh916jpp.fsf@gnu.org> <871tasbnhh.fsf@mail.linkov.net> <83d1uc6sdq.fsf@gnu.org> <874mfntfgq.fsf@mail.linkov.net> <8737v5ubog.fsf@mail.linkov.net> <876100egi4.fsf@mail.linkov.net> <87io3zdwom.fsf@mail.linkov.net> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134c2aef4b90b0527003910 X-Trace: ger.gmane.org 1450256839 12675 80.91.229.3 (16 Dec 2015 09:07:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 09:07:19 +0000 (UTC) Cc: Alan Mackenzie , Eli Zaretskii , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 16 10:07:08 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a9838-0003rE-Uz for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 10:07:07 +0100 Original-Received: from localhost ([::1]:46073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9838-0002uM-6Q for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 04:07:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a982u-0002uA-Lg for emacs-devel@gnu.org; Wed, 16 Dec 2015 04:06:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a982t-0003pc-Nw for emacs-devel@gnu.org; Wed, 16 Dec 2015 04:06:52 -0500 Original-Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:33056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a982s-0003pF-5y; Wed, 16 Dec 2015 04:06:50 -0500 Original-Received: by mail-lb0-x231.google.com with SMTP id kw15so21512386lbb.0; Wed, 16 Dec 2015 01:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=aZtBpK7ZB0rJH3LCr65Gt75kEqlC307zWJKTtkMQCTI=; b=Qs6yYZk0av0gVRvS8exnsLVfByM+mfYUBzMV4cWzl4i/icIh2AvETUBN9Ayy9vXegv S6U0MlOhVmJgf22plzUwaIkRZrDxkcx6TaVkQpdZk/vwsIbDiHslQs1EYEPPexZKsylc Om+HH8t9iKIFGPxhHmYUgmMKwKFWmbxSe61CqDtxvQ9uUvtbN/UO4YGRsPsHrcG2N/Mr J1GwMz14BDuvtWCUz3G47ETnCwgnYNN0QoKh+qCtb9FmMZmGvHc4niGzaehQdoc1Nva0 WQKCd/fAAt/vbZqPGIf7OEGK+9d4i5czI1NZ5ywsVTCOTk3wdRs111A8EU2uzE92+Yu9 YpNA== X-Received: by 10.112.242.167 with SMTP id wr7mr15163459lbc.69.1450256809373; Wed, 16 Dec 2015 01:06:49 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Wed, 16 Dec 2015 01:06:48 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Wed, 16 Dec 2015 01:06:48 -0800 (PST) In-Reply-To: <87io3zdwom.fsf@mail.linkov.net> X-Google-Sender-Auth: kLQ5xHOplt36hHbXAswyPoYNSTw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196356 Archived-At: --001a1134c2aef4b90b0527003910 Content-Type: text/plain; charset=UTF-8 On 16 Dec 2015 12:51 am, "Juri Linkov" wrote: > > > If we go that route, then we might as well use `regexp-quote' instead > > of the nil value too. > > Then another idea: what about broadening the customization variable > search-default-regexp-mode to search-default-mode and allowing to > customize a list of default values for other search parameters defined by > isearch-define-mode-toggle, e.g. lax-whitespace, case-fold, invisible? I don't really like custom variables that try to do everything and have complex structures. They tend to be intimidating to new users, precisely those who would benefit the most from the custom interface. They are also harder to use and harder to write docstrings for. Finally, they offer no benefit over just defining N streamlined variables whose docstrings mention each other. :-) --001a1134c2aef4b90b0527003910 Content-Type: text/html; charset=UTF-8

On 16 Dec 2015 12:51 am, "Juri Linkov" <juri@linkov.net> wrote:
>
> > If we go that route, then we might as well use `regexp-quote' instead
> > of the nil value too.
>
> Then another idea: what about broadening the customization variable
> search-default-regexp-mode to search-default-mode and allowing to
> customize a list of default values for other search parameters defined by
> isearch-define-mode-toggle, e.g. lax-whitespace, case-fold, invisible?

I don't really like custom variables that try to do everything and have complex structures. They tend to be intimidating to new users, precisely those who would benefit the most from the custom interface.
They are also harder to use and harder to write docstrings for. Finally, they offer no benefit over just defining N streamlined variables whose docstrings mention each other. :-)

--001a1134c2aef4b90b0527003910--