all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: 26973@debbugs.gnu.org
Subject: bug#26973: 26.0.50; sleep-for behavior changes with global-auto-revert-mode enabled
Date: Thu, 18 May 2017 02:57:17 +0300	[thread overview]
Message-ID: <707f822e-5034-4fdc-c7a4-96eb40454b93@yandex.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 758 bytes --]

1. Copy stp-test.el and test.sh to the same directory.
2. Evaluate the .el file.
3. M-x global-auto-revert-mode.
4. M-x start-file-process-test.
5. See the message log. "sleeping done!" comes before "process done!".

Without step 3, "process done!" comes before "sleeping done!".

So it looks like, effectively, global-auto-revert-mode stops sleep-for
from calling process sentinels, at least.

I don't remember seeing anything like this in Emacs 25.

sit-for is not affected, BTW.

In GNU Emacs 26.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.20.9)
  of 2017-05-14 built on zappa
Repository revision: e6f64df9c2b443d3385c2c25c29ccd5283d37e3f
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Ubuntu 16.10

[-- Attachment #2: sfp-test.el --]
[-- Type: text/x-emacs-lisp, Size: 408 bytes --]

(defun start-file-process-test ()
  (interactive)
  (let* ((buf (get-buffer-create "*test*"))
         (process (start-file-process "foo" buf
                                      (executable-find "sh")
                                      "./test.sh")))
    (set-process-sentinel
     process
     (lambda (proc status)
       (message "process done!")))
    (sleep-for 3)
    (message "sleeping done!")))

[-- Attachment #3: test.sh --]
[-- Type: application/x-shellscript, Size: 22 bytes --]

             reply	other threads:[~2017-05-17 23:57 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17 23:57 Dmitry Gutov [this message]
2017-05-20 11:36 ` bug#26973: 26.0.50; sleep-for behavior changes with global-auto-revert-mode enabled Eli Zaretskii
2017-05-20 12:45   ` Dmitry Gutov
2017-05-20 13:38     ` Eli Zaretskii
2017-05-21 22:38       ` Dmitry Gutov
2017-05-22  4:06         ` Eli Zaretskii
2017-05-24  0:58           ` Dmitry Gutov
2017-05-24 18:33             ` Eli Zaretskii
2017-05-22  7:52       ` Michael Albinus
2017-05-22 18:24         ` Eli Zaretskii
2017-05-25  8:12           ` Michael Albinus
2017-05-25  9:45             ` Andreas Politz
2017-05-26 14:45               ` Michael Albinus
2017-05-27  0:45                 ` Dmitry Gutov
2017-05-27  7:33                   ` Michael Albinus
2017-05-26 18:06 ` Paul Eggert
2017-05-27 16:36   ` Andreas Politz
2017-05-27 18:19     ` Paul Eggert
2017-05-27 21:13       ` Andreas Politz
2017-05-27 21:29         ` Paul Eggert
2017-05-27 21:56           ` Andreas Politz
2017-05-28 18:21             ` Paul Eggert
2017-05-28 21:18               ` Andreas Politz
2017-05-28  9:19           ` Andreas Politz
2017-05-28 15:13             ` Eli Zaretskii
2017-06-04 11:49             ` Michael Albinus
2017-06-04 14:00               ` Eli Zaretskii
2017-06-04 15:30                 ` Andreas Politz
2017-06-04 16:20                   ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=707f822e-5034-4fdc-c7a4-96eb40454b93@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=26973@debbugs.gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.