unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Processes documentation
       [not found] ` <87skkt110b.fsf@cyd.mit.edu>
@ 2009-04-01 16:58   ` Markus Triska
  0 siblings, 0 replies; only message in thread
From: Markus Triska @ 2009-04-01 16:58 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

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


With latest CVS Emacs on OSX and Ubuntu, and finished.el from:

  http://www.logic.at/prolog/finished.el

(also attached), when I do M-x eval-buffer RET on finished.el in emacs -Q, it loops. When I un-comment the sit-for call in line 10, the sentinel is run as expected. Thus `accept-process-output' seems not to suffice to run the sentinel in contrast to what the documentation says. It seems to be sufficient in "script" mode, i.e., emacs -Q --script finished.el.

Thank you!

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01

[-- Attachment #2: finished.el --]
[-- Type: application/octet-stream, Size: 308 bytes --]


(defun my-sentinel (proc str)
  (setq my-finished t))

(let ((p (start-process "bc" nil "bc"))
      my-finished)
  (set-process-sentinel p 'my-sentinel)
  (process-send-string p "quit\n")
  (while (not my-finished)
    ;(sit-for 0.1 t)
    (accept-process-output p 0.1 nil t))
  (message "%s finished" p))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-01 16:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20090401015724.277090@gmx.net>
     [not found] ` <87skkt110b.fsf@cyd.mit.edu>
2009-04-01 16:58   ` Processes documentation Markus Triska

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).