From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA00692; Fri, 29 Aug 2003 17:38:41 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA14666 for ; Fri, 29 Aug 2003 17:38:40 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7TFcWf26789; Fri, 29 Aug 2003 17:38:32 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA01692; Fri, 29 Aug 2003 17:38:32 +0200 (MET DST) Date: Fri, 29 Aug 2003 17:38:32 +0200 From: Xavier Leroy To: Sean McLaughlin Cc: caml-list@inria.fr Subject: Re: [Caml-list] emacs cygwin ocaml interrupt Message-ID: <20030829173832.B10551@pauillac.inria.fr> References: <000a01c36d86$1127eba0$187c8e88@tomlaptop1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000a01c36d86$1127eba0$187c8e88@tomlaptop1>; from seanmcl@cs.nyu.edu on Thu, Aug 28, 2003 at 01:01:42PM -0400 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 cygwin:01 cygwin:01 vanilla:01 c-c:01 c-c:01 ctrl-c:01 runtime:01 ocaml:01 ocaml:01 emacs:01 emacs:01 binary:02 native:02 unix:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I'd like to use the cygwin build of ocaml through emacs. I'm using > vanilla emacs and cygwin, with the shell connection cygwin-mount.el. > For some reason, when I use the binary windows edition of ocaml, I can > send ocaml interrupts through emacs with C-c C-c. With the cygwin built > version, though, I can't get any interrupts to work. I tried sifting > through the 21 different signals but couldn't find out what ocaml is > doing with C-c C-c. Win32 doesn't have an exact equivalent to Unix signals, so software ported from Unix (such as Emacs and OCaml, as well as Cygwin itself) do a best effort to emulate them, but that doesn't mean the emulations work well together... The native Windows port of OCaml goes to some length to trap the "ctrl-C" and "ctrl-break" conditions (which can be generated at the keyboard or programmatically) and turn them into SIGINT signals. Apparently, Emacs generates the right conditions in reply to C-c C-c. The Cygwin build just relies on the Cygwin runtime environment to emulate Unix signals, and I have no idea on what Cygwin does exactly. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners