From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29846: scroll and fontify takes longer time for file in slow network Date: Thu, 28 Dec 2017 18:21:52 +0200 Message-ID: <837et6hlgf.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514478016 1453 195.159.176.226 (28 Dec 2017 16:20:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Dec 2017 16:20:16 +0000 (UTC) Cc: 29846@debbugs.gnu.org, shuguang@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 28 17:20:12 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 1eUauh-0008Bn-5J for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Dec 2017 17:20:11 +0100 Original-Received: from localhost ([::1]:56703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUawe-0003qd-BF for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Dec 2017 11:22:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUawX-0003qF-GX for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 11:22:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUawU-0008Sv-AV for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 11:22:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUawU-0008SY-68 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 11:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUawT-0001z7-U7 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2017 11:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Dec 2017 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29846 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29846-submit@debbugs.gnu.org id=B29846.15144781077608 (code B ref 29846); Thu, 28 Dec 2017 16:22:01 +0000 Original-Received: (at 29846) by debbugs.gnu.org; 28 Dec 2017 16:21:47 +0000 Original-Received: from localhost ([127.0.0.1]:55362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUawF-0001ye-LG for submit@debbugs.gnu.org; Thu, 28 Dec 2017 11:21:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUawC-0001yP-SK for 29846@debbugs.gnu.org; Thu, 28 Dec 2017 11:21:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUaw4-0008CO-HB for 29846@debbugs.gnu.org; Thu, 28 Dec 2017 11:21:39 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUaw4-0008CK-DM; Thu, 28 Dec 2017 11:21:36 -0500 Original-Received: from [176.228.60.248] (port=1799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eUaw3-0002Eu-Rq; Thu, 28 Dec 2017 11:21:36 -0500 In-reply-to: (message from Stefan Monnier on Wed, 27 Dec 2017 15:49:56 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:141572 Archived-At: > From: Stefan Monnier > Date: Wed, 27 Dec 2017 15:49:56 -0500 > Cc: 29846@debbugs.gnu.org > > > I have remote drive (//server/path) mapped to my windows system (samba?). > > The network is slow, and it takes some time to open the file. However, > > after I have the file opened and scroll down, it takes a long time to > > scroll to the next screen. It gets worse if the jit-lock-debug-mode is on. > > After that if I try to scroll back to those has been fontified, it get > > fluent as expected. > > I believe this bug was introduced by yours truly > in commit 6bc76cee212aab0a2c02f8c28213fc842cc7880f: > > Author: Stefan Monnier > Date: Tue Apr 8 21:48:07 2014 -0400 > > * src/insdel.c (prepare_to_modify_buffer_1): Cancel lock-file checks and > region handling (and don't call signal_before_change) if > inhibit_modification_hooks is set. > (signal_before_change): Don't check inhibit_modification_hooks any more. > * lisp/subr.el (with-silent-modifications): Don't bind deactivate-mark, > buffer-file-name, and buffer-file-truename any more. > > And I think the patch below hence belongs in emacs-26. Any objection? LGTM, please push to emacs-26. Thanks.