From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: [patch] Run occur command restricted to a region Date: Fri, 20 Jan 2017 09:46:51 -0700 Organization: XCP-1 Message-ID: References: <87vau3jl6f.fsf@gmail.com> <87shp6uwvj.fsf@mail.linkov.net> <83h95lua2f.fsf@gnu.org> <878tqxm1wh.fsf@mail.linkov.net> <87r34ozq20.fsf@gmail.com> <87inq0xhiw.fsf@mail.linkov.net> <87d1g55h8d.fsf@mail.linkov.net> <87r33ywquz.fsf@mail.linkov.net> <87ziilc05e.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1484932349 7249 195.159.176.226 (20 Jan 2017 17:12:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 17:12:29 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 Cc: Emacs developers , Juri Linkov To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 18:12:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUcja-00018l-Mb for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2017 18:12:18 +0100 Original-Received: from localhost ([::1]:56129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUcjf-0002TA-JU for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2017 12:12:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUcL4-00065Q-Ql for emacs-devel@gnu.org; Fri, 20 Jan 2017 11:47:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUcL1-0005aG-ME for emacs-devel@gnu.org; Fri, 20 Jan 2017 11:46:58 -0500 Original-Received: from proofpoint4.lanl.gov ([2001:400:4210:400::a4]:54568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUcL1-0005XW-Fc for emacs-devel@gnu.org; Fri, 20 Jan 2017 11:46:55 -0500 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailgate4.lanl.gov (8.15.0.59/8.15.0.59) with ESMTP id v0KGkpg3014011; Fri, 20 Jan 2017 09:46:51 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id B262C144CA60; Fri, 20 Jan 2017 09:46:51 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from bismuth.lanl.gov (bismuth.lanl.gov [128.165.246.103]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 9D75F144CA5C; Fri, 20 Jan 2017 09:46:51 -0700 (MST) In-Reply-To: <87ziilc05e.fsf@gmail.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.15.154, 1.0.8, 0.0.0000 definitions=2017-01-20_12:2017-01-20, 2017-01-20, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2001:400:4210:400::a4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211431 Archived-At: > **) The second patch add your suggestion on showing highlighted the > current line. When there are matches after the current line, the > point in *Occur* is set right after such line. I don't care about the highlighting, but I like very much the idea of locating point in *Occur* at the place that corresponds to point in the source buffer. It provides for free most of the benefit of `occur-above' and `occur-below' (by whatever names) by partitioning the results in an intuitive fashion. (It's also the same idea as in my vc-diff patch (which I still need to finish): to show a map of interesting things in the buffer centered on point.) Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.