From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Romanos Skiadas Newsgroups: gmane.emacs.bugs Subject: bug#27647: 26.0.50; Line numbers implemented natively disappear momentarily when frame out of focus Date: Wed, 11 Oct 2017 21:32:06 +0100 Message-ID: <66aa3f32-28a3-8aa7-117a-c8b2d9827eb4@gmail.com> References: <83eftnitpj.fsf@gnu.org> <83bmorjba2.fsf@gnu.org> <83eftliuk5.fsf@gnu.org> <83o9sgb8ni.fsf@gnu.org> <83tvzdwxil.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------EB15BBC2C234C8EEE549CB1A" X-Trace: blaine.gmane.org 1507754011 22725 195.159.176.226 (11 Oct 2017 20:33:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Oct 2017 20:33:31 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 Cc: 27647@debbugs.gnu.org, jonaswestlund101@gmail.com, npostavs@users.sourceforge.net To: Eli Zaretskii , Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 11 22:33:26 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1e2Ngl-0003xE-UZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Oct 2017 22:33:12 +0200 Original-Received: from localhost ([::1]:42580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Ngs-0000xG-R1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Oct 2017 16:33:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Ngh-0000wX-43 for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 16:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Ngd-0003xh-Sr for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 16:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54093) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2Ngd-0003xU-PW for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 16:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2Ngd-0007G8-EV for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 16:33:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Romanos Skiadas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Oct 2017 20:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27647-submit@debbugs.gnu.org id=B27647.150775393827845 (code B ref 27647); Wed, 11 Oct 2017 20:33:03 +0000 Original-Received: (at 27647) by debbugs.gnu.org; 11 Oct 2017 20:32:18 +0000 Original-Received: from localhost ([127.0.0.1]:34541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Nft-0007F3-Nd for submit@debbugs.gnu.org; Wed, 11 Oct 2017 16:32:18 -0400 Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:56293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Nfr-0007Ep-Lb for 27647@debbugs.gnu.org; Wed, 11 Oct 2017 16:32:16 -0400 Original-Received: by mail-wm0-f54.google.com with SMTP id u138so8149747wmu.4 for <27647@debbugs.gnu.org>; Wed, 11 Oct 2017 13:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=UGNynmB++UzGOM28SSGKbKsHyL6/OYuaWdRz6B+bbGc=; b=roMKkbRli6J9YgyR1G5PQLsnwkobdhEb2gdb5ADT2C0lOxOWYk1AZpWhfDE/Xk3dWN ufCa5vBI0F6EucDcuc0Z+aaGGZ7kLSoRBWLXTHECbbnFuLxxUAVndtFvOpv/eSzsfcUM SFKCO3C0sp0zusNrypMFoBkpgqFKIw4Y4A1uTiHGOizwyuK0DW0YNX6Ou31ZT2lyHnos 7bXyeh2Twb/W/zIQ/yD7ff5DerSX6sg6Loye5jmT8ITAhVPuvo8ca67qqDd8cAOTbWok Ttkw/0O02ZzYFi8p2nT47G7ABddzrh2m37bkbjiTkNj+5UVaXGnVdE1705SOcJKm4QL5 T8Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=UGNynmB++UzGOM28SSGKbKsHyL6/OYuaWdRz6B+bbGc=; b=bFHlH5v7/ZtiXCkFQJRciSyvQoSRG/3LN7SS0/PEvfla6ikGSNR7rg53L1UNRGZ2kZ +t4jBWjU5zLT4IHFkYzA7u1uj244M5Qp8Kj16kU7aai3CpaxRNCqxqSeeWYT9lZg89yR BlgbLcvLMjJYQaGECMslBpqANDGNOA36wn+bzPkKTFrZlvnLo6rYBL7gwqhTEAJhiAF3 +qK9hbHvJskdgX9YTzwbJ0NJlsCRNy39XDkmEyhgmhM2kyKFarzhU6OV9iqwxm1HZX7R Q3RU52FusfaUG3bjPQq5YtznxQCdrfInQfFy2y4wDg2ev9m6MSMYehzMd9UyxcAiEvK6 I+gw== X-Gm-Message-State: AMCzsaX5SN+aR1RZ4vtmKzMqShhSryP48WuXXKp+hoBGNgZZOMpQZuJP OaIYQwFodLSjQM78getl3QI= X-Google-Smtp-Source: AOwi7QDh0Rj6A3IcnW4XqOFYpkK6yntuHdwXFWJA1Wva8KWDZJYFNW+ggVtrp6ESt6gIxnjrkNP7IA== X-Received: by 10.80.159.167 with SMTP id c36mr210929edf.189.1507753929805; Wed, 11 Oct 2017 13:32:09 -0700 (PDT) Original-Received: from [192.168.43.184] ([83.136.43.204]) by smtp.gmail.com with ESMTPSA id w2sm12004199eda.86.2017.10.11.13.32.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Oct 2017 13:32:09 -0700 (PDT) In-Reply-To: <83tvzdwxil.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:138228 Archived-At: This is a multi-part message in MIME format. --------------EB15BBC2C234C8EEE549CB1A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 05/10/17 14:10, Eli Zaretskii wrote: >> From: Kaushal Modi >> Date: Thu, 05 Oct 2017 12:40:35 +0000 >> Cc: 27647@debbugs.gnu.org, jonaswestlund101@gmail.com >> >> As you know from my other thread, I am unable to use gdb. As I don't know enough C to hack it myself, can >> you provide pointers to where I can put print statements or something like that in the C code directly to help >> with this debug? > I couldn't think of anything useful. Which is not surprising, as I > have no idea what could be involved in this. > >> @Eli: This problem is consistent, though not consistent enough to yet create a recipe. But it does happen at >> least once a day. I am still sticking on to native line numbers and not giving up. Can this be please made a >> blocker for 26.1? > I don't think it's an Emacs bug. It's most probably something related > to some hook or timer that you set up in your customizations. That's > the only way a frame without a focus could get redrawn. So please > look through all of your customizations to find the one that is > responsible. Evil is very probably doing something funky like this. I started seeing line-numbers disappearing completely again, not partially as I mentioned at some point in the thread, with flycheck-pos-tip disabled. Turns out it was some interaction between flyspell's overlays & evil. A recipe to reliably reproduce this with evil is: echo "foo" > /tmp/test.txt (cd /tmp && git clone https://github.com/emacs-evil/evil) Add this to a file, eg /tmp/test-init.el: (add-hook 'text-mode-hook (lambda () (display-line-numbers-mode))) (add-to-list 'load-path "/tmp/evil") (require 'evil) (evil-mode 1)  emacs -Q -l /tmp/test-init.el /tmp/test.txt Put this in the test.txt buffer an eval it: (let ((overlay (make-overlay 1 6 nil t nil))) ;; flyspell does this on misspelled words   (overlay-put overlay 'help-echo "a")) Make sure you are in normal more (press ESC) Move the mouse above the f at the start of the buffer and hover until the "a" shows up. Click and drag along toward to end of the line. The line numbers consistently go away with this recipe for me. I'll start dissecting evil to see what causes this. Best, Romanos --------------EB15BBC2C234C8EEE549CB1A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit



On 05/10/17 14:10, Eli Zaretskii wrote:
From: Kaushal Modi <kaushal.modi@gmail.com>
Date: Thu, 05 Oct 2017 12:40:35 +0000
Cc: 27647@debbugs.gnu.org, jonaswestlund101@gmail.com

As you know from my other thread, I am unable to use gdb. As I don't know enough C to hack it myself, can
you provide pointers to where I can put print statements or something like that in the C code directly to help
with this debug?
I couldn't think of anything useful.  Which is not surprising, as I
have no idea what could be involved in this.

@Eli: This problem is consistent, though not consistent enough to yet create a recipe. But it does happen at
least once a day. I am still sticking on to native line numbers and not giving up. Can this be please made a
blocker for 26.1?
I don't think it's an Emacs bug.  It's most probably something related
to some hook or timer that you set up in your customizations.  That's
the only way a frame without a focus could get redrawn.  So please
look through all of your customizations to find the one that is
responsible.
Evil is very probably doing something funky like this. I started seeing line-numbers disappearing completely again, not partially as I mentioned at some point in the thread, with flycheck-pos-tip disabled. Turns out it was some interaction between flyspell's overlays & evil. A recipe to reliably reproduce this with evil is:

echo "foo" > /tmp/test.txt

(cd /tmp && git clone https://github.com/emacs-evil/evil)

Add this to a file, eg /tmp/test-init.el:

(add-hook 'text-mode-hook (lambda () (display-line-numbers-mode)))
(add-to-list 'load-path "/tmp/evil")
(require 'evil)
(evil-mode 1)

 emacs -Q -l /tmp/test-init.el /tmp/test.txt

Put this in the test.txt buffer an eval it:
(let ((overlay (make-overlay 1 6 nil t nil))) ;; flyspell does this on misspelled words
  (overlay-put overlay 'help-echo "a"))

Make sure you are in normal more (press ESC)
Move the mouse above the f at the start of the buffer and hover until the "a" shows up.
Click and drag along toward to end of the line. The line numbers consistently go away with this recipe for me.

I'll start dissecting evil to see what causes this.

Best,
Romanos
--------------EB15BBC2C234C8EEE549CB1A--