From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: daniel sutton Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: loccur Date: Wed, 30 Dec 2015 21:14:06 -0600 Message-ID: References: <877fjvfoi3.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f83938730161e0528290cc4 X-Trace: ger.gmane.org 1451531659 1631 80.91.229.3 (31 Dec 2015 03:14:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 03:14:19 +0000 (UTC) Cc: Alexey Veretennikov , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 31 04:14:17 2015 Return-path: Envelope-to: ged-emacs-devel@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 1aETgv-00087N-Cn for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2015 04:14:17 +0100 Original-Received: from localhost ([::1]:54495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aETgr-0007Vg-8G for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2015 22:14:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aETgm-0007VZ-TO for emacs-devel@gnu.org; Wed, 30 Dec 2015 22:14:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aETgl-0002MR-Lw for emacs-devel@gnu.org; Wed, 30 Dec 2015 22:14:08 -0500 Original-Received: from mail-ig0-x234.google.com ([2607:f8b0:4001:c05::234]:34597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aETgl-0002Lw-H5 for emacs-devel@gnu.org; Wed, 30 Dec 2015 22:14:07 -0500 Original-Received: by mail-ig0-x234.google.com with SMTP id ik10so35023168igb.1 for ; Wed, 30 Dec 2015 19:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DfnXE1mkC5v+/RRlQ57uZYOKaHS6qDf1LOvFwnZTYrs=; b=Vy9dAMOyCsWG+bxpHhu596OudLsUDK+J8XwV162V0jJiHggiGcN07Zs/6XOhf2mn5j LrhfGi9UGubAyj4opoPN277Ldhvg4pxBvIsycrCVdYcJG6vULOyGIO1r37Qexz2x5Rl9 lHgsdr1dH5qXgKzR68iWpKoKjHPBEqNd9hDhZebAMye4khhO67JwnK0Ijw5cQoKXpmwW 5+zvHXlgrAquoTtPeNX2i6aKAe9AjYuJmJEGfBmYa/iDJO/fYNiEFe5i2c8Z5qy5OlLZ dsn9ZGwuvQaAlDIxgrnqYiSZR8+PKCYbmCR+OR8ADRi3QJvpnwdA8TsuuwJZKtYGFPuG iHpQ== X-Received: by 10.50.30.100 with SMTP id r4mr60431877igh.23.1451531646799; Wed, 30 Dec 2015 19:14:06 -0800 (PST) Original-Received: by 10.107.7.229 with HTTP; Wed, 30 Dec 2015 19:14:06 -0800 (PST) In-Reply-To: <877fjvfoi3.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c05::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197223 Archived-At: --e89a8f83938730161e0528290cc4 Content-Type: text/plain; charset=UTF-8 hi. had a question about the code. I'm not familiar with this notation and was wondering if anyone could chime in with an explanation: (define-key global-map [(control o)] 'loccur-current) and then you have the following line (let ((ovl-start (if (= prev-end 1) 1 prev-end))...) where it seems like ovl-start is always equal to prev-end? Just trying t ounderstand these parts but otherwise the package looks amazing and I've already incorporated it into my emacs. thanks so much for sharing On Wed, Dec 30, 2015 at 6:30 PM, Juri Linkov wrote: > > I would like to contribute my package loccur > > (https://github.com/fourier/loccur) to the GNU ELPA. It is basically > > something in between keep-lines and occur: provides the same > > functionality as occur but without creating a new buffer/window. > > A better analogy to describe your package is narrowing > to non-contiguous regions with boundaries of matching lines > (not sure wherether this feature should be added into core). > > --e89a8f83938730161e0528290cc4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
hi. had a question about the code.

I= 9;m not familiar with this notation and was wondering if anyone could chime= in with an explanation:
(define-key global-map [(control o)= ] 'loccur-current)

and then you have the= following line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0(let ((ovl-start (if (=3D prev-end 1) 1 prev-end))...)
where it seems like ovl-start is always equal to prev-end?

=
Just trying t ounderstand these parts but otherwise the package = looks amazing and I've already incorporated it into my emacs. thanks so= much for sharing


=
On Wed, Dec 30, 2015 at 6:30 PM, Juri Linkov <jur= i@linkov.net> wrote:
> I would like to contribute my package loccur
> (https://github.com/fourier/loccur) to the GNU ELPA. It is= basically
> something in between keep-lines and occur: provides the same
> functionality as occur but without creating a new buffer/window.

A better analogy to describe your package is narrowing
to non-contiguous regions with boundaries of matching lines
(not sure wherether this feature should be added into core).


--e89a8f83938730161e0528290cc4--