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: Mon, 23 Nov 2015 00:53:52 +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> <87io4t5zto.fsf@mail.linkov.net> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a83aab5b0d805252aa855 X-Trace: ger.gmane.org 1448240117 18105 80.91.229.3 (23 Nov 2015 00:55:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2015 00:55:17 +0000 (UTC) Cc: 21957@debbugs.gnu.org, Li Ian-Xue To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 23 01:55:11 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 1a0fPT-0005eM-8C for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 01:55:11 +0100 Original-Received: from localhost ([::1]:58090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0fPT-0000Xv-B1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 19:55:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0fPO-0000UV-Ma for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 19:55:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0fPK-0003aa-I4 for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 19:55:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0fPK-0003aI-CZ for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 19:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0fPK-0000WZ-3S for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 19:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Nov 2015 00:55:02 +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.14482400551948 (code B ref 21957); Mon, 23 Nov 2015 00:55:02 +0000 Original-Received: (at 21957) by debbugs.gnu.org; 23 Nov 2015 00:54:15 +0000 Original-Received: from localhost ([127.0.0.1]:48683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0fOY-0000VL-Gx for submit@debbugs.gnu.org; Sun, 22 Nov 2015 19:54:14 -0500 Original-Received: from mail-lb0-f182.google.com ([209.85.217.182]:36795) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0fOD-0000UZ-Ta for 21957@debbugs.gnu.org; Sun, 22 Nov 2015 19:54:12 -0500 Original-Received: by lbblt2 with SMTP id lt2so87955449lbb.3 for <21957@debbugs.gnu.org>; Sun, 22 Nov 2015 16:53:52 -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=FitageHn0LxPko6OyN5Yd48R3Yw4Aqm53pRHIKj+5Ro=; b=MS47bn4KXLQnIxv+S9SsMAehL3Q4nfx61c+A0wtrz68FIdM5VJI72RCjySB254x4xx YfgI7qiWObgg2H3FgOI8TRvFZ2bHIUv8MbuJ2aU4TuUnznYwGXxUOjtUO95LrZvFHvDN LOidFGxkX4v28DSoIRPtq9qfoP7z3X4K5DdWlZNVFMBe2xtrnoP1mJsWj4+EIrpEwyjv Je2Li3GhS0loAfqbybZYUrHl7O3MbKwPmaAcfxc7vT4oHhWpzQfrHh2ND86S/s2bnQ1M u9eGDPF9fJGU2OdPZcwo7ljjpxKeD9Rn/5giFWOrorRX9Y6RiG2ewo932f2CFHdyobnR Eaeg== X-Received: by 10.112.130.195 with SMTP id og3mr8225051lbb.69.1448240032883; Sun, 22 Nov 2015 16:53:52 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Sun, 22 Nov 2015 16:53:52 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Sun, 22 Nov 2015 16:53:52 -0800 (PST) In-Reply-To: <87io4t5zto.fsf@mail.linkov.net> X-Google-Sender-Auth: pG8724PW-wAVpy3ifmoLBV_ZIGI 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:109110 Archived-At: --047d7b3a83aab5b0d805252aa855 Content-Type: text/plain; charset=UTF-8 > BTW, I recall Drew asked how to do the same in Isearch, but I see no way > because in Isearch it's useful to mark the beginning of the region, and > extend it using Isearch commands by putting the end of the region where > Isearch ends. Technically that's not necessary. Isearch always pushes the mark for you anyway, even though it doesn't activate the region. But most people don't know that, and even though I know it I frequently forget and activate region before isearch. Anyway, I don't see why it would be a problem. Just add an item to do a regular search if the region is empty. --047d7b3a83aab5b0d805252aa855 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> BTW, I recall Drew asked how to do the same in Isearch,= but I see no way
> because in Isearch it's useful to mark the beginning of the region= , and
> extend it using Isearch commands by putting the end of the region wher= e
> Isearch ends.

Technically that's not necessary. Isearch always pushes = the mark for you anyway, even though it doesn't activate the region. Bu= t most people don't know that, and even though I know it I frequently f= orget and activate region before isearch.

Anyway, I don't see why it would be a problem. Just add = an item to do a regular search if the region is empty.

--047d7b3a83aab5b0d805252aa855--