From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: search-invisible and friends Date: Thu, 10 Sep 2020 17:29:04 +0300 Message-ID: <83a6xxk8nj.fsf@gnu.org> References: <87zh5z9l9y.fsf@gnus.org> <838sdjko39.fsf@gnu.org> <871rj9957z.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36045"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 10 16:29:50 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGNa9-0009I4-UR for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Sep 2020 16:29:49 +0200 Original-Received: from localhost ([::1]:32898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGNa9-00015e-0G for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Sep 2020 10:29:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGNZM-0000Fp-9E for emacs-devel@gnu.org; Thu, 10 Sep 2020 10:29:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59701) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGNZL-0007ks-Ti; Thu, 10 Sep 2020 10:28:59 -0400 Original-Received: from [176.228.60.248] (port=3668 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kGNZK-0004r0-ME; Thu, 10 Sep 2020 10:28:59 -0400 In-Reply-To: <871rj9957z.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 10 Sep 2020 14:38:40 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255002 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 10 Sep 2020 14:38:40 +0200 > Cc: emacs-devel@gnu.org > > > How about extending search-invisible to support additional properties, > > by providing some variable that would hold the list of such > > properties? Then we could also avoid searching in text that is > > visible, if some Lisp needs that (for example, you could have a form > > where you'd like to search only the writable fields). > > Ah, yeah, that sounds quite useful and natural. We could even have a > standard property like `no-search' that could be part of the default > `search-invisible' value, so that modes can easily mark out regions that > shouldn't be searched for. In which case, the whole `display' thing > becomes moot -- in my mode, I could just slap the `no-search' property > on all the image display bits that I want isearch to avoid? Yes, those were my thoughts.