From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 09 15:01:17 2014 Received: (at submit) by debbugs.gnu.org; 9 Nov 2014 20:01:17 +0000 Received: from localhost ([127.0.0.1]:55114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnYfl-0007rJ-Bm for submit@debbugs.gnu.org; Sun, 09 Nov 2014 15:01:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53954) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnYfi-0007r8-Uh for submit@debbugs.gnu.org; Sun, 09 Nov 2014 15:01:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnYfY-0004Tg-Ri for submit@debbugs.gnu.org; Sun, 09 Nov 2014 15:01:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnYfY-0004Tc-P2 for submit@debbugs.gnu.org; Sun, 09 Nov 2014 15:01:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnYfO-0000Qn-Tq for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 15:01:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnYfF-0004S6-3T for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 15:00:54 -0500 Received: from korolev.univ-paris7.fr ([2001:660:3301:8000::1:2]:53565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnYfE-0004Rr-Od for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 15:00:45 -0500 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/46573) with ESMTP id sA9K0fo1019949 for ; Sun, 9 Nov 2014 21:00:42 +0100 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 423A02A10BB for ; Sun, 9 Nov 2014 21:00:41 +0100 (CET) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 6XjDI6_zjJ6z for ; Sun, 9 Nov 2014 21:00:40 +0100 (CET) Received: from pirx.pps.jussieu.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 1C6242A1009 for ; Sun, 9 Nov 2014 21:00:39 +0100 (CET) Date: Sun, 09 Nov 2014 21:00:50 +0100 Message-ID: <87oasgrvnx.wl-jch@pps.univ-paris-diderot.fr> From: Juliusz Chroboczek To: bug-gnu-emacs@gnu.org Subject: 24.4; Please provide a non-regexp interface to occur User-Agent: Wanderlust/2.15.9 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [194.254.61.138]); Sun, 09 Nov 2014 21:00:42 +0100 (CET) X-Miltered: at korolev with ID 545FC7E9.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 545FC7E9.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 545FC7E9.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. I like occur a lot, but I find it inflexible -- the matched lines can only be specified by a regexp. I'd like to be aple to pass a function to occur instead of a regexp. The function should be called with point at the beginning of a line to match/not match, so that (occur regexp) is equivalent to (occur #'(lambda () (looking-at regexp))) Of course, the function should be able to examine the context around the line being matched. -- Juliusz From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 09 15:51:21 2014 Received: (at 19004) by debbugs.gnu.org; 9 Nov 2014 20:51:21 +0000 Received: from localhost ([127.0.0.1]:55179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnZSD-0000p4-4M for submit@debbugs.gnu.org; Sun, 09 Nov 2014 15:51:21 -0500 Received: from ps18281.dreamhost.com ([69.163.222.226]:50103 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnZSA-0000ov-DA for 19004@debbugs.gnu.org; Sun, 09 Nov 2014 15:51:18 -0500 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id A1495348328E59; Sun, 9 Nov 2014 12:51:17 -0800 (PST) From: Juri Linkov To: Juliusz Chroboczek Subject: Re: bug#19004: 24.4; Please provide a non-regexp interface to occur Organization: JURTA References: <87oasgrvnx.wl-jch@pps.univ-paris-diderot.fr> Date: Sun, 09 Nov 2014 22:49:50 +0200 In-Reply-To: <87oasgrvnx.wl-jch@pps.univ-paris-diderot.fr> (Juliusz Chroboczek's message of "Sun, 09 Nov 2014 21:00:50 +0100") Message-ID: <87tx28w13l.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19004 Cc: 19004@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > I like occur a lot, but I find it inflexible -- the matched lines can only > be specified by a regexp. I'd like to be aple to pass a function to occur > instead of a regexp. > > The function should be called with point at the beginning of a line to > match/not match, so that > > (occur regexp) > > is equivalent to > > (occur #'(lambda () (looking-at regexp))) > > Of course, the function should be able to examine the context around the > line being matched. At the core of the Occur engine there is the function re-search-forward. We could move it out to a separate variable e.g. occur-search-function (as we do for isearch-search-fun-function). Then you will be able to override it with your own like (let ((occur-search-function 'word-search-forward)) (occur string)) From debbugs-submit-bounces@debbugs.gnu.org Thu May 27 22:20:16 2021 Received: (at 19004) by debbugs.gnu.org; 28 May 2021 02:20:16 +0000 Received: from localhost ([127.0.0.1]:53345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmS6i-0005V6-GN for submit@debbugs.gnu.org; Thu, 27 May 2021 22:20:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmS6g-0005Uj-LX for 19004@debbugs.gnu.org; Thu, 27 May 2021 22:20:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sULb/I+711zgkVAnsLCxjkoFz6go4giRSE1tH5O4HuE=; b=KsDZTaoSU2w1dEGI+Xs4DbTo9/ UgSZzII8I983eyvRaSTQBxgoyQf5MjsaEG/TMFfMCBoBikJCpJcG786hhVe9L8UZ3NUFEwCrzME8B J0/MUueHuLMJpIepElvNFrr00wPmHbp/OGeXXBly3tIV2yBu4LaR7v4ttkgtQC8AwMM4=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmS6Y-0003gS-J4; Fri, 28 May 2021 04:20:08 +0200 From: Lars Ingebrigtsen To: Juliusz Chroboczek Subject: Re: bug#19004: 24.4; Please provide a non-regexp interface to occur References: <87oasgrvnx.wl-jch@pps.univ-paris-diderot.fr> X-Now-Playing: The Residents's _The King & Eye: RMX_: "A Fool such as I" Date: Fri, 28 May 2021 04:20:06 +0200 In-Reply-To: <87oasgrvnx.wl-jch@pps.univ-paris-diderot.fr> (Juliusz Chroboczek's message of "Sun, 09 Nov 2014 21:00:50 +0100") Message-ID: <87cztby4yx.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juliusz Chroboczek writes: > I like occur a lot, but I find it inflexible -- the matched lines can only > be specified by a regexp. I'd like to be aple to pass a function to occur > instead of a regexp. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19004 Cc: 19004@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juliusz Chroboczek writes: > I like occur a lot, but I find it inflexible -- the matched lines can only > be specified by a regexp. I'd like to be aple to pass a function to occur > instead of a regexp. (I'm going through old bug reports that unfortunately got little response at the time.) There are many ways to search in Emacs, and there's a some packages that provide structured searching, too. (For instance, to search based on semantic qualities in the code.) Given that, I don't think it makes that much sense to extend the `occur' command itself -- it does the thing it does very well, and extending it in that way would make an already complex command even more complicated. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu May 27 22:20:21 2021 Received: (at control) by debbugs.gnu.org; 28 May 2021 02:20:21 +0000 Received: from localhost ([127.0.0.1]:53348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmS6m-0005VP-OT for submit@debbugs.gnu.org; Thu, 27 May 2021 22:20:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmS6l-0005Uw-Jw for control@debbugs.gnu.org; Thu, 27 May 2021 22:20:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NvvphjF2HZcQSGus2kQSR+pTh6pTpgUImVeHp9QTHkk=; b=Vuwdf9DzRkiQhyBDVy/GV5hHVP 79IFpUzP/CEe7Oglrfjf8pFwmHanuFOfou4XZvnzCb532OznkYu4RNLck/G7/kPeuvsUVBSSKd9h6 caC3jR79aqAyt+zCnC2cgNbHVR2rstjkXWzuGNlT0t08owhW8VRMctWRs/Uj+JTWn4no=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmS6e-0003ga-5j for control@debbugs.gnu.org; Fri, 28 May 2021 04:20:14 +0200 Date: Fri, 28 May 2021 04:20:11 +0200 Message-Id: <87bl8vy4ys.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #19004 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 19004 wontfix close 19004 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 19004 wontfix close 19004 quit From unknown Sun Jun 22 08:10:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 Jun 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator