From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#21957: 24.5; Make occur search within regions when there is one Date: Sun, 22 Nov 2015 12:13:31 +0000 Message-ID: References: <87si42sdau.fsf@ipass-lix01.i-did-not-set--mail-host-address--so-tickle-me> <87ziy9tu1m.fsf@mail.linkov.net> <56500129.9090307@itsuwa.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114069d479815f0525200948 X-Trace: ger.gmane.org 1448194476 29146 80.91.229.3 (22 Nov 2015 12:14:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 12:14:36 +0000 (UTC) Cc: 21957@debbugs.gnu.org, Juri Linkov To: Li Ian-Xue Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 22 13:14:27 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 1a0TX1-00028E-UD for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 13:14:12 +0100 Original-Received: from localhost ([::1]:55681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0TX1-0003XX-Gx for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 07:14:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0TWx-0003X2-Ht for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 07:14:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0TWs-0007Lw-IY for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 07:14:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0TWs-0007Ll-Eg for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 07:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0TWr-0003sz-OG for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 07:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2015 12:14:01 +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.144819443314911 (code B ref 21957); Sun, 22 Nov 2015 12:14:01 +0000 Original-Received: (at 21957) by debbugs.gnu.org; 22 Nov 2015 12:13:53 +0000 Original-Received: from localhost ([127.0.0.1]:47673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0TWj-0003sQ-Bk for submit@debbugs.gnu.org; Sun, 22 Nov 2015 07:13:53 -0500 Original-Received: from mail-lf0-f47.google.com ([209.85.215.47]:34270) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0TWO-0003ry-Hb for 21957@debbugs.gnu.org; Sun, 22 Nov 2015 07:13:51 -0500 Original-Received: by lffu14 with SMTP id u14so92973997lff.1 for <21957@debbugs.gnu.org>; Sun, 22 Nov 2015 04:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=KadmYTnEqxUp4NWxdC4J7UWqTQ7oY7QishtijXqH0Xw=; b=oUYq6+qei7pLJ2SClSObhtrUUzb4WUt1n4+BPAl/VR41NArgE1f05LdDnno1GLW0rn kxFaKRQFUSqRuedmdDdSZteXH90VOllKUsUoLxyI2RfHqjOCEUBtTBWiDXMPq626Rxlb VouG7clL3+a8+79UyY5rn/WsKVZ5O5w9N0Wy1NuEydMLdpkQF6yluXckIY/YUpK8jkYx ORWxvzco0bFcJCOipcxYyopcwDEKI0CGSEDOzD44rIMIOUUMS90dtvucsrO52NbUJisv cgrUdi4/LDSLSxVBD3YVId5wS6DDe5f+xhD2mG9cEuh9oEtelSSYsDuxK9gIVpnaI/qS PDKA== X-Received: by 10.25.19.69 with SMTP id j66mr9224742lfi.25.1448194411690; Sun, 22 Nov 2015 04:13:31 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Sun, 22 Nov 2015 04:13:31 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Sun, 22 Nov 2015 04:13:31 -0800 (PST) In-Reply-To: <56500129.9090307@itsuwa.org> X-Google-Sender-Auth: PSgTPEa9LleY-r_zt4BpTF242YU 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:109056 Archived-At: --001a114069d479815f0525200948 Content-Type: text/plain; charset=UTF-8 I've been thinking it might be nice to have an occur-dwim command. 1. If the selected region has multiple lines, it would search only inside the region. 2. If the selected region has one line or less, it would use the region as the search string. 3. If there's no selection it do the usual occur. --001a114069d479815f0525200948 Content-Type: text/html; charset=UTF-8

I've been thinking it might be nice to have an occur-dwim command.

1. If the selected region has multiple lines, it would search only inside the region.
2. If the selected region has one line or less, it would use the region as the search string.
3. If there's no selection it do the usual occur.

--001a114069d479815f0525200948--