Move INTERRUPT_INPUT from src/s to configure
* configure.ac (INTERRUPT_INPUT): Move here from src/s. * src/s/darwin.h, src/s/gnu-linux.h, src/s/template.h: Move INTERRUPT_INPUT to configure.
This commit is contained in:
parent
7ad4afe1f5
commit
c43fb4c32d
6 changed files with 37 additions and 51 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-07-11 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* configure.ac (INTERRUPT_INPUT): Move here from src/s.
|
||||
|
||||
2012-07-11 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* configure.ac (tzset): Remove check that's redundant with gnulib.
|
||||
|
|
28
configure.ac
28
configure.ac
|
@ -3172,6 +3172,34 @@ AC_DEFINE_UNQUOTED(DEFAULT_SOUND_DEVICE, "$sound_device",
|
|||
[Name of the default sound device.])
|
||||
|
||||
|
||||
dnl Emacs can read input using SIGIO and buffering characters itself,
|
||||
dnl or using CBREAK mode and making C-g cause SIGINT.
|
||||
dnl The choice is controlled by the variable interrupt_input.
|
||||
dnl
|
||||
dnl Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
|
||||
dnl
|
||||
dnl Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros
|
||||
dnl to indicate whether or not signal-driven I/O is possible. It uses
|
||||
dnl INTERRUPT_INPUT to decide whether to use it by default.
|
||||
dnl
|
||||
dnl SIGIO can be used only on systems that implement it (4.2 and 4.3).
|
||||
dnl CBREAK mode has two disadvantages
|
||||
dnl 1) At least in 4.2, it is impossible to handle the Meta key properly.
|
||||
dnl I hear that in system V this problem does not exist.
|
||||
dnl 2) Control-G causes output to be discarded.
|
||||
dnl I do not know whether this can be fixed in system V.
|
||||
dnl
|
||||
dnl Another method of doing input is planned but not implemented.
|
||||
dnl It would have Emacs fork off a separate process
|
||||
dnl to read the input and send it to the true Emacs process
|
||||
dnl through a pipe.
|
||||
case $opsys in
|
||||
darwin | gnu-linux | gnu-kfreebsd )
|
||||
AC_DEFINE(INTERRUPT_INPUT, 1, [Define to read input using SIGIO.])
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
AH_TEMPLATE(SIGNALS_VIA_CHARACTERS, [Make process_send_signal work by
|
||||
"typing" a signal character on the pty.])
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2012-07-11 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* s/darwin.h, s/gnu-linux.h, s/template.h:
|
||||
Move INTERRUPT_INPUT to configure.
|
||||
|
||||
2012-07-11 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
Minor adjustments to interning code.
|
||||
|
|
|
@ -30,30 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
distinguish OS X from pure Darwin. */
|
||||
#define DARWIN_OS
|
||||
|
||||
|
||||
/* Emacs can read input using SIGIO and buffering characters itself,
|
||||
or using CBREAK mode and making C-g cause SIGINT.
|
||||
The choice is controlled by the variable interrupt_input.
|
||||
|
||||
Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
|
||||
|
||||
Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros
|
||||
to indicate whether or not signal-driven I/O is possible. It uses
|
||||
INTERRUPT_INPUT to decide whether to use it by default.
|
||||
|
||||
SIGIO can be used only on systems that implement it (4.2 and 4.3).
|
||||
CBREAK mode has two disadvantages
|
||||
1) At least in 4.2, it is impossible to handle the Meta key properly.
|
||||
I hear that in system V this problem does not exist.
|
||||
2) Control-G causes output to be discarded.
|
||||
I do not know whether this can be fixed in system V.
|
||||
|
||||
Another method of doing input is planned but not implemented.
|
||||
It would have Emacs fork off a separate process
|
||||
to read the input and send it to the true Emacs process
|
||||
through a pipe. */
|
||||
#define INTERRUPT_INPUT
|
||||
|
||||
/* Letter to use in finding device name of first pty,
|
||||
if system supports pty's. 'a' means it is /dev/ptya0 */
|
||||
#define FIRST_PTY_LETTER 'p'
|
||||
|
|
|
@ -76,10 +76,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
your system and must be used only through an encapsulation
|
||||
(Which you should place, by convention, in sysdep.c). */
|
||||
|
||||
#ifdef emacs
|
||||
#define INTERRUPT_INPUT
|
||||
#endif
|
||||
|
||||
#define POSIX /* affects getpagesize.h and systty.h */
|
||||
|
||||
/* This is to work around mysterious gcc failures in some system versions.
|
||||
|
|
|
@ -29,29 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
/* #define BSD4_2 */
|
||||
/* #define BSD_SYSTEM */
|
||||
|
||||
/* Emacs can read input using SIGIO and buffering characters itself,
|
||||
or using CBREAK mode and making C-g cause SIGINT.
|
||||
The choice is controlled by the variable interrupt_input.
|
||||
|
||||
Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
|
||||
|
||||
Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros
|
||||
to indicate whether or not signal-driven I/O is possible. It uses
|
||||
INTERRUPT_INPUT to decide whether to use it by default.
|
||||
|
||||
SIGIO can be used only on systems that implement it (4.2 and 4.3).
|
||||
CBREAK mode has two disadvantages
|
||||
1) At least in 4.2, it is impossible to handle the Meta key properly.
|
||||
I hear that in system V this problem does not exist.
|
||||
2) Control-G causes output to be discarded.
|
||||
I do not know whether this can be fixed in system V.
|
||||
|
||||
Another method of doing input is planned but not implemented.
|
||||
It would have Emacs fork off a separate process
|
||||
to read the input and send it to the true Emacs process
|
||||
through a pipe. */
|
||||
#define INTERRUPT_INPUT
|
||||
|
||||
/* Letter to use in finding device name of first pty,
|
||||
if system supports pty's. 'a' means it is /dev/ptya0. */
|
||||
#define FIRST_PTY_LETTER 'a'
|
||||
|
|
Loading…
Add table
Reference in a new issue