From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexey Veretennikov Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: loccur Date: Thu, 31 Dec 2015 13:49:42 +0100 Message-ID: References: <877fjvfoi3.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451566211 24976 80.91.229.3 (31 Dec 2015 12:50:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 12:50:11 +0000 (UTC) Cc: emacs-devel , Juri Linkov To: daniel sutton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 31 13:50:05 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 1aEcg9-0004Jh-AB for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2015 13:50:05 +0100 Original-Received: from localhost ([::1]:55550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEcg8-0005Ha-E9 for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2015 07:50:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEcft-0005HP-Np for emacs-devel@gnu.org; Thu, 31 Dec 2015 07:49:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEcfp-0000c5-Kn for emacs-devel@gnu.org; Thu, 31 Dec 2015 07:49:49 -0500 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:32912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEcfp-0000bO-Ci for emacs-devel@gnu.org; Thu, 31 Dec 2015 07:49:45 -0500 Original-Received: by mail-lb0-x22b.google.com with SMTP id sv6so119759781lbb.0 for ; Thu, 31 Dec 2015 04:49:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=/GVugTkwKDyxBWd0EJI7ldwhFCieQ145b3NIiDVMOZA=; b=LFlNTiUqQFWW0m6cdHDiq+lXAU0P7iBGGZuYR4WObP6koCYfE06QFAtWpeNburfbhT oiW8nbTDn76MIAA+jwCDUW/W0RG+noKErfLsxwx3buQh5ctgtFCIbkBwjnbs4D0xaR1s iwmfi2h2PQFYNmwLf0jJLLffYt7+hs9ejmEydxU+muOD504WKu7rxdONLKf/XHal3Ew2 CxZxY7O94dvypStXfwue62wWY/tG3pGMsXB1lw/+nUjdNS3HeRm/p/sm7A0jJfVuFXcG AX//mQjXgXBIdj5PCg4CRQ2+UBStelLaG/0/eW7HKWsmrHTk1+AKIGx3Ju9VV5FB2lm8 wFOw== X-Received: by 10.112.161.33 with SMTP id xp1mr24778012lbb.141.1451566184589; Thu, 31 Dec 2015 04:49:44 -0800 (PST) Original-Received: from MacBook-Pro.local (c-667de055.030-62-73746f71.cust.bredbandsbolaget.se. [85.224.125.102]) by smtp.googlemail.com with ESMTPSA id lc3sm12343658lbc.32.2015.12.31.04.49.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Dec 2015 04:49:43 -0800 (PST) In-Reply-To: (daniel sutton's message of "Wed, 30 Dec 2015 21:14:06 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::22b 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:197252 Archived-At: daniel sutton writes: Hi, Thanks for noticing this. It is a redundant code (ovl-start) of course and I've just removed it. > 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). > > > > -- Br, /Alexey