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#10387: CODE wishlist: search-prop.el Date: Sun, 24 Nov 2013 01:34:00 +0200 Organization: JURTA Message-ID: <87eh664rrr.fsf@mail.jurta.org> References: <87wr9h2kju.fsf@cante.cante.net> <4e9dd7b9-9109-4f67-a9a2-d3c13635c566@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385250255 24231 80.91.229.3 (23 Nov 2013 23:44:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 23:44:15 +0000 (UTC) Cc: 10387@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 24 00:44:19 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 1VkMs6-0007zX-RM for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Nov 2013 00:44:19 +0100 Original-Received: from localhost ([::1]:45450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkMs6-0005ij-7s for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 18:44:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkMrx-0005ck-W1 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:44:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkMrq-0000a6-OK for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:44:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkMrq-0000a2-LK for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VkMrq-0002mj-E5 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2013 23:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10387-submit@debbugs.gnu.org id=B10387.138525021910655 (code B ref 10387); Sat, 23 Nov 2013 23:44:02 +0000 Original-Received: (at 10387) by debbugs.gnu.org; 23 Nov 2013 23:43:39 +0000 Original-Received: from localhost ([127.0.0.1]:40761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkMrT-0002ln-5F for submit@debbugs.gnu.org; Sat, 23 Nov 2013 18:43:39 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:44961 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkMrQ-0002ld-CY for 10387@debbugs.gnu.org; Sat, 23 Nov 2013 18:43:37 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4E7C6258B9E936; Sat, 23 Nov 2013 15:43:34 -0800 (PST) In-Reply-To: <4e9dd7b9-9109-4f67-a9a2-d3c13635c566@default> (Drew Adams's message of "Sat, 23 Nov 2013 09:35:59 -0800 (PST)") 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.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:80888 Archived-At: > I was not aware of this bug thread - just came across it when scanning > the list of patch bugs that Glenn pointed to in emacs-devel today. > > I only skimmed this thread, so ignore if my input is not relevant. I'm not sure whether this feature request was about low-level search functions or more user-oriented isearch commands. Both can be easily implemented by using `isearch-filter-predicate'. But it seems the request has nothing to do with the text search and asks for a better replacement of `next-property-change'. Indeed, such functions could provide a similar interface (function names and argument names) like in isearch functions and maybe even reuse some code e.g. wrapping, direction, etc. One idea is to define `isearch-search-fun-function' in such a way that it will interpret its argument `string' as the name of the property to search. Then new isearch sub-mode will allow searching by property names. > By default, the zones not being searched are dimmed a bit. > `C-M-~' toggles, to search the zones that do *not* have the > particular property values. For example, with a command such as > `isearchp-imenu-command', which normally searches Emacs-Lisp > command definitions (after putting a property on them), > `C-M-~' makes it search all text other than command definitions. `C-M-~' is a strange choice and it can't be typed on tty. There is a special sub-map for filter commands on `M-s f'.