GNU bug report logs - #29846
scroll and fontify takes longer time for file in slow network

Previous Next

Package: emacs;

Reported by: Shuguang Sun <shuguang <at> gmail.com>

Date: Mon, 25 Dec 2017 06:04:01 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 29846 <at> debbugs.gnu.org, shuguang <at> gmail.com
Subject: bug#29846: scroll and fontify takes longer time for file in slow network
Date: Thu, 28 Dec 2017 18:21:52 +0200
> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> Date: Wed, 27 Dec 2017 15:49:56 -0500
> Cc: 29846 <at> 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 <monnier <at> iro.umontreal.ca>
>   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.




This bug report was last modified 7 years and 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.