unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: Eli Zaretskii <eliz-mXXj517/zsQ@public.gmane.org>
Cc: 20927-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org
Subject: bug#20927: 24.5; Cygwin Emacs completely blocks for 5+ seconds
Date: Tue, 30 Jun 2015 10:30:02 +0200	[thread overview]
Message-ID: <vriu1tgtiool.fsf@example.com> (raw)
In-Reply-To: <83y4j24kqg.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Mon, 29 Jun 2015 18:06:47 +0300")

Eli Zaretskii <eliz-mXXj517/zsQ@public.gmane.org> writes:
>> From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
>> 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





  parent reply	other threads:[~2015-06-30  8:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 13:21 bug#20927: 24.5; Cygwin Emacs completely blocks for 5+ seconds Sebastien Vauban
2015-06-29 15:03 ` Ken Brown
     [not found]   ` <55915E49.4010409-HmMyXyqgL2CVc3sceRu5cw@public.gmane.org>
2015-06-30  8:26     ` Sebastien Vauban
2015-06-29 15:06 ` Eli Zaretskii
     [not found]   ` <83y4j24kqg.fsf-mXXj517/zsQ@public.gmane.org>
2015-06-30  8:30     ` Sebastien Vauban [this message]
2015-06-30 15:17       ` Eli Zaretskii
     [not found]       ` <mailman.6028.1435677495.904.bug-gnu-emacs@gnu.org>
     [not found]         ` <mailman.6028.1435677495.904.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2015-07-02  9:09           ` Sebastien Vauban
2016-12-07 21:03             ` Glenn Morris

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=vriu1tgtiool.fsf@example.com \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=20927-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org \
    --cc=eliz-mXXj517/zsQ@public.gmane.org \
    /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).