From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Li Ian-Xue Newsgroups: gmane.emacs.bugs Subject: bug#21957: 24.5; Make occur search within regions when there is one Date: Sat, 21 Nov 2015 13:29:13 +0800 Message-ID: <56500129.9090307@itsuwa.org> References: <87si42sdau.fsf@ipass-lix01.i-did-not-set--mail-host-address--so-tickle-me> <87ziy9tu1m.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1448083825 5896 80.91.229.3 (21 Nov 2015 05:30:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Nov 2015 05:30:25 +0000 (UTC) Cc: 21957@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 21 06:30:14 2015 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 1a00kX-0000pN-G6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 06:30:13 +0100 Original-Received: from localhost ([::1]:51129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a00kW-0003aF-R2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 00:30:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a00kT-0003Xm-M1 for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 00:30:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a00kP-0000OI-LD for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 00:30:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a00kP-0000NZ-Ii for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 00:30:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a00kO-0008EV-Me for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 00:30:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Li Ian-Xue Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Nov 2015 05:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21957-submit@debbugs.gnu.org id=B21957.144808377931577 (code B ref 21957); Sat, 21 Nov 2015 05:30:04 +0000 Original-Received: (at 21957) by debbugs.gnu.org; 21 Nov 2015 05:29:39 +0000 Original-Received: from localhost ([127.0.0.1]:46575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a00jy-0008DF-Hh for submit@debbugs.gnu.org; Sat, 21 Nov 2015 00:29:38 -0500 Original-Received: from [128.199.246.141] (port=41324 helo=itsuwa.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a00je-0008Ck-DE for 21957@debbugs.gnu.org; Sat, 21 Nov 2015 00:29:37 -0500 Original-Received: from 36-236-127-213.dynamic-ip.hinet.net ([36.236.127.213] helo=[192.168.1.109]) by itsuwa.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1a00jc-00047v-RS; Sat, 21 Nov 2015 13:29:16 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <87ziy9tu1m.fsf@mail.linkov.net> 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: 208.118.235.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:109010 Archived-At: Yes, that is what I did when I found out `occur' doesn't do regions. A friend of mine suggested that a combination of narrowing (C-x n w) and M-s o should do the trick, and it did. Nevertheless still I would still prefer `occur' to accept a regional parameter, as it would be much straight forward mode of operation. Thank you. Juri Linkov 於 西元2015年11月20日 08:04 寫道: >> This is a wish request. >> >> The current occur implementation doesn't include a `region' version >> which search only within the current region mark by user, instead it >> operates on the entire buffer. >> >> It would come in handy if occur searchs within regions as well. Such >> behavior is desired, for example, when listing the occurances of a >> symbol in the body of a function definition. > Do you think it would suit your needs when you first narrow the buffer > (e.g. to the body of a function with C-x n d) before running occur?