bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20927: 24.5; Cygwin Emacs completely blocks for 5+ seconds


From: Sebastien Vauban
Subject: bug#20927: 24.5; Cygwin Emacs completely blocks for 5+ seconds
Date: Tue, 30 Jun 2015 10:30:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (cygwin)

Eli Zaretskii <eliz@gnu.org> writes:
>> From: Sebastien Vauban <sva-news@mygooglest.com>
>> Date: Mon, 29 Jun 2015 15:21:27 +0200
>> 
>> 1. Starting Cygwin Emacs,
>> 2. Opening whichever local file (`org-mode/lisp/org.el', in my case),
>>    and
>> 3. Keeping constantly our index on the Down arrow key to make the buffer
>>    scroll indefinitely,
>> 
>> Emacs blocks (after 30 seconds scroll or so) for 5 entire seconds, and
>> then revives...
>> 
>> I've tracked down this problem in Cygwin Emacs, and it's due to this
>> line:
>> 
>> --8<---------------cut here---------------start------------->8---
>>   (global-auto-revert-mode 1)           ; Auto refresh buffers.
>> --8<---------------cut here---------------end--------------->8---
>> 
>> When it's commented, Cygwin Emacs behaves normally.
>
> Probably because you use glib's notifications,

If you say so (I'm not even aware of what that is)...

> and they seem to suck...
>
> What happens if you set auto-revert-use-notify to nil before turning
> on global-auto-revert-mode?

That simply solves the problem.  Well done!

> (Btw, I think global-auto-revert-mode is evil, and advise not to use
> it.  Especially with file notifications.  Just turn on
> auto-revert-mode in those buffers/mode hooks where you really need
> that.)

Would you advice me to put:

--8<---------------cut here---------------start------------->8---
  ;; Don't use file notification functions.
  (setq auto-revert-use-notify nil)
--8<---------------cut here---------------end--------------->8---

just for Cygwin Emacs (where the problem was visible) or for both
Windows and Cygwin Emacs?

Best regards,
  Seb

-- 
Sebastien Vauban





reply via email to

[Prev in Thread] Current Thread [Next in Thread]