From unknown Fri Sep 05 11:52:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14784 <14784@debbugs.gnu.org> To: bug#14784 <14784@debbugs.gnu.org> Subject: Status: Occur from more Isearch types Reply-To: bug#14784 <14784@debbugs.gnu.org> Date: Fri, 05 Sep 2025 18:52:04 +0000 retitle 14784 Occur from more Isearch types reassign 14784 emacs submitter 14784 Juri Linkov severity 14784 wishlist tag 14784 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 19:31:12 2013 Received: (at submit) by debbugs.gnu.org; 3 Jul 2013 23:31:12 +0000 Received: from localhost ([127.0.0.1]:55665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuWVy-0005di-Tr for submit@debbugs.gnu.org; Wed, 03 Jul 2013 19:31:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49918) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuWVv-0005dN-8R for submit@debbugs.gnu.org; Wed, 03 Jul 2013 19:31:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuWVn-0005Vq-OA for submit@debbugs.gnu.org; Wed, 03 Jul 2013 19:31:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuWVn-0005VX-Js for submit@debbugs.gnu.org; Wed, 03 Jul 2013 19:30:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuWVm-0007Yh-2Q for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 19:30:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuWVj-0005M1-MK for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 19:30:57 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:40818 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuWVj-0005IV-GV for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 19:30:55 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 1848C258B9E915 for ; Wed, 3 Jul 2013 16:30:52 -0700 (PDT) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Occur from more Isearch types Organization: JURTA Date: Thu, 04 Jul 2013 02:28:15 +0300 Message-ID: <87ip0r6x68.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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] 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 (-----) Severity: wishlist Tags: patch Like bug#14673 added `Buffer-menu-multi-occur' to invoke Occur from multiple marked buffers, it would also make sense to invoke Occur from other search types where the search space differs from the default single-buffer search. Then typing `M-s o' in the minibuffer's isearch will show occurrences from all minibuffer history elements, and when typed in the comint's history isearch, will show occurrences from all shell history elements: === modified file 'lisp/simple.el' --- lisp/simple.el 2013-06-27 00:50:50 +0000 +++ lisp/simple.el 2013-07-03 23:17:01 +0000 @@ -1938,6 +2032,22 @@ Go to the history element by the absolute history position HIST-POS." (goto-history-element hist-pos)) +(defun minibuffer-occur (regexp &optional nlines) + "Show all entries in the minibuffer history containing a match for REGEXP. +Like `occur', but acts on the contents of the minibuffer history +in the currently active minibuffer." + (interactive (occur-read-primary-args)) + (when (and (minibufferp) minibuffer-history-variable) + (let* ((history-variable minibuffer-history-variable) + (history (symbol-value history-variable))) + (with-current-buffer + (get-buffer-create (format " *Minibuffer history %s*" + history-variable)) + (erase-buffer) + (dolist (line history) + (insert (query-replace-descr line) "\n")) + (occur-1 regexp nlines (list (current-buffer))))))) + ;Put this on C-x u, so we can force that rather than C-_ into startup msg (define-obsolete-function-alias 'advertised-undo 'undo "23.2") === modified file 'lisp/comint.el' --- lisp/comint.el 2013-06-21 09:37:04 +0000 +++ lisp/comint.el 2013-07-03 23:15:59 +0000 @@ -1570,6 +1570,20 @@ Go to the history element by the absolute history position HIST-POS." (comint-goto-input hist-pos)) +(defun comint-history-occur (regexp &optional nlines) + "Show all entries in the input history containing a match for REGEXP. +Like `occur', but acts on the contents of the input history +in the currently active comint buffer." + (interactive (occur-read-primary-args)) + (when comint-input-ring + (let ((input-ring comint-input-ring)) + (with-current-buffer + (get-buffer-create " *Comint history*") + (erase-buffer) + (dotimes (i (1- (ring-length input-ring))) + (insert (query-replace-descr (ring-ref input-ring i)) "\n")) + (occur-1 regexp nlines (list (current-buffer))))))) + (defun comint-within-quotes (beg end) "Return t if the number of quotes between BEG and END is odd. === modified file 'lisp/isearch.el' --- lisp/isearch.el 2013-06-13 22:08:45 +0000 +++ lisp/isearch.el 2013-07-03 23:18:35 +0000 @@ -1785,7 +1888,12 @@ (defun isearch-occur (regexp &optional n isearch-regexp-lax-whitespace isearch-lax-whitespace) search-whitespace-regexp))) - (occur regexp nlines))) + (cond ((and (minibufferp) minibuffer-history-variable) + (minibuffer-occur regexp nlines)) + ((and (boundp 'comint-input-ring) comint-input-ring) + (comint-history-occur regexp nlines)) + (t + (occur regexp nlines))))) (declare-function hi-lock-read-face-name "hi-lock" ()) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 11:44:22 2019 Received: (at 14784) by debbugs.gnu.org; 26 Jun 2019 15:44:22 +0000 Received: from localhost ([127.0.0.1]:36877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgA5u-0007B5-9T for submit@debbugs.gnu.org; Wed, 26 Jun 2019 11:44:22 -0400 Received: from quimby.gnus.org ([80.91.231.51]:51104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgA5t-0007As-5O for 14784@debbugs.gnu.org; Wed, 26 Jun 2019 11:44:21 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgA5n-0001TM-Km; Wed, 26 Jun 2019 17:44:18 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#14784: Occur from more Isearch types References: <87ip0r6x68.fsf@mail.jurta.org> Date: Wed, 26 Jun 2019 17:44:15 +0200 In-Reply-To: <87ip0r6x68.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 04 Jul 2013 02:28:15 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Juri Linkov writes: > Like bug#14673 added `Buffer-menu-multi-occur' to invoke Occur > from multiple marked buffers, it would also make sense to invoke Occur > from other search types where the search space differs from [...] 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: 14784 Cc: 14784@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 (-) Juri Linkov writes: > Like bug#14673 added `Buffer-menu-multi-occur' to invoke Occur > from multiple marked buffers, it would also make sense to invoke Occur > from other search types where the search space differs from the default > single-buffer search. Then typing `M-s o' in the minibuffer's isearch > will show occurrences from all minibuffer history elements, and > when typed in the comint's history isearch, will show occurrences > from all shell history elements: [...] > +(defun minibuffer-occur (regexp &optional nlines) > + "Show all entries in the minibuffer history containing a match for REGEXP. > +Like `occur', but acts on the contents of the minibuffer history > +in the currently active minibuffer." > + (interactive (occur-read-primary-args)) > + (when (and (minibufferp) minibuffer-history-variable) > + (let* ((history-variable minibuffer-history-variable) > + (history (symbol-value history-variable))) > + (with-current-buffer > + (get-buffer-create (format " *Minibuffer history %s*" > + history-variable)) > + (erase-buffer) > + (dolist (line history) > + (insert (query-replace-descr line) "\n")) > + (occur-1 regexp nlines (list (current-buffer))))))) That's an interesting feature... But with normal `C-s i foo M-s o', we can then jump to the result, while we can't really do that there, can we? So there's a bit of a disconnect between using an Occur buffer and the minibuffer... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 07:23:56 2020 Received: (at 14784) by debbugs.gnu.org; 13 Aug 2020 11:23:56 +0000 Received: from localhost ([127.0.0.1]:47187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6BKu-0000tj-3F for submit@debbugs.gnu.org; Thu, 13 Aug 2020 07:23:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6BKs-0000tT-3g for 14784@debbugs.gnu.org; Thu, 13 Aug 2020 07:23:54 -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=8OUz60euI+d4KNZGzEcDHDGr0bq1SkcdCBSd4woyfco=; b=Rtrpf0e/79SBa+/dIDKQK4GIDT PZIbgOuxz8kJG3+aHiXg08hxIKtECapKf+CFQtg/7ZMXkv0upLZ19Ar2ZmmBztuCoXVL4tj9iIeMY K6Jf/+Ql2MFMNaqP/ywbtHVbJntxX2Ii+/oHUFZzEDYMPVx8z7hWHPcVU8fLeck8aVaI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6BKj-0005VQ-O3; Thu, 13 Aug 2020 13:23:48 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#14784: Occur from more Isearch types References: <87ip0r6x68.fsf@mail.jurta.org> Date: Thu, 13 Aug 2020 13:23:44 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Wed, 26 Jun 2019 17:44:15 +0200") Message-ID: <871rkaeqm7.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: Lars Ingebrigtsen writes: > That's an interesting feature... But with normal `C-s i foo M-s o', we > can then jump to the result, while we can't really do that there, can > we? So there's a bit of a disconnect between using an [...] 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: 14784 Cc: 14784@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 (-) Lars Ingebrigtsen writes: > That's an interesting feature... But with normal `C-s i foo M-s o', we > can then jump to the result, while we can't really do that there, can > we? So there's a bit of a disconnect between using an Occur buffer and > the minibuffer... That was a year ago, and there was no response, so I'm guessing there wasn't much interest in adding this feature, so I'm closing this bug report. Please reopen if this is incorrect. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 07:24:01 2020 Received: (at control) by debbugs.gnu.org; 13 Aug 2020 11:24:01 +0000 Received: from localhost ([127.0.0.1]:47190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6BKz-0000u3-A2 for submit@debbugs.gnu.org; Thu, 13 Aug 2020 07:24:01 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6BKx-0000tb-LM for control@debbugs.gnu.org; Thu, 13 Aug 2020 07:23:59 -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=MlLXaa5OPIRU5o6EJbA14DfX+tFG7Faw/u1lruYVrJ0=; b=B84IAjZL5FZrBow/pbp7wQ5Nwx BdKU91x+zQODWpsioToAYmU/WN4w6MIXbZp6MABbvBl2grzl9kvm5TdAatdxVRu7ByfvKS5mvBQ4c TbenQtCoVjDDXDu8WTZBZ1RIR5VQAvzeqAcnGzMv1lLfIybWJJxp75UaOXwL908zFt18=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6BKp-0005Va-Sh for control@debbugs.gnu.org; Thu, 13 Aug 2020 13:23:54 +0200 Date: Thu, 13 Aug 2020 13:23:50 +0200 Message-Id: <87zh6ydc1l.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14784 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: close 14784 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 (-) close 14784 quit From unknown Fri Sep 05 11:52:04 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, 11 Sep 2020 11:24:08 +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