emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109031: Move INTERRUPT_INPUT from sr


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109031: Move INTERRUPT_INPUT from src/s to configure
Date: Wed, 11 Jul 2012 13:04:19 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109031
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2012-07-11 13:04:19 -0400
message:
  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.
modified:
  ChangeLog
  configure.ac
  src/ChangeLog
  src/s/darwin.h
  src/s/gnu-linux.h
  src/s/template.h
=== modified file 'ChangeLog'
--- a/ChangeLog 2012-07-11 07:28:27 +0000
+++ b/ChangeLog 2012-07-11 17:04:19 +0000
@@ -1,3 +1,7 @@
+2012-07-11  Glenn Morris  <address@hidden>
+
+       * configure.ac (INTERRUPT_INPUT): Move here from src/s.
+
 2012-07-11  Paul Eggert  <address@hidden>
 
        * configure.ac (tzset): Remove check that's redundant with gnulib.

=== modified file 'configure.ac'
--- a/configure.ac      2012-07-11 07:28:27 +0000
+++ b/configure.ac      2012-07-11 17:04:19 +0000
@@ -3172,6 +3172,34 @@
   [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.])
 

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-11 08:33:04 +0000
+++ b/src/ChangeLog     2012-07-11 17:04:19 +0000
@@ -1,3 +1,8 @@
+2012-07-11  Glenn Morris  <address@hidden>
+
+       * s/darwin.h, s/gnu-linux.h, s/template.h:
+       Move INTERRUPT_INPUT to configure.
+
 2012-07-11  Dmitry Antipov  <address@hidden>
 
        Minor adjustments to interning code.

=== modified file 'src/s/darwin.h'
--- a/src/s/darwin.h    2012-07-11 07:07:19 +0000
+++ b/src/s/darwin.h    2012-07-11 17:04:19 +0000
@@ -30,30 +30,6 @@
    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'

=== modified file 'src/s/gnu-linux.h'
--- a/src/s/gnu-linux.h 2012-07-11 07:28:27 +0000
+++ b/src/s/gnu-linux.h 2012-07-11 17:04:19 +0000
@@ -76,10 +76,6 @@
    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.

=== modified file 'src/s/template.h'
--- a/src/s/template.h  2012-07-11 07:07:19 +0000
+++ b/src/s/template.h  2012-07-11 17:04:19 +0000
@@ -29,29 +29,6 @@
 /* #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'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]