[slime-devel] Re: It's not just me!
Joerg-Cyril.Hoehle at t-systems.com
Wed Jul 6 15:36:42 UTC 2005
Helmut Eller wrote:
>The CLISP/Win32 returned -1.
clisp-2.33, or 2.33.1, or 2.33.2?
clisp from CVS must work.
I'll submit a patch to have the older versions work.
>I guess SIGINT is not the Windows way and something else should be
[Aside: I'd be happy if slime.el:slime-send-sigint actually used 'SIGINT. The source code just says '2 -- Emacs-20.7 says: "SIGCODE may be an integer, or a symbol whose name is a signal name." 'SIGINT would be self-documenting.]
I did the following experiment, using Emacs-20.7 on MS-Windows-2k
lisp.exe -M lispinit.mem
(ffi:def-call-out getpid (:name "GetCurrentProcessId") (:return-type ffi:uint) (:language :stdc-stdcall) (:library "kernel32.dll"))
;relative path "kernel32.dll" is reported not to work with cygwin
M-: (signal-process 1840 'SIGINT)
;-> -1 and clisp is not interrupted(!)
M-: (signal-process 1812 'SIGINT)
;-> 0 and Emacs titlebar flashes and clisp gets interrupt
I.e., in this scenario, the internal pid is useless!
Now, using C-u M-x run-lisp, which starts lisp.exe directly instead of going through the cmd.exe proxy, both process ids match, and clisp becomes interruptible by Emacs. SLIME starts clisp the same way (at least in my setup).
I have yet to check when clisp is started via clisp.exe which in turn starts lisp.exe.
Alas, I know of no other way for signaling an interrupt under Emacs.
More information about the slime-devel