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: Sun, 15 Oct 2017 16:05:37 +0100 Message-ID: References: <83eftnitpj.fsf@gnu.org> <83bmorjba2.fsf@gnu.org> <83eftliuk5.fsf@gnu.org> <83o9sgb8ni.fsf@gnu.org> <83tvzdwxil.fsf@gnu.org> <66aa3f32-28a3-8aa7-117a-c8b2d9827eb4@gmail.com> <83lgkgn4zr.fsf@gnu.org> <834lr3la5n.fsf@gnu.org> <83vajii30y.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------7AA991C68EF1C0E7EF524975" X-Trace: blaine.gmane.org 1508079981 32597 195.159.176.226 (15 Oct 2017 15:06:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Oct 2017 15:06:21 +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, kaushal.modi@gmail.com, jonaswestlund101@gmail.com, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 15 17:06:16 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 1e3kUZ-000702-Mw for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Oct 2017 17:06:15 +0200 Original-Received: from localhost ([::1]:57501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3kUa-0006kB-Tn for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Oct 2017 11:06:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3kUQ-0006k5-UX for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 11:06:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3kUM-0002d1-UC for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 11:06:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3kUM-0002cp-Pk for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 11:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e3kUM-0000ig-CR for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 11:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Romanos Skiadas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Oct 2017 15:06:02 +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.15080799482739 (code B ref 27647); Sun, 15 Oct 2017 15:06:02 +0000 Original-Received: (at 27647) by debbugs.gnu.org; 15 Oct 2017 15:05:48 +0000 Original-Received: from localhost ([127.0.0.1]:41785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3kU8-0000i7-EU for submit@debbugs.gnu.org; Sun, 15 Oct 2017 11:05:48 -0400 Original-Received: from mail-wm0-f66.google.com ([74.125.82.66]:49218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3kU7-0000hq-6b for 27647@debbugs.gnu.org; Sun, 15 Oct 2017 11:05:47 -0400 Original-Received: by mail-wm0-f66.google.com with SMTP id b189so28980869wmd.4 for <27647@debbugs.gnu.org>; Sun, 15 Oct 2017 08:05:47 -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=sgkQZt/oprV8twp8QGzO4hsCiPJ0CET9ICvubrn3lxg=; b=VZIkGYKIR95R1FVd7JjD4CP94AId9ngcTOStTYwjoXTrluU5azvx0WJHCdHrnvPldF 7CcdK8pE9XqQHGf4+8gMoqMppUZdepSPvP4Hpd9BXYDPhBlNYMIx/ykrlcjcpGvuCg2h JgR477f1aeKbRmiKNbSeZ4q0IHtrDpuxVG1wmtxuFIpOdZjinL+GnV2AJjC4NbQpIVMe Exz908TnSc7tlnfGZMbijVONT+0hX9HiiRMpM4ZF/EsiD9AwcUg0/yO2g1l5AIdQTzQ9 wxwtzwl/EifhuFZG5Y2KfGCHieQpC8q2LDGIkUzrYIHFld7j3XCwp0cAS6eWKau6izNq hH7Q== 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=sgkQZt/oprV8twp8QGzO4hsCiPJ0CET9ICvubrn3lxg=; b=h+OgEIW5t5a6X40gxwsnsVxJNHkW4RXqYR2TQIwQTCpg52K2JPhnC774PmZeGBndZg s0E+5Spo/fjloJno4Gsfv0kTslEIF9wcNHqp9pTugAqqKRnJR7JO2TxjzZxhvkujkvSZ TnSGGWPChqgTp40b2k8LCDO3k3n915dVyoxR/jQ4CqJmoq3QZlQk7glGigquVRJVGt+x bysVKLZunCnQXufxJOmoRD5RE0D8HfXZtjzUF7nHIz0nITdpj6zNknQ7aT6LA88VNJwG ErMVrKOc+OU7GaFbkeUcZxmygSRTluvt98SL53AbRKIQ4Rx1aLAVmkt7Ua+FDR7n1lmG AEag== X-Gm-Message-State: AMCzsaWilF4vZKG+dnh/NmLuIvkRPt5j3Sz1+g2WKUSLA9xRlxM1qo0Q gTLDFp4dE2S+X7YkUyOSZ7I= X-Google-Smtp-Source: AOwi7QDeZMt6Zc8rYy0pDkzxNDma8uGoiBjJIlGh6gehn3PPvH7aaezqQx8K37LaLIMJ3Xm0PU5Amg== X-Received: by 10.80.135.9 with SMTP id i9mr9806123edb.31.1508079941594; Sun, 15 Oct 2017 08:05:41 -0700 (PDT) Original-Received: from [192.168.43.184] ([83.136.43.108]) by smtp.gmail.com with ESMTPSA id i17sm4046895ede.64.2017.10.15.08.05.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Oct 2017 08:05:40 -0700 (PDT) In-Reply-To: <83vajii30y.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:138462 Archived-At: This is a multi-part message in MIME format. --------------7AA991C68EF1C0E7EF524975 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 14/10/17 08:47, Eli Zaretskii wrote: >> Cc: kaushal.modi@gmail.com, 27647@debbugs.gnu.org, >> jonaswestlund101@gmail.com, npostavs@users.sourceforge.net >> From: Romanos Skiadas >> Date: Fri, 13 Oct 2017 19:14:10 +0100 >> >>>> It is indeed a GTK3 build and setting x-gtk-use-system-tooltips to nil does indeed make this problem go away. >>> What about disabling scroll-bar-mode, while leaving the GTK tooltips >>> in use -- does that also make the problem go away? >>> >>> Thanks. >> Just checked, still shows up with scroll-bar-mode disabled and the >> tooltips in use. > What if you turn on display-line-numbers globally -- does the problem > persist in that case with your default settings for GTK tooltips? Nope, still a problem with this init file: (global-display-line-numbers-mode) (add-to-list 'load-path "~/Code/evil") (require 'evil) (evil-mode 1) (add-hook 'text-mode-hook 'flyspell-mode) ;; don't have to create the overlay manually $ emacs -Q -l /txt/config.el /tmp/foo.txt I spent some time looking into evil and tracked the problem in these lines of the function that is bound to [mouse-1]: https://github.com/emacs-evil/evil/blob/89ab1e2ae5e59140bab4f8509b9e4c336ba375ea/evil-commands.el#L4225 https://github.com/emacs-evil/evil/blob/89ab1e2ae5e59140bab4f8509b9e4c336ba375ea/evil-commands.el#L4245 They call this function that moves point and mark: https://github.com/emacs-evil/evil/blob/89ab1e2ae5e59140bab4f8509b9e4c336ba375ea/evil-commands.el#L4304 which as the comment says is just a copy of mouse--drag-set-mark-and-point Is this in any way helpful? I'm playing with the debugger now so I might have something more useful later. Best, Romanos --------------7AA991C68EF1C0E7EF524975 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit



