Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version;
        bh=0Ykm2ZMcYN7gDQhCK/NH1PkjUaijq3MM2o8ERY8W9Vo=;
        b=wXRTOqImP01925KD5IBgnytcIwG/bExyKCw3lNvbrAZkkwVY6SSa5+3XQtSy5Pgvhl
         dZrgq5kTT7YE7K+xi1SyjP6hQGl2uyE/uTnAF9aUfm9sm51OnrRoxnEaGX0HbUOHFCjt
         37WATdumI9wiF/IMv3KGgamxPLUpBsHtzetupTJtXRqbn+ER+9lCLKAZg2G2yCeIQxb+
         iX2eqmhyp8AdCD/jxASCIa6chXltlEtz1h2FaApTwmwHSyqcVvfz4zcXg7OipkUAq9oP
         kEeMcQ+O8YOu8Bux2XxbgAigL/uCCvUhZ9XF/XWFg0EZDWbu3XOMlB/AnCdsUhKCAjo2
         p7wg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version;
        bh=0Ykm2ZMcYN7gDQhCK/NH1PkjUaijq3MM2o8ERY8W9Vo=;
        b=i8EKXgftolsSWkRdrt5I2W7XGCc+SjRhNDOrMeP5wPC9otPpyHGUUNcaT7VLft6lEl
         tKNk+4plDlhaV897smzVWZlssBjWINCZC4MSqFYAmT+arwNa/hPC4wTh03xzgzNUqmVc
         3JICmcsY+i6/Nb9U9SrAxK5sYoM5ZMvipW9pN8m3BzecONJaqgtRy8pN3j7xjWb1ll5g
         ZcFRSh9u+cPMcVlOrln1cEpw5+kfL9Om3ASrY7AYhUdmswOb8jPIsLLA0EPgRcQ/C6s+
         l82teSdza7KqnnNYFEnTnCKRvql93T3gKDND05nZx/5L7f+PPn/51WiERE5UibgB9if1
         tcuQ==
X-Gm-Message-State: AOPr4FWKjsvSvx6QXX/8xG7LmihJFdtBmV1KKZDCt7jRRX9XcCf3gg1o/SLMGzgKvmOSew==
X-Received: by 10.67.14.7 with SMTP id fc7mr2747354pad.1.1461450816580;
        Sat, 23 Apr 2016 15:33:36 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160423153356.ZM6960@torch.brasslantern.com>
Date: Sat, 23 Apr 2016 15:33:56 -0700
In-Reply-To: <20160423213607.GB1405@tarsus.local2>
Comments: In reply to Daniel Shahaf <d.s@daniel.shahaf.name>
        "Re: [PATCH] Expose isearch and suffix regions to widgets." (Apr 23,  9:36pm)
References: <1457905871-2808-1-git-send-email-m0viefreak.cm@googlemail.com> 
	<CAH+w=7Z-xQKMoNVK2MeOyj1ND22B8-yceU8FSfCp3xm6kyKEzQ@mail.gmail.com> 
	<CAH+w=7a=z+BnQmv027+4+3=KCEGXgtVf7hs+aSp+aVqKLJnebQ@mail.gmail.com> 
	<570A50CF.2000600@googlemail.com> 
	<20160411061647.GA5368@tarsus.local2> 
	<160411072508.ZM24168@torch.brasslantern.com> 
	<571265A4.9040000@googlemail.com> 
	<20160423213607.GB1405@tarsus.local2>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Re: [PATCH] Expose isearch and suffix regions to widgets.
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38321

On Apr 23,  9:36pm, Daniel Shahaf wrote:
}
} m0viefreak wrote on Sat, Apr 16, 2016 at 18:17:40 +0200:
} > I think ISEARCH_MATCH would be the ideal name, if the matched string was
} > exposed, but I haven't found a simple way to do that.
} 
} Something like the attached, perhaps?  Do you think something like this
} should be added?  (Myself, I'm not sure, since the value would be
} derivable from the three ISEARCHMATCH_* parameters' values.)

My point in suggesting ISEARCH_MATCH was to limit the feature to three
variables with "ISEARCH_" as a prefix.  This was countered with the
expressed desire to follow the "_ACTIVE" suffix pattern instead.  I'm
not particularly invested in this either way, but having *both* the
"_MATCH" and "_ACTIVE" variants is certainly redundant, and having
two different prefixes ("ISEARCH_" and "ISEARCHMATCH_") is annoying.

Other comments:

I will posit that isearch is rather different from YANK/SUFFIX/REGION
in that one might be interested in what the current search pattern is,
as well as what string is matched.

There are two existing variables LASTABORTEDSEARCH and LASTSEARCH which
refer to that search pattern, neither of which uses the "I", so maybe
these new three (or four or five) shouldn't use it either.

Those two variables aren't cleared when you start a new search, they
only change based on the final state of the search.

