From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#14170: 24.3; linum won't create all overlays after a folding Date: Thu, 11 Apr 2013 02:44:41 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae94ee4571df3dc04da0bee3f X-Trace: ger.gmane.org 1365644723 20585 80.91.229.3 (11 Apr 2013 01:45:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 01:45:23 +0000 (UTC) Cc: 14170@debbugs.gnu.org To: Stefan Monnier , rgm@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 03:45:26 2013 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 1UQ6Zq-0005OX-Cn for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 03:45:26 +0200 Original-Received: from localhost ([::1]:39646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ6Zp-0001dO-Nd for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 21:45:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ6Zk-0001d2-3c for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 21:45:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQ6Zg-0007FL-3f for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 21:45:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ6Zf-0007FF-Vz for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 21:45:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UQ6dJ-00035n-R8 for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 21:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2013 01:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 14170-submit@debbugs.gnu.org id=B14170.136564491111719 (code B ref 14170); Thu, 11 Apr 2013 01:49:01 +0000 Original-Received: (at 14170) by debbugs.gnu.org; 11 Apr 2013 01:48:31 +0000 Original-Received: from localhost ([127.0.0.1]:44453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ6cp-00032t-8o for submit@debbugs.gnu.org; Wed, 10 Apr 2013 21:48:31 -0400 Original-Received: from mail-qe0-f44.google.com ([209.85.128.44]:62679) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ6cl-00032T-Uk for 14170@debbugs.gnu.org; Wed, 10 Apr 2013 21:48:29 -0400 Original-Received: by mail-qe0-f44.google.com with SMTP id i11so638767qej.31 for <14170@debbugs.gnu.org>; Wed, 10 Apr 2013 18:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Z3cSVaGY/Uxlfk+yJRHlRfJUGhnd+sTFO0uZfyGtRu4=; b=GRls8KtPPAWEG5B/Q6PXMC87IwC9jzGsJ0gLAYqfxYD2vrj6bLxRGnLcxdcG2IL7ZC ka1chnR0llDd9OxCQFVi7P9aCvtqUdgR2eUPFMpIXS/cS/k9lsc/FxW1gDljilvorR7X z1EJ4MX7A0wllhgSeriWxRSHjEBziQLg9n0R04KxNVDbWnJP1ombcT9AIovdZzNh16uE BuefaB4M6RBoEiiBVjuTekagjc4PDENC9wvR/EJ4inlroneiTp4OnGtSC4SvSMVP+W4/ L/u8Wl+8Qf3f2kHySP+eh9atY6+d2GKWzKCEs4NNSH7g1UPTny5Es6KBT6zTp3ty6O4Z f0PQ== X-Received: by 10.229.93.194 with SMTP id w2mr1728877qcm.35.1365644681276; Wed, 10 Apr 2013 18:44:41 -0700 (PDT) Original-Received: by 10.49.2.164 with HTTP; Wed, 10 Apr 2013 18:44:41 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:73320 Archived-At: --14dae94ee4571df3dc04da0bee3f Content-Type: text/plain; charset=ISO-8859-1 Although I should be able to remove all overlays between a modification and the end of buffer. This however still leaves the case where I simply scroll through a large buffer, without making changes, and overlays accumulate. Evgeni On Thu, Apr 11, 2013 at 2:37 AM, E Sabof wrote: > The reason I've noticed/reported this bug was because I was working on a > mode with a similar implementation to linum's, and got the same behavior. > This is not a linum bug. > > On a side note, I would prefer nlinum's approach for my package, but if > I'm correct it would become slower over time, as it doesn't "GC" overlays. > And I don't think jit-lock provides an easy method to do it, as it marks > regions "fontified" (as opposed to "fontified-by-X-function"). > > Evgeni > > > On Wed, Apr 10, 2013 at 2:02 AM, E Sabof wrote: > >> nlinum works correctly. >> >> Evgeni >> >> >> >> On Wed, Apr 10, 2013 at 1:38 AM, Stefan Monnier > > wrote: >> >>> > Steps to reproduce: >>> > Open emacs -Q >>> > M-: (progn (linum-mode) (hs-mode)) >>> > Insert a block of comments >>> > M-x hs-hide-block >>> >>> Could you test it with nlinum-mode (available from GNU ELPA)? >>> >>> >>> Stefan >>> >> >> > --14dae94ee4571df3dc04da0bee3f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Although I should be able to remove all overlays between a= modification and the end of buffer. This however still leaves the case whe= re I simply scroll through a large buffer, without making changes, and over= lays accumulate.

Evgeni


<= div class=3D"gmail_quote">On Thu, Apr 11, 2013 at 2:37 AM, E Sabof <esabof@= gmail.com> wrote:
The reason I've noticed= /reported this bug was because I was working on a mode with a similar imple= mentation to linum's, and got the same behavior. This is not a linum bu= g.

On a side note, I would prefer nlinum's approach for my = package, but if I'm correct it would become slower over time, as it doe= sn't "GC" overlays. And I don't think jit-lock provides a= n easy method to do it, as it marks regions "fontified" (as oppos= ed to "fontified-by-X-function").=A0

Evgeni


On Wed, Ap= r 10, 2013 at 2:02 AM, E Sabof <esabof@gmail.com> wrote:
nlinum works correctly.
Evgeni



On Wed, Apr 10, 2013 at 1:38 AM, Stefan Monnier = <monnier@iro.umontreal.ca> wrote:
> Steps to reproduce:
> Open emacs -Q
> M-: (progn (linum-mode) (hs-mode))
> Insert a block of comments
> M-x hs-hide-block

Could you test it with nlinum-mode (available from GNU ELPA)?


=A0 =A0 =A0 =A0 Stefan



--14dae94ee4571df3dc04da0bee3f--