On 14/10/17 08:47, Eli Zaretskii wrote:
Cc: kaushal.modi@gmail.com, 27647@debbugs.gnu.org,
 jonaswestlund101@gmail.com, npostavs@users.sourceforge.net
From: Romanos Skiadas <rom.skiad@gmail.com>
Date: Fri, 13 Oct 2017 19:14:10 +0100

It is indeed a GTK3 build and setting x-gtk-use-system-tooltips to nil does indeed make this problem go away.
What about disabling scroll-bar-mode, while leaving the GTK tooltips
in use -- does that also make the problem go away?

Thanks.
Just checked, still shows up with scroll-bar-mode disabled and the 
tooltips in use.
What if you turn on display-line-numbers globally -- does the problem
persist in that case with your default settings for GTK tooltips?

Nope, still a problem with this init file:
(global-display-line-numbers-mode)
(add-to-list 'load-path "~/Code/evil")
(require 'evil)
(evil-mode 1)
(add-hook 'text-mode-hook 'flyspell-mode) ;; don't have to create the overlay manually

$ emacs -Q -l /txt/config.el /tmp/foo.txt

I spent some time looking into evil and tracked the problem in these lines of the function that is bound to [mouse-1]:

https://github.com/emacs-evil/evil/blob/89ab1e2ae5e59140bab4f8509b9e4c336ba375ea/evil-commands.el#L4225
https://github.com/emacs-evil/evil/blob/89ab1e2ae5e59140bab4f8509b9e4c336ba375ea/evil-commands.el#L4245

They call this function that moves point and mark:
https://github.com/emacs-evil/evil/blob/89ab1e2ae5e59140bab4f8509b9e4c336ba375ea/evil-commands.el#L4304
which as the comment says is just a copy of mouse--drag-set-mark-and-point Is this in any way helpful?

I'm playing with the debugger now so I might have something more useful later.

Best,
Romanos
--------------7AA991C68EF1C0E7EF524975--