From unknown Sat Aug 16 13:40:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27281 <27281@debbugs.gnu.org> To: bug#27281 <27281@debbugs.gnu.org> Subject: Status: Fix nlinum missing line numbers. Reply-To: bug#27281 <27281@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:40:34 +0000 retitle 27281 Fix nlinum missing line numbers. reassign 27281 emacs submitter 27281 William Gilbert severity 27281 normal tag 27281 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 07 17:48:16 2017 Received: (at submit) by debbugs.gnu.org; 7 Jun 2017 21:48:16 +0000 Received: from localhost ([127.0.0.1]:33693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIioK-0003u9-GC for submit@debbugs.gnu.org; Wed, 07 Jun 2017 17:48:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIimn-0003rC-Dc for submit@debbugs.gnu.org; Wed, 07 Jun 2017 17:46:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIimh-0006vS-0M for submit@debbugs.gnu.org; Wed, 07 Jun 2017 17:46:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dIimg-0006vO-TH for submit@debbugs.gnu.org; Wed, 07 Jun 2017 17:46:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIimf-0008T0-Lf for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 17:46:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIime-0006un-Oh for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 17:46:33 -0400 Received: from mail-ot0-x22f.google.com ([2607:f8b0:4003:c0f::22f]:34455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dIime-0006uI-Ik for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2017 17:46:32 -0400 Received: by mail-ot0-x22f.google.com with SMTP id t31so14125659ota.1 for ; Wed, 07 Jun 2017 14:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3wdJQbwxCQKenxeJ1BXWvQUzxWAi3Lzj5XsbQC0niHU=; b=ox2wRiCALCIn3MmrEn4FJfVLV4jinlx1/hQ7X2bDBx44EsDVAEfswnPHGdq3iz80YR R37SKC2L+01QLpIIFgLxuZi1xM8vi+OzTMauminCdzde5VpZx6RkvUW1E+lDq9Bazdxd 2irD4glTjrei0eS/vhiGMK2Q20pwUdRBSIrVrsDfhkhLKiigpGx+sJB3apNZSPFtyi+X XNCl0ENr3IeCzl8CRFJEtqJT8kVGI7I4rA4ga4k+1V2hIpmmK5+kYSCVQCqeAzCIsj95 WmG9yp1YsD6ofi72H/gMDFmfuM9fTRjmQC8yuJ7AspPoPmg0MIpPLfd6DAGoy/5zd5tJ OD0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3wdJQbwxCQKenxeJ1BXWvQUzxWAi3Lzj5XsbQC0niHU=; b=LXxudXx976reOV2RA+2SrO0LCuooS1XV165P5X4cJuniox4nEMxcMID/V3OHkKNCwo NtJKQhh9Sz2lsJDaedCQLyajNNFTX3RQVLdv9ulsEmxUMNz2X7y2WB31I25tHaoXbmCL wIupu02xD2kvXGmyeKhakgW84xWERZXQ4TybagBnOTm57I0WlfFQLnniYT/eKdUdg/4R cXs1+TlPLmXavPL8A/Wcuow5t6Wu8ZmjBPWl69dRBdJbGBWzcvJ9SGmo848YFcXq95e/ yVogkRbE+QKLYLHPPw9FCBKssj/wk49Q8nZwdZwDu8wysKWvSbBf0A1xKPwWPd/S1pdJ aK3g== X-Gm-Message-State: AODbwcAPsqC19EZxaysITUc4hcDuRRkUulifXYw14H6pC56nOx7xsgMC vNLb4XXspFLy2x2h9d9f9/nDLHOPNQWPlbk= X-Received: by 10.157.27.135 with SMTP id z7mr17446001otd.133.1496871989608; Wed, 07 Jun 2017 14:46:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.22.234 with HTTP; Wed, 7 Jun 2017 14:46:29 -0700 (PDT) From: William Gilbert Date: Wed, 7 Jun 2017 17:46:29 -0400 Message-ID: Subject: Fix nlinum missing line numbers. To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a113e308637051a055165abca" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 07 Jun 2017 17:48:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a113e308637051a055165abca Content-Type: text/plain; charset="UTF-8" I've been working to track to down a bug where line numbers are occasionally missing when using nlinum mode. Currently there is a package written to workaround the problem that has a picture and description of the problem: https://github.com/hlissner/emacs-nlinum-hl. After extensive debugging I've tracked the problem down to the 'nlinum--region' function. Specifically the while loop check that determines if '(point)' is less than the limit. I've found that the problem exists when '(point)' is exactly equal to 'limit'. In this scenario the loop terminates and the last line in the region is not provided with a line number. I was able to remedy the problem by changing the condition from 'less than' to 'less than or equal to', which will allow the last line in the region to be properly assigned a line number. Thank you. Diff: diff --git a/packages/nlinum/nlinum.el b/packages/nlinum/nlinum.el index ca4f949fc..f82b61987 100644 --- a/packages/nlinum/nlinum.el +++ b/packages/nlinum/nlinum.el @@ -303,7 +303,7 @@ it may cause the margin to be resized and line numbers to be recomputed.") (remove-overlays (point) limit 'nlinum t) (let ((line (nlinum--line-number-at-pos))) (while - (and (not (eobp)) (< (point) limit) + (and (not (eobp)) (<= (point) limit) (let* ((ol (make-overlay (point) (1+ (point)))) (str (funcall nlinum-format-function line nlinum--width)) --001a113e308637051a055165abca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been working to track to down a bug where li= ne numbers are occasionally missing when using nlinum mode. Currently there= is a package written to workaround the problem that has a picture and desc= ription of the problem: https://github.com/hlissner/emacs-nlinum-hl.

Aft= er extensive debugging I've tracked the problem down to the 'nlinum= --region' function. Specifically the while loop check that determines i= f '(point)' is less than the limit. I've found that the problem= exists when '(point)' is exactly equal to 'limit'. In this= scenario the loop terminates and the last line in the region is not provid= ed with a line number. I was able to remedy the problem by changing the con= dition from 'less than' to 'less than or equal to', which w= ill allow the last line in the region to be properly assigned a line number= .

Thank you.

Diff:

