From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10705: 24.0.93; Collect strings matching regexp from Isearch Date: Fri, 03 Feb 2012 09:38:53 +0200 Message-ID: <83haz8fjsi.fsf@gnu.org> References: <874nvac6us.fsf@mail.jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328254899 17961 80.91.229.3 (3 Feb 2012 07:41:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 07:41:39 +0000 (UTC) Cc: 10705@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 08:41:38 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtDm6-0007Lf-6b for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 08:41:38 +0100 Original-Received: from localhost ([::1]:44079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtDm5-0005AH-Ft for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 02:41:37 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtDm2-00056C-Ex for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 02:41:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtDlz-0008Ix-5p for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 02:41:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtDlz-0008Im-25 for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 02:41:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RtDmU-0006xn-44 for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 02:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Feb 2012 07:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10705 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10705-submit@debbugs.gnu.org id=B10705.132825489126729 (code B ref 10705); Fri, 03 Feb 2012 07:42:02 +0000 Original-Received: (at 10705) by debbugs.gnu.org; 3 Feb 2012 07:41:31 +0000 Original-Received: from localhost ([127.0.0.1]:51574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtDly-0006x4-QV for submit@debbugs.gnu.org; Fri, 03 Feb 2012 02:41:31 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:43736) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtDlw-0006wo-7d for 10705@debbugs.gnu.org; Fri, 03 Feb 2012 02:41:29 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LYT00M003IHZB00@a-mtaout21.012.net.il> for 10705@debbugs.gnu.org; Fri, 03 Feb 2012 09:40:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.37.111]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYT00MJ8401WE80@a-mtaout21.012.net.il>; Fri, 03 Feb 2012 09:40:50 +0200 (IST) In-reply-to: <874nvac6us.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:56410 Archived-At: > From: Juri Linkov > Date: Thu, 02 Feb 2012 23:02:03 +0200 > > Currently `isearch-occur' is not in sync with the interactive specification > of `occur' that provides a new feature of `C-u M-x occur RET' that collects > the matching strings into the `*Occur*' buffer without line numbers. > > The following patch syncs code from `occur-read-primary-args' to `isearch-occur'. Btw, while at that, how about fixing the doc string as well. What it says now, viz. > Interactively, REGEXP is the current search regexp or a quoted search > string. NLINES has the same meaning as in `occur'." is not clear enough: what is a "quoted search string"? I'd suggest to describe explicitly the 3 cases handled by the code: > + (regexp (cond > + (isearch-word (word-search-regexp isearch-string)) > + (isearch-regexp isearch-string) > + (t (regexp-quote isearch-string))))) and refer to the relevant string in each case.