[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Accessing a device file?
From: |
David Kastrup |
Subject: |
Accessing a device file? |
Date: |
Wed, 16 Jun 2010 16:27:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi,
I want to create a midi input process for Emacs. It will just open
/dev/midi1 and read stuff from it, using process filters to work on it.
Very simple conceptually. And it would appear that something like
make-serial-process would perfectly fit the bill.
Indeed, something like
(make-serial-process :port "/dev/midi1" :speed nil)
appears to do the trick, creating a buffer named "/dev/midi1" and
delivering events there.
However, what's the deal with requiring :speed nil ? It would appear
that the interface is cleaner without requiring this (actually
specifying a non-nil speed will fail trying to set the appropriate tty
setting).
--
David Kastrup
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Accessing a device file?,
David Kastrup <=