di= ff --git a/packages/nlinum/nlinum.el b/packages/nlinum/nlinum.el
index c= a4f949fc..f82b61987 100644
--- a/packages/nlinum/nlinum.el
+++ b/pack= ages/nlinum/nlinum.el
@@ -303,7 +303,7 @@ it may cause the margin to be = resized and line numbers to be recomputed.")
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (remove-overlays (point) limit 'nlinum t)
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 (let ((line (nlinum--line-number-at-pos)))
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (while
-=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (and (not (eobp)) (<= (point) limit)
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (and (not (eobp)) (<=3D (point) limit)
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (let* ((ol (make-overlay (point) (1+ (point))))
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (str (funcall = nlinum-format-function
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 line nlinum--width))
--001a113e308637051a055165abca-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 07:49:46 2017 Received: (at 27281) by debbugs.gnu.org; 10 Jun 2017 11:49:46 +0000 Received: from localhost ([127.0.0.1]:37845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJetm-0008Am-0S for submit@debbugs.gnu.org; Sat, 10 Jun 2017 07:49:46 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:36520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJetk-0008Aa-Ks for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 07:49:44 -0400 Received: by mail-it0-f46.google.com with SMTP id m47so8432497iti.1 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 04:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ME29fCb8/eCMiwUGN51u96AoN69ICXFSiuxyPsFXCa4=; b=rNzOq/9Xqj7Xf0BxZ2eWaobrnnnjz5jwcI9PSDZnnLrj9N1F6SphioniS6rNB9cucE DgaJdqMg5Wh6V1Td0aDuoWnr+5DNDoo4Y4hj/g//btL6Xubr3IEoh1DDqBjKaZtyzm/z zW5cZezp15snLp3rtDiTlO9ZBmu6mMd43Qd/jGRQkc7HeUZtVPcuEH7Tz1ta7xjr8ijk F/W8yO5p1tDYMBH+Em7fRgvZJePUHRUo4jYfgMs+tnGKR1caPFaZ8CiuroKVriJ4Pjwj A5iIe/30SINK3bLEehklYPQZ7d8Pd9Hccx7SYK1hJQ7p9Y4m89TQlugrhf1X9/Lhpc7C i92Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=ME29fCb8/eCMiwUGN51u96AoN69ICXFSiuxyPsFXCa4=; b=JUNyLp/VML/2EAeyjWaNG5YcyV4Ty/wNuGak4UaCvuzLOO9wRxvF3Mm11d5SFPtNOq VefV5Fe/fgB+qhgILbF3EjqFOpYD4cMRD5iJURnSy2FtkPoFsR4dy8Wo4eOVeHW4grDU z/nyESGZDFUZ6IXwuJVdI6d9uqa2y+NyWnHzMP70rX7Ks1napL6A1aGr+gjzoOjSeAK8 Pn/Ou2wqHcWYjTeuqSV5NJrtpWX9Fz4bbu+aPJrvTuuIMed+B4xzOQFa2wx2Vv9K6chA jvSNABcS/S4Nn2mvqae+WAbHMeGI1ti29Q+1mP5nXCl2KzQ4ZA4jfRtGdLJSmaTgpPyF AKPw== X-Gm-Message-State: AODbwcAZBwjhhi6BLAcYLVo3w5oJOd+8GD+C1Q2OHzI/rUlmcaUjRBkM iO7bHlTIYcRr0u05 X-Received: by 10.36.86.75 with SMTP id o72mr4131641itb.117.1497095378950; Sat, 10 Jun 2017 04:49:38 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id w16sm1765032iod.26.2017.06.10.04.49.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2017 04:49:38 -0700 (PDT) From: npostavs@users.sourceforge.net To: William Gilbert Subject: Re: bug#27281: Fix nlinum missing line numbers. References: Date: Sat, 10 Jun 2017 07:51:17 -0400 In-Reply-To: (William Gilbert's message of "Wed, 7 Jun 2017 17:46:29 -0400") Message-ID: <87h8zovz62.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27281 Cc: 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) William Gilbert writes: > I've been working to track to down a bug where line numbers are > occasionally missing when using nlinum mode. Currently there is a package > written to workaround the problem that has a picture and description of the > problem: https://github.com/hlissner/emacs-nlinum-hl. > > After extensive debugging I've tracked the problem down to the > 'nlinum--region' function. Specifically the while loop check that > determines if '(point)' is less than the limit. I've found that the problem > exists when '(point)' is exactly equal to 'limit'. In this scenario the > loop terminates and the last line in the region is not provided with a line > number. Do you know how to reproduce this scenario? > I was able to remedy the problem by changing the condition from > 'less than' to 'less than or equal to', which will allow the last line in > the region to be properly assigned a line number. This sounds like a workaround, possibly to a bug in jit-lock. Or perhaps we need to return a list of the form (jit-lock-bounds BEG END) from nlinum--region? From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 10:35:37 2017 Received: (at 27281) by debbugs.gnu.org; 10 Jun 2017 14:35:37 +0000 Received: from localhost ([127.0.0.1]:39035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJhUH-0005ch-L4 for submit@debbugs.gnu.org; Sat, 10 Jun 2017 10:35:37 -0400 Received: from mail-yb0-f182.google.com ([209.85.213.182]:36090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJhUG-0005cV-H0 for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 10:35:36 -0400 Received: by mail-yb0-f182.google.com with SMTP id o9so20398240yba.3 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 07:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:cc:subject:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=C8XceK9ck7Ejh+nYagbCbJMVuqUWhdXaSRVFzy00K8Y=; b=OvOl0THMAJ6QdOupkuhj7yTaT+5QpzXTM8M2p4MnmSX462NPq1f+aoRF2mO0+vXk2E gCbNF5cfbCTqprTiaU3yL36/fbV8phILPd0v0sMW4fOTKSlLU8B3ZgPLqyCiFEpw8ZzM hXz6Yyit4Ko9Lj2IWD8R+zG89UEpfQ2RjG6YcW9CF1wrD/raRPpACfs6lK5NFzEGD0Q/ yjaLHTkUitBuCWulpP0bkwWDWqUS2ta//jOrtlVJ023Q/qJCIjkuFgh9yVz6E/YKpEMX aU4ft/1EGpXhO9V7uMr036ch4atciyjv1tKx5peavRy4zyuFOK+kpT9poXHoEhD9fnlh XLmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:cc:subject:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=C8XceK9ck7Ejh+nYagbCbJMVuqUWhdXaSRVFzy00K8Y=; b=asHXe25xyF5ZPus/082QLRCQ9GtNNVihJsiRF5ZpwSDN1ox1DQ8WhEoRkBystGCji4 d5qVIghNwLsS/Uxpx08euZ7IevbdBec4b8yFZtUkl7Jr8TRJ152KOTK5m5Sgom2pBQZc 7bCzXC/7zFjxHt2Dd2R2UT6HnQz38/b6fWcjlVeR6cXlJ7e2jLgsGNZO1oCwagNVkuqv 9Rn5P9fDungquPgk7DjMj7tcAKrX9RMb2KMSsPT0mz2Iq75X3vxVlracS/5E9ocoejlW OQ30on7105kjgWEWCNU7Miv7b+0ghG05SvdyHoq0TYYUbPbq3ikPfheSUbwLwqpnxkx8 RhFw== X-Gm-Message-State: AODbwcB+3PudPCdIiaNTCxA8Wz0ecBn74Dugrwn7sX5RR+wX2V4dHhxk kS1aoMn+BZP+435XaGc= X-Received: by 10.37.35.83 with SMTP id j80mr18009349ybj.24.1497105330518; Sat, 10 Jun 2017 07:35:30 -0700 (PDT) Received: from [10.0.0.12] (23-116-242-116.lightspeed.chtnsc.sbcglobal.net. [23.116.242.116]) by smtp.gmail.com with ESMTPSA id f66sm1759851ywh.47.2017.06.10.07.35.30 for <27281@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Jun 2017 07:35:30 -0700 (PDT) From: Bryan Gilbert Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> Message-ID: <4a1fa05f-94ea-a048-c1fb-73d62d4bdc45@gmail.com> Date: Sat, 10 Jun 2017 10:35:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <87h8zovz62.fsf@users.sourceforge.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 06/10/2017 07:51 AM, > William Gilbert writes: > >> I've been working to track to down a bug where line numbers are >> occasionally missing when using nlinum mode. Currently there is a package >> written to workaround the problem that has a picture and description of the >> problem: https://github.com/hlissner/emacs-nlinum-hl. >> >> After extensive debugging I've tracked the problem down to the >> 'nlinum--region' function. Specifically the while loop check that >> determines if '(point)' is less than the limit. I've found that the problem >> exists when '(point)' is exactly equal to 'limit'. In this scenario the >> loop terminates and the last line in the region is not provided with a line >> number. > > Do you know how to reproduce this scenario? [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gilbertw1[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (gilbertw1[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.213.182 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.213.182 listed in list.dnswl.org] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 27281 Cc: 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 06/10/2017 07:51 AM, > William Gilbert writes: > >> I've been working to track to down a bug where line numbers are >> occasionally missing when using nlinum mode. Currently there is a package >> written to workaround the problem that has a picture and description of the >> problem: https://github.com/hlissner/emacs-nlinum-hl. >> >> After extensive debugging I've tracked the problem down to the >> 'nlinum--region' function. Specifically the while loop check that >> determines if '(point)' is less than the limit. I've found that the problem >> exists when '(point)' is exactly equal to 'limit'. In this scenario the >> loop terminates and the last line in the region is not provided with a line >> number. > > Do you know how to reproduce this scenario? [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.213.182 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.213.182 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gilbertw1[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (gilbertw1[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders On 06/10/2017 07:51 AM, npostavs@users.sourceforge.net wrote: > William Gilbert writes: > >> I've been working to track to down a bug where line numbers are >> occasionally missing when using nlinum mode. Currently there is a package >> written to workaround the problem that has a picture and description of the >> problem: https://github.com/hlissner/emacs-nlinum-hl. >> >> After extensive debugging I've tracked the problem down to the >> 'nlinum--region' function. Specifically the while loop check that >> determines if '(point)' is less than the limit. I've found that the problem >> exists when '(point)' is exactly equal to 'limit'. In this scenario the >> loop terminates and the last line in the region is not provided with a line >> number. > > Do you know how to reproduce this scenario? I don't know how to easily and reliably reproduce this problem. I normally encounter it at least once every few minutes. I've reproduced the problem in my configuration, which is a derivative of the doom configuration (https://github.com/hlissner/.emacs.d), and using spacemacs with nlinum enabled. I don't know if there is anything specific to those two configurations that makes the problem present itself more frequently, but using one of those setups you should see the problem relatively quickly. I lucked out and had a saved perspective (persp-mode) that exhibited this problem every time I loaded it, which was what allowed me to reliably debug the problem. > >> I was able to remedy the problem by changing the condition from >> 'less than' to 'less than or equal to', which will allow the last line in >> the region to be properly assigned a line number. > > This sounds like a workaround, possibly to a bug in jit-lock. Or > perhaps we need to return a list of the form (jit-lock-bounds BEG END) > from nlinum--region? I am not familiar with jit-lock and am still all around very much a novice with elisp and emacs. I essentially zeroed in on the problem, but instrumenting some of the nlinum functions with print messages. I still have the perspective and underlying files preserved that replicate this problem everytime I load them. If there is anything you would like me to test or debug, please let me know. I will try to dig a little deeper to understand nlinum's interaction with jit-lock. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 13:44:41 2017 Received: (at 27281) by debbugs.gnu.org; 10 Jun 2017 17:44:41 +0000 Received: from localhost ([127.0.0.1]:39170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJkRE-0006ra-VJ for submit@debbugs.gnu.org; Sat, 10 Jun 2017 13:44:41 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:33197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJkRC-0006rN-SW for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 13:44:39 -0400 Received: by mail-it0-f67.google.com with SMTP id l6so8512369iti.0 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 10:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=onIOe5qFlMxBSeNAb2hwCBjFq7fnEIid/7djCjViZIo=; b=pHjV0H/55MMfPgUJZ8oxzotqv2SLTjWXvvoFi7O9YQClWISlhYCQ9anJUh0RmVM7xb qrIB3Xtn71uu2M2xYeca7oQKREHvnRhh8SNE4jP9JDaInhohIlEtxGy1mUX8WhQmbuVk RBLzaMGBeXg8jSoja3kvSlrmheLZ8uQ+wDwodVF/9rMWrk+GsS138Cxkoj9Q0ifkrHL/ r4bHAEzcS76CYkrxCNzUrsf3noEPRcAQSutAiFjxnJYQBg7BMsPJLEATFTjQwWS1MJwY 1BFbKBWCKtmqancLlVD4lha3DB6x6T+1wijuBwMO/V+DoDPElcUZSvEyY8dYCHLo++YJ W94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=onIOe5qFlMxBSeNAb2hwCBjFq7fnEIid/7djCjViZIo=; b=IBmpt0oGL0SYURbA5FV4z6Ojun/h+8IL5ktPRcGB9Oz2v0nrfN+/Q4ABcy7C4OGwrL thGDVp8gLL3a0enqlAGAbo7NYBBo0zINtysP3a1Ubt7F4wto54zDUa5uPYHW2g1fRc9S Uqtf4kFU6TWiyYpbfdQA+TOQXdrUK8Vu2QsWyWERttTN+TkVgnlxa9oPXugI+2mHwbfb ylDArOAcDB/+/U+UXn36CgFU1DHyp5kUIpVhEm877QydXJnIgvwRrCA7lA7ysEkRArPQ 8rxnWlGbzQk49W7njAc/2HJi7sjBLQzWia6ONPtq63gRwp6rGnsEDdjNGW2uAitUqMHP FoiA== X-Gm-Message-State: AODbwcDksBCFv3XwYSqh0B3rCIzPKQ6nI9uKFa0ZrMbxL7mpVnmI2c4W qVDya6HP/LriWmIR X-Received: by 10.36.222.69 with SMTP id d66mr5304884itg.14.1497116672963; Sat, 10 Jun 2017 10:44:32 -0700 (PDT) Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id b39sm1539152itd.31.2017.06.10.10.44.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2017 10:44:31 -0700 (PDT) From: Alex To: npostavs@users.sourceforge.net Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> Date: Sat, 10 Jun 2017 11:44:26 -0600 In-Reply-To: <87h8zovz62.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Sat, 10 Jun 2017 07:51:17 -0400") Message-ID: <87h8znu491.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27281 Cc: William Gilbert , 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) npostavs@users.sourceforge.net writes: > William Gilbert writes: > >> I've been working to track to down a bug where line numbers are >> occasionally missing when using nlinum mode. Currently there is a package >> written to workaround the problem that has a picture and description of the >> problem: https://github.com/hlissner/emacs-nlinum-hl. >> >> After extensive debugging I've tracked the problem down to the >> 'nlinum--region' function. Specifically the while loop check that >> determines if '(point)' is less than the limit. I've found that the problem >> exists when '(point)' is exactly equal to 'limit'. In this scenario the >> loop terminates and the last line in the region is not provided with a line >> number. > > Do you know how to reproduce this scenario? > >> I was able to remedy the problem by changing the condition from >> 'less than' to 'less than or equal to', which will allow the last line in >> the region to be properly assigned a line number. > > This sounds like a workaround, possibly to a bug in jit-lock. Or > perhaps we need to return a list of the form (jit-lock-bounds BEG END) > from nlinum--region? FWIW I've encountered this issue before and this diff does not solve the problem for me. I mostly see it when using the 3rd-party package macroexpand with nlinum. Expanding and closing a macro will leave several lines with no line number (from the 2nd line of the macro until the last line of the macro). I've tried to use edebug on nlinum--region to figure out what's going on, but it doesn't seem to be triggering for some reason. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 18:11:10 2017 Received: (at 27281) by debbugs.gnu.org; 10 Jun 2017 22:11:10 +0000 Received: from localhost ([127.0.0.1]:39432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJob7-0006ES-RM for submit@debbugs.gnu.org; Sat, 10 Jun 2017 18:11:10 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:36069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJob5-0006EE-BC for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 18:11:07 -0400 Received: by mail-io0-f169.google.com with SMTP id y77so43595980ioe.3 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 15:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=GnWnfqM5DzyddDusUGhuXDgkt17938tuuuq0YuE0s5A=; b=jIs8wQcL048j/aQc4QYydgUCu3QmdF/CDRgGWlcf5ZCxgklBUwn7xgynjeXeMhWo5d 0StvwyHBLyEjrLSCECPJ+oLIc6Ars4s1OE8V6r09DUCSgJDJJATUqJn9T8KHX1lSLZsm 4E5g3davNjVjsAHTn3TAAOpOtRvGDfJz87pEpXqay2Wk+PcLYhAGOyzO/E6PoQrDxkXk VpUo/Vq37dmwd3JiRYmeqJw+Ah3OHRwhBo6eKRsQV1FJi2vT3cASkecOSFGKywiDenH/ QBJy4FBTZUiYqGlVGl3FFiTu+4vo587alMZhKory5jVIWils7JjngqJRjQpVVDHUBdCi 9Bdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=GnWnfqM5DzyddDusUGhuXDgkt17938tuuuq0YuE0s5A=; b=pzj4Ef1N0FlxH3jpECLFdvl8+0ugFuKqUmjmoUfdKLGCjrQV5TQaZ9jaVbiXOXtGrd 0ZEf0uZCcPaXdcThZpMYopnCHw/MrOGDYcdDqivASbN556xP4yK+z4rlAtADDaFHjBrn uRxGucIEj6/EY/qQE+9+fIAm1NUGtQwPtKelGCfgsrfCv6Tsm9bWl1MEHsCWP4HhzSLO /VLAFix6sd2wTEz8VM3+UCH8uuNvmnQ4CZF7ynnpiYPr5bjpyExkvBEKI4ZBzTIeJD6V NUxDafPhx6fA17xrZpAiqXNS3lrN0Fwx+6vTNaTZaomJ8Un5K03M3irM6lySAhQJJC9P JW3A== X-Gm-Message-State: AODbwcCpXbHzUf/iBLJK2BCkjcyzHMrDSBgdfwZVStKjyopTNgXe8gaU vMJEUvirMU9+cg== X-Received: by 10.107.63.214 with SMTP id m205mr12553181ioa.176.1497132661748; Sat, 10 Jun 2017 15:11:01 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id y40sm3559161ita.2.2017.06.10.15.11.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2017 15:11:00 -0700 (PDT) From: npostavs@users.sourceforge.net To: Alex Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> <87h8znu491.fsf@gmail.com> Date: Sat, 10 Jun 2017 18:12:38 -0400 In-Reply-To: <87h8znu491.fsf@gmail.com> (Alex's message of "Sat, 10 Jun 2017 11:44:26 -0600") Message-ID: <8737b7wkyx.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 27281 Cc: William Gilbert , 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alex writes: >> >> This sounds like a workaround, possibly to a bug in jit-lock. Or >> perhaps we need to return a list of the form (jit-lock-bounds BEG END) >> from nlinum--region? > > FWIW I've encountered this issue before and this diff does not solve the > problem for me. I mostly see it when using the 3rd-party package > macroexpand with nlinum. Expanding and closing a macro will leave > several lines with no line number (from the 2nd line of the macro until > the last line of the macro). > > I've tried to use edebug on nlinum--region to figure out what's going > on, but it doesn't seem to be triggering for some reason. I suspect the debugger is suppressed while jit-lock occurs. You would need to log things silently and print it later. I think 'jit-lock--run-functions' and 'jit-lock-fontify-now' would be interesting targets. Something easy to check would be if there are certain values of 'jit-lock-functions' needed to trigger this (apart from nlinum--region of course). Here's my guess as to a fix (untested): --- i/packages/nlinum/nlinum.el +++ w/packages/nlinum/nlinum.el @@ -296,7 +296,8 @@ (defun nlinum--region (start limit) (save-excursion ;; Text may contain those nasty intangible properties, but ;; that shouldn't prevent us from counting those lines. - (let ((inhibit-point-motion-hooks t)) + (let ((inhibit-point-motion-hooks t) + (end start)) (goto-char start) (unless (bolp) (forward-line 1)) (remove-overlays (point) limit 'nlinum t) @@ -320,9 +321,10 @@ (defun nlinum--region (start limit) ;; (run-with-idle-timer 0.5 nil #'nlinum--flush-overlays ;; (current-buffer))) (setq line (1+ line)) - (zerop (forward-line 1)))))))) - ;; (setq nlinum--desc (format "-%d" (nlinum--ol-count))) - nil) + (setq end (line-end-position)) + (zerop (forward-line 1))))))) + ;; (setq nlinum--desc (format "-%d" (nlinum--ol-count))) + `(jit-lock-bounds ,start . ,end))) ;;;###autoload (define-globalized-minor-mode global-nlinum-mode nlinum-mode From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 21:19:01 2017 Received: (at 27281) by debbugs.gnu.org; 11 Jun 2017 01:19:01 +0000 Received: from localhost ([127.0.0.1]:39563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJrWv-0003qf-0k for submit@debbugs.gnu.org; Sat, 10 Jun 2017 21:19:01 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJrWs-0003qS-Td for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 21:18:59 -0400 Received: by mail-io0-f194.google.com with SMTP id i93so7915840iod.3 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 18:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=uByxQ92T+d70Z1LBRxPfVpRxqNQhIUvARubiUM88DNw=; b=dFy1WDGWFS0m7Q4o1OxTPhy7gM+5cuQtd47VJydYW6kdcXBpADzIcatrMBMvLt92p5 jE1WzxVcU4FZaNeQHp4mvrxu2thlr1rNHgER4ch6lxh2TDWYgbL/6w7HbhndyiYtbc3N hIxNMiYdjJD5P1G2ZWzfcBjRZCgd4sOlvL2NMdhr7MweQpQKRi2paRrTKiwwt+eKzvwm 0GH2IlSqL22NUb/P+toJIBF6BwUEew0BPN7k5ZfC5UWdLX+rZvv0lqOhekOZJNOm22Yc Vej17S67IBkUoJiwUhIcWz7j4UtpZWYH9HryiOTBDsy/mKMbGFA5qALWMK6cp9kK/6Kv fWRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=uByxQ92T+d70Z1LBRxPfVpRxqNQhIUvARubiUM88DNw=; b=oYCuOq+bOW7t9e16OSlWcJwF4AuxTtl43e92CWhcCZrLovARxPmplhni4hXPGdt+mV HoVC+9gNnquDRGBHBPSu9eV1tm7zTZNnuiXYsGvWBYp7WChnaNHJXVDZPKYHwhHC3Hr+ 6vLQube13JoRZ0uMO3M4Rxagf7/R15sQSAxATnvqsqmepNJ4/b20yoCV1547IVNQuimq Y5mwoSlhX1Z3dw0Vbis0RmmzIUwv9DWZuFPxmj+HvWfDYT/cZgPr+GNHQZzackTq27fm 8qGpRnquk71sknqM7ueOsGNoUeyyl3WKrOMbHo1OBj/2QfcCnbbuoavKblgGNUt/MWhk tNxg== X-Gm-Message-State: AKS2vOxUJyxX9fe0XT8RhyIl9sciGpV4cUGCakMyJ5KYmsSWgDkpHej/ yuE9zIJahqmaew== X-Received: by 10.107.41.12 with SMTP id p12mr1271797iop.126.1497143933380; Sat, 10 Jun 2017 18:18:53 -0700 (PDT) Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id 21sm2059337itz.6.2017.06.10.18.18.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2017 18:18:52 -0700 (PDT) From: Alex To: npostavs@users.sourceforge.net Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> <87h8znu491.fsf@gmail.com> <8737b7wkyx.fsf@users.sourceforge.net> Date: Sat, 10 Jun 2017 19:18:46 -0600 In-Reply-To: <8737b7wkyx.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Sat, 10 Jun 2017 18:12:38 -0400") Message-ID: <87o9tv2ufd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 27281 Cc: William Gilbert , 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) npostavs@users.sourceforge.net writes: > Alex writes: >>> >>> This sounds like a workaround, possibly to a bug in jit-lock. Or >>> perhaps we need to return a list of the form (jit-lock-bounds BEG END) >>> from nlinum--region? >> >> FWIW I've encountered this issue before and this diff does not solve the >> problem for me. I mostly see it when using the 3rd-party package >> macroexpand with nlinum. Expanding and closing a macro will leave >> several lines with no line number (from the 2nd line of the macro until >> the last line of the macro). >> >> I've tried to use edebug on nlinum--region to figure out what's going >> on, but it doesn't seem to be triggering for some reason. > > I suspect the debugger is suppressed while jit-lock occurs. You would > need to log things silently and print it later. I think > 'jit-lock--run-functions' and 'jit-lock-fontify-now' would be > interesting targets. Well, in my case it seems that nlinum--region is being fed wrong start/limit values. > Something easy to check would be if there are > certain values of 'jit-lock-functions' needed to trigger this (apart > from nlinum--region of course). Here's my guess as to a fix (untested): That doesn't work in my case. However, for me the problem might be because of macrostep using with-silent-modifications. To test, calling (with-silent-modifications (delete-region (point) (scan-sexps (point) 1))) on an sexp and there will be missing line number(s). This only affects nlinum, and not linum. Is it possible to work around this in nlinum while still using with-silent-modifications? From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 21:36:02 2017 Received: (at 27281) by debbugs.gnu.org; 11 Jun 2017 01:36:02 +0000 Received: from localhost ([127.0.0.1]:39567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJrnN-0004Eb-W9 for submit@debbugs.gnu.org; Sat, 10 Jun 2017 21:36:02 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:38296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJrnM-0004EM-9B for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 21:36:00 -0400 Received: by mail-it0-f48.google.com with SMTP id l6so2168382iti.1 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 18:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=YzdCALc9PiAm++QiZI1eT5+cOBlSsZZscw08UJmGS5I=; b=VYcblAq/E13fc2rX5jMwk0z4H00yTF1IRo2Cl/bI7MtyKbAiA988iqD12afDwz2u47 C3zKt94gOQ+QZlGJM+Mszbl7kLyL+mlaMe1EwTZKDZ3smQyE2la4Vt+H4CU1hkvyaFyM tViWpIr8MkXmmZ9hOaACpn5C8ze3re9J1EOLpebpfX60Su9QZqU0+6xSThAyqXWEwiBj VJiQla2XkrtFyGYx2Is+TP0hLF3UjWEYwrOinaKaAFhYaM/YtegSC3Mh52tNUZuHO/94 TH5OkrCRPT1/C2CDpxz8gkLcK9oSPjVu/I+/CkE1yUYt269Z1VLHcHjjwRmwIX66Jupw 8Fhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=YzdCALc9PiAm++QiZI1eT5+cOBlSsZZscw08UJmGS5I=; b=DzhECmHpf6Wi8r0BeUUZa3wznKju5V3N0nAt8Bl9iuutQ5KHRlxqiljFRD6ff6KoWf YNf2axf2gKDBQnlnqOhZie8bkI6MfyFmK76qIdaHS/PjATxOw0um7Z0KkAwKKC7kjNB3 xnIHupH/AcI4f5A4uKPCprexRMiNlNr8qP8LEbjEYVpc3eTuckwO2RA910t5Yb72EKIY 0b14z7ps8IbWGevlCB67eevEbrWig0fyxuXGZGR3HYa1LIWvJTUo8+3G091V0HyHHT4n DdSM+NAtSPNO9trHxHOIvfaYxAFftVvmaWT2kX9ldAALWYfwv7HHZc5hiCO1hr+KwweA G0OA== X-Gm-Message-State: AODbwcBaiaPGq2saJki0oEg6dF3Hbhpbabxzz/Eiv3Bf8S9aRx7/SpMN Z0fHaP6L7pY6wA== X-Received: by 10.36.13.20 with SMTP id 20mr6398506itx.37.1497144954430; Sat, 10 Jun 2017 18:35:54 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id i33sm2678293iod.32.2017.06.10.18.35.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2017 18:35:53 -0700 (PDT) From: npostavs@users.sourceforge.net To: Alex Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> <87h8znu491.fsf@gmail.com> <8737b7wkyx.fsf@users.sourceforge.net> <87o9tv2ufd.fsf@gmail.com> Date: Sat, 10 Jun 2017 21:37:32 -0400 In-Reply-To: <87o9tv2ufd.fsf@gmail.com> (Alex's message of "Sat, 10 Jun 2017 19:18:46 -0600") Message-ID: <87wp8juwwz.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 27281 Cc: William Gilbert , 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Alex writes: > That doesn't work in my case. However, for me the problem might be > because of macrostep using with-silent-modifications. Ah, that sounds like a bug in macrostep then. Not really the same as this one. > This only affects nlinum, and not linum. Is it possible to work around > this in nlinum while still using with-silent-modifications? Not sure, but why does macrostep with-silent-modifications while changing the buffer? ... Oh, according to https://github.com/joddie/macrostep/issues/2 it's to avoid modifying the buffer status; that doesn't seem like the right way to do it. I will follow up there. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 22:37:13 2017 Received: (at 27281) by debbugs.gnu.org; 11 Jun 2017 02:37:13 +0000 Received: from localhost ([127.0.0.1]:39594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJska-0005bP-SK for submit@debbugs.gnu.org; Sat, 10 Jun 2017 22:37:13 -0400 Received: from mail-yb0-f175.google.com ([209.85.213.175]:36533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJskZ-0005b1-5G for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 22:37:11 -0400 Received: by mail-yb0-f175.google.com with SMTP id o9so21634942yba.3 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 19:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=GEy8Dav5rctgvv1hIQKP6oQ8VQscCCrXME0F2tUEWH8=; b=JNOe91jWxr/ae8ZKw7r7sQ9syUlCeLfs6Gb81ItXnoHiLu//RFC/B+Pi2JEbF25mMf w+DqCc5RSbOYba6R2IEHE9h55OOYMaIDyXcVY0zLooKp5oq/56VvHXuQaR3BCdID1DIK tXwrzmJ42U5OJhtU7QE5C/n9RmYRpovWIcCQHjBPiCKVIyVophKBdGPVcK0rhBQnWVZv j2yVd/AqcsvgFkoNXiX7hIaw9sn7gaPiJPWkQ/tjDlKayDBJcfxd4pK3xUBAL/MLK+Ha XzNGj8pVTgw9e40DP9C6nqMTWfvJQXAnJYbpJZaWUF1PhS3UG+bhGAdqWHxLaoXEQHzN hLsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=GEy8Dav5rctgvv1hIQKP6oQ8VQscCCrXME0F2tUEWH8=; b=G2a25rG7XvdWPrd0dAYb1vDyOrjnXz0gtQd6RWok85j6rIRT4K+7/cr1bF5sAvoYsd qLFK0Ix7jnkVKEkFTZW8wGOXjdZntDULmJ/OnPGqmMppxA0lq6osve/kc5OZ/hyDb6Z4 vDIgUzxsdmXZDplMEXkz28B2B2tENrJ2ln3IvEvm2KGoEdk7+fwIXanOO7cxDfgd5bbm Nwz8uXhDCtjkDdjGSp61hv+doR/9NRb+t9j1KthfULa/THe5EVovGNfqwD3JgD7C3K36 g4qdsIK92vH8i27NbcDQM5P+Blvz3uJWUCI5wvHsEvdPpGdNjdruIcjFUBDC1fqxJDxb KVTA== X-Gm-Message-State: AODbwcDh7dyQgQrR5nURp2jrJnZCAkFsjpmM0gBUGTZ3ZYZQmy6m3rsQ AYwhST1xx84crg== X-Received: by 10.37.172.193 with SMTP id x1mr19221276ybd.1.1497148625576; Sat, 10 Jun 2017 19:37:05 -0700 (PDT) Received: from [10.0.0.12] (23-116-242-116.lightspeed.chtnsc.sbcglobal.net. [23.116.242.116]) by smtp.gmail.com with ESMTPSA id 202sm2312693ywy.48.2017.06.10.19.37.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Jun 2017 19:37:04 -0700 (PDT) From: Bryan Gilbert To: npostavs@users.sourceforge.net Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> <87h8znu491.fsf@gmail.com> <8737b7wkyx.fsf@users.sourceforge.net> Message-ID: <0cc87a2c-d024-edda-bce1-671c130d46de@gmail.com> Date: Sat, 10 Jun 2017 22:37:04 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <8737b7wkyx.fsf@users.sourceforge.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27281 Cc: Alex , 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 06/10/2017 06:12 PM, npostavs@users.sourceforge.net wrote: > I suspect the debugger is suppressed while jit-lock occurs. You would > need to log things silently and print it later. I think > 'jit-lock--run-functions' and 'jit-lock-fontify-now' would be > interesting targets. Something easy to check would be if there are > certain values of 'jit-lock-functions' needed to trigger this (apart > from nlinum--region of course). Here's my guess as to a fix (untested): Applying that fix seemed to solve the problem! I had to make a slight modification to put the 'jit-lock-bounds' function call inside the 'let', but other than that it seems to work well. I've yet to see the problem since applying the patch and my 'bad' perspective worked properly as well. Here's the slightly modified diff: diff --git a/packages/nlinum/nlinum.el b/packages/nlinum/nlinum.el index ca4f949fc..82872d571 100644 --- a/packages/nlinum/nlinum.el +++ b/packages/nlinum/nlinum.el @@ -297,7 +297,8 @@ it may cause the margin to be resized and line numbers to be recomputed.") (save-excursion ;; Text may contain those nasty intangible properties, but ;; that shouldn't prevent us from counting those lines. - (let ((inhibit-point-motion-hooks t)) + (let ((inhibit-point-motion-hooks t) + (end start)) (goto-char start) (unless (bolp) (forward-line 1)) (remove-overlays (point) limit 'nlinum t) @@ -321,9 +322,10 @@ it may cause the margin to be resized and line numbers to be recomputed.") ;; (run-with-idle-timer 0.5 nil #'nlinum--flush-overlays ;; (current-buffer))) (setq line (1+ line)) - (zerop (forward-line 1)))))))) + (setq end (line-end-position)) + (zerop (forward-line 1)))))) ;; (setq nlinum--desc (format "-%d" (nlinum--ol-count))) - nil) + `(jit-lock-bounds ,start . ,end))) ;;;###autoload (define-globalized-minor-mode global-nlinum-mode nlinum-mode From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 22:50:19 2017 Received: (at 27281) by debbugs.gnu.org; 11 Jun 2017 02:50:20 +0000 Received: from localhost ([127.0.0.1]:39601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJsxH-0005tE-2Z for submit@debbugs.gnu.org; Sat, 10 Jun 2017 22:50:19 -0400 Received: from mail-yw0-f180.google.com ([209.85.161.180]:35784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJsxE-0005t0-9d for 27281@debbugs.gnu.org; Sat, 10 Jun 2017 22:50:16 -0400 Received: by mail-yw0-f180.google.com with SMTP id v7so12097284ywc.2 for <27281@debbugs.gnu.org>; Sat, 10 Jun 2017 19:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=fzVuuL8cKrfADsPIgpD2wTrfmvO/a7a+9E/Rlzgu4sw=; b=qrS+xV2Ct8KryL3UCKLORV3uhdG+PTx6ga1C3oYh/Vrk9rvLREOfes2U8H53ihbpw8 u7JQn1j6fC8jzeFayjGQgZeDbkwVDyj/8YzIOXGv6MJbtf8hiT8+bM2hGh3MaVGxCGt0 Pn5n7Gm1qMZBa4/F4S/iGukAtpI6XXT7V1gv1KzYIHr76vynrjZBWysKzx3QOn213qHc cKiBY+nWUOgkSfpOACQaXl3i7bvz8ztg1bIvjMPZ+DBZW/TNt6qVLciA80QYqiPkOXSK iUf2xhkoV4RGL/r4+Iqfy1c1CTicglREtc6/W8P8eBE+dMfr1B43wuz/0oMZHa4+sli/ 2Tfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=fzVuuL8cKrfADsPIgpD2wTrfmvO/a7a+9E/Rlzgu4sw=; b=nfy2yOZOf5zKKcj4XT+waWhQ14hE3x3z/QyEg/jwePimhmxSB8g+fmli2jyM4Ig9ch p2MPla2Rjc3wQGUkDDgqR1duRkSSuh8dAVAbdOFItqDmlrj6TB6NDkOqz7oiBDmL1MQN C42WkDNmJ+GppsTCpFK9Q5Lr1z/MC4Yx4D82nsel25dXuPvATY2lr7uQmrIMJLVRB6RN jTFIer+oYaiiNoVXf579JqdWuoGmTwD/bL8Z85/Cws9QA3bxUroHMVy/qI0RNqGPnBMA 9z9pr05CpLu6BmtcxNi+nG5YHrdceen0MyRIb7gt4RuCPj4BnxXKUgCsmZx04+ocp/kH u0/A== X-Gm-Message-State: AODbwcDnhaEbYt5aTPbCl6RzRTBjWTJonbgl982sOICxuw4+cDvnMJfs HNj0IbUJIuLhKQ== X-Received: by 10.13.251.196 with SMTP id l187mr21245335ywf.78.1497149410518; Sat, 10 Jun 2017 19:50:10 -0700 (PDT) Received: from [10.0.0.12] (23-116-242-116.lightspeed.chtnsc.sbcglobal.net. [23.116.242.116]) by smtp.gmail.com with ESMTPSA id d4sm2363768ywd.15.2017.06.10.19.50.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Jun 2017 19:50:10 -0700 (PDT) From: Bryan Gilbert To: npostavs@users.sourceforge.net Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> <87h8znu491.fsf@gmail.com> <8737b7wkyx.fsf@users.sourceforge.net> <0cc87a2c-d024-edda-bce1-671c130d46de@gmail.com> Message-ID: Date: Sat, 10 Jun 2017 22:50:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <0cc87a2c-d024-edda-bce1-671c130d46de@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 27281 Cc: Alex , 27281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) On 06/10/2017 10:37 PM, Bryan Gilbert wrote: > Applying that fix seemed to solve the problem! I had to make a slight > modification to put the 'jit-lock-bounds' function call inside the > 'let', but other than that it seems to work well. I've yet to see the > problem since applying the patch and my 'bad' perspective worked > properly as well. Sorry, I spoke too soon. I didn't realize it, but I had a 'def-advice' in my config that overrode the 'nlinum--region' function. Using your patch didn't actually solve the problem. I'll try and dig a little more. From debbugs-submit-bounces@debbugs.gnu.org Mon May 27 21:39:33 2019 Received: (at control) by debbugs.gnu.org; 28 May 2019 01:39:33 +0000 Received: from localhost ([127.0.0.1]:54658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVR5Q-0006iD-T6 for submit@debbugs.gnu.org; Mon, 27 May 2019 21:39:33 -0400 Received: from mail-it1-f176.google.com ([209.85.166.176]:33775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVR5P-0006hz-H8 for control@debbugs.gnu.org; Mon, 27 May 2019 21:39:31 -0400 Received: by mail-it1-f176.google.com with SMTP id j17so1350464itk.0 for ; Mon, 27 May 2019 18:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=eYnw7LBk68uPz34MWytGnjbvMoqdmZqTtMjBd9hSttU=; b=kg/mb8A3dU3DPHrDPTq5UfnWhSQslhDS5qZoQo9IINzmtJOyze93E0HzIGnesPw4fp WwdDchZTjBmyEOCe4i5MgAiAAh16zsdV/1wTb3roVLlv4A9sFloAgm/lEtMIktKCIn+g oY6uw8iaBLAjr0tzz+ZIAK7f40xuUXLf7oPwqbhlf0bBZiG8TkoaccJN7bSER6bNpQr3 oPDfZaRHHmCmi+LZw1agV5waZQYyPv7aPSHPeP5/z0SVylngcxN1MoqmFKd3/WnqvzFs IzhJzPBUlmUutYcck6Z3ylZ34Q8xYf/47/AH/jhl8ixV6FvqCSWnoGK+0J3VUQVwtMJ6 Uwbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=eYnw7LBk68uPz34MWytGnjbvMoqdmZqTtMjBd9hSttU=; b=E8q/rwVNIkdJqLNs3PpWJEIS5XusZIp49gTnvpAVSXBQnQDK0shoY5Gku6BOUFTpm/ Hb3BoMjsTsHI+JQYBTPvUQvDhzLEPKFu2tWPbFZ91Kv/ONAro8kW5HL5ZBqy9da1y/A8 rqMRXe1RI/hRh7I/sLcQy+yUDwnJpHa6YkUO0OxRTm9jkl5LbTTyKG1dRgTHCslVVIuy El21BLLnKyd6gXkrqC944+i0YqVna/jdT1+I/l+hjB9MPD4UxL37wtI3Ut5C8gAHv2+V qrNVM+2mpLGcoJ+QivT6qdKTYFM45d4mKr/UojD5mH7KoodxuACfqusQvZ3cwMKmajPE TyoA== X-Gm-Message-State: APjAAAWwxJKbl3zN95c4sfdyRyiZKQ0dFoIq9ECsTYNHoVAQPK5GVroX Bjc+2MDh1bwEvE20+SB3hmGWVRWx X-Google-Smtp-Source: APXvYqzjXDU4Wd5LEj9rlzOV9pIZvgChxkDseJrWDF+F+ji5wmn7V5Zepw+LnB4wC7GTgglLKtqSnw== X-Received: by 2002:a24:1f04:: with SMTP id d4mr1353234itd.136.1559007565690; Mon, 27 May 2019 18:39:25 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id a11sm615616itc.42.2019.05.27.18.39.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 May 2019 18:39:25 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #27281 Date: Mon, 27 May 2019 21:39:23 -0400 Message-ID: <87o93n73xw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 27281 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 11:04:39 2019 Received: (at 27281) by debbugs.gnu.org; 29 Sep 2019 15:04:39 +0000 Received: from localhost ([127.0.0.1]:55467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEakZ-0005Mr-9E for submit@debbugs.gnu.org; Sun, 29 Sep 2019 11:04:39 -0400 Received: from quimby.gnus.org ([80.91.231.51]:56680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEakX-0005Mg-9x for 27281@debbugs.gnu.org; Sun, 29 Sep 2019 11:04:37 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEakU-0002CJ-8B; Sun, 29 Sep 2019 17:04:36 +0200 From: Lars Ingebrigtsen To: Bryan Gilbert Subject: Re: bug#27281: Fix nlinum missing line numbers. References: <87h8zovz62.fsf@users.sourceforge.net> <87h8znu491.fsf@gmail.com> <8737b7wkyx.fsf@users.sourceforge.net> <0cc87a2c-d024-edda-bce1-671c130d46de@gmail.com> Date: Sun, 29 Sep 2019 17:04:34 +0200 In-Reply-To: (Bryan Gilbert's message of "Sat, 10 Jun 2017 22:50:09 -0400") Message-ID: <871rvzgn3x.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Bryan Gilbert writes: > On 06/10/2017 10:37 PM, Bryan Gilbert wrote: >> Applying that fix seemed to solve the problem! I had to make a >> slight modification to put the 'jit-lock-bounds' function call >> inside the 'let', [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27281 Cc: 27281@debbugs.gnu.org, Alex , npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Bryan Gilbert writes: > On 06/10/2017 10:37 PM, Bryan Gilbert wrote: >> Applying that fix seemed to solve the problem! I had to make a >> slight modification to put the 'jit-lock-bounds' function call >> inside the 'let', but other than that it seems to work well. I've >> yet to see the problem since applying the patch and my 'bad' >> perspective worked properly as well. > Sorry, I spoke too soon. I didn't realize it, but I had a 'def-advice' > in my config that overrode the 'nlinum--region' function. Using your > patch didn't actually solve the problem. I'll try and dig a little more. More information was requested, but no response was given within a few years, so I'm closing this bug report. If the problem still exists, please reopen this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 11:04:45 2019 Received: (at control) by debbugs.gnu.org; 29 Sep 2019 15:04:45 +0000 Received: from localhost ([127.0.0.1]:55470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEakf-0005ND-Hq for submit@debbugs.gnu.org; Sun, 29 Sep 2019 11:04:45 -0400 Received: from quimby.gnus.org ([80.91.231.51]:56696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEakd-0005N5-22 for control@debbugs.gnu.org; Sun, 29 Sep 2019 11:04:44 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEaka-0002CT-Fe for control@debbugs.gnu.org; Sun, 29 Sep 2019 17:04:42 +0200 Date: Sun, 29 Sep 2019 17:04:40 +0200 Message-Id: <87zhinf8jb.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27281 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 27281 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 27281 quit From unknown Sat Aug 16 13:40:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 28 Oct 2019 11:24:17 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator