unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Romanos Skiadas <rom.skiad@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, Kaushal Modi <kaushal.modi@gmail.com>
Cc: 27647@debbugs.gnu.org, jonaswestlund101@gmail.com,
	npostavs@users.sourceforge.net
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	[thread overview]
Message-ID: <66aa3f32-28a3-8aa7-117a-c8b2d9827eb4@gmail.com> (raw)
In-Reply-To: <83tvzdwxil.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]



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

[-- Attachment #2: Type: text/html, Size: 3321 bytes --]

  parent reply	other threads:[~2017-10-11 20:32 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-10 20:52 bug#27647: 26.0.50; Line numbers implemented natively disappear momentarily when frame out of focus Kaushal Modi
2017-07-11  2:38 ` Eli Zaretskii
2017-07-11  3:43   ` Kaushal Modi
2017-07-11 14:31     ` Eli Zaretskii
2017-07-11 14:38       ` Kaushal Modi
2017-07-11 20:08         ` Kaushal Modi
2017-07-12 14:44           ` Eli Zaretskii
2017-07-19 15:13             ` Kaushal Modi
2017-07-19 17:34               ` Eli Zaretskii
2017-07-19 17:52             ` Noam Postavsky
2017-07-19 18:09               ` Eli Zaretskii
2017-10-05 12:40                 ` Kaushal Modi
2017-10-05 13:03                   ` jonas
2017-10-05 13:10                   ` Eli Zaretskii
2017-10-05 13:39                     ` Eli Zaretskii
2017-10-05 22:17                       ` Romanos Skiadas
2017-10-06  8:57                         ` Eli Zaretskii
2017-10-11 20:32                     ` Romanos Skiadas [this message]
2017-10-12  8:29                       ` Eli Zaretskii
2017-10-12 19:30                         ` Romanos Skiadas
2017-10-13  8:33                           ` Eli Zaretskii
2017-10-13 18:14                             ` Romanos Skiadas
2017-10-14  7:47                               ` Eli Zaretskii
2017-10-15 15:05                                 ` Romanos Skiadas
2017-10-14  8:36                             ` martin rudalics
2017-10-14 10:12                               ` Eli Zaretskii
2017-10-15  9:39                                 ` martin rudalics
2017-10-15 13:25                                   ` Kaushal Modi
2017-10-16 21:46                                     ` Kaushal Modi
2017-10-17  8:59                                       ` martin rudalics
2017-10-17 14:47                                         ` Eli Zaretskii
2017-10-17 15:07                                           ` Kaushal Modi
2017-10-17 15:13                                         ` Kaushal Modi
2017-10-17 16:48                                           ` Eli Zaretskii
2017-10-15 14:29                                   ` Eli Zaretskii
2017-11-08 20:08   ` Alex
2017-11-08 20:14     ` Alex
2017-11-09  2:49       ` Noam Postavsky
2017-11-09  7:28         ` martin rudalics
2017-11-09 15:57           ` Eli Zaretskii
2017-11-09 18:10             ` martin rudalics
2017-11-09 20:53               ` Eli Zaretskii
2017-11-12 10:08                 ` martin rudalics
2017-11-12 11:36                   ` Eli Zaretskii
2017-11-13 18:45                     ` martin rudalics
2017-11-13 19:12                       ` Eli Zaretskii
2017-11-14  9:52                         ` martin rudalics
2017-11-14 15:47                           ` Eli Zaretskii
2017-11-14 18:29                             ` martin rudalics
2017-11-14 19:02                               ` Eli Zaretskii
2017-11-15  9:22                                 ` martin rudalics
2017-11-15 10:05                                   ` martin rudalics
2017-11-18 11:42                                     ` Eli Zaretskii
2017-11-18 18:25                                       ` martin rudalics
2017-11-09 13:34         ` Kaushal Modi
2017-11-10  0:38           ` Noam Postavsky
2017-11-09 16:12         ` Eli Zaretskii
2017-11-09 18:14           ` Romanos Skiadas
2017-11-09 20:27             ` Eli Zaretskii
2017-11-10  0:11           ` Noam Postavsky
2017-11-10  8:37             ` Eli Zaretskii
2017-07-21 17:49 ` bug#27647: 26.0.50; Line numbers implemented natively disappear momentarily when, " jonas
2017-07-21 18:57   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66aa3f32-28a3-8aa7-117a-c8b2d9827eb4@gmail.com \
    --to=rom.skiad@gmail.com \
    --cc=27647@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jonaswestlund101@gmail.com \
    --cc=kaushal.modi@gmail.com \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).