aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-22 22:00:06 +0000
committerRichard M. Stallman1994-09-22 22:00:06 +0000
commit78608595650c2428069026304d2d24cdb7d1f838 (patch)
treee4fd2ad5204f3f468823ecf1733bd2c7c4f75404
parent59ac2ce681fdd9622d50bc984005554fbce453a8 (diff)
downloademacs-78608595650c2428069026304d2d24cdb7d1f838.tar.gz
emacs-78608595650c2428069026304d2d24cdb7d1f838.zip
entered into RCS
-rw-r--r--lispref/display.texi54
-rw-r--r--lispref/os.texi47
-rw-r--r--lispref/processes.texi39
3 files changed, 75 insertions, 65 deletions
diff --git a/lispref/display.texi b/lispref/display.texi
index fed0c73bedf..b47111c1f19 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -48,7 +48,7 @@ This function clears and redisplays all visible frames.
48Some terminal emulators record separate contents for display-oriented 48Some terminal emulators record separate contents for display-oriented
49programs such as Emacs and for ordinary sequential display. If you are 49programs such as Emacs and for ordinary sequential display. If you are
50using such a terminal, you might want to inhibit the redisplay on 50using such a terminal, you might want to inhibit the redisplay on
51resumption. @xref{Suspending Emacs}. 51resumption.
52 52
53@defvar no-redraw-on-reenter 53@defvar no-redraw-on-reenter
54@cindex suspend (cf. @code{no-redraw-on-reenter}) 54@cindex suspend (cf. @code{no-redraw-on-reenter})
@@ -71,7 +71,7 @@ input has been processed.
71@cindex display columns 71@cindex display columns
72@cindex resize redisplay 72@cindex resize redisplay
73 73
74 The screen size functions report or tell Emacs the height or width of 74 The screen size functions access or specify the height or width of
75the terminal. When you are using multiple frames, they apply to the 75the terminal. When you are using multiple frames, they apply to the
76selected frame (@pxref{Frames}). 76selected frame (@pxref{Frames}).
77 77
@@ -242,7 +242,7 @@ choice of lines to hide is made automatically based on indentation.
242This variant is designed as a user-level feature. 242This variant is designed as a user-level feature.
243 243
244 The way you control explicit selective display is by replacing a 244 The way you control explicit selective display is by replacing a
245newline (control-j) with a carriage return (control-m). The text which 245newline (control-j) with a carriage return (control-m). The text that
246was formerly a line following that newline is now invisible. Strictly 246was formerly a line following that newline is now invisible. Strictly
247speaking, it is temporarily no longer a line at all, since only newlines 247speaking, it is temporarily no longer a line at all, since only newlines
248can separate lines; it is now part of the previous line. 248can separate lines; it is now part of the previous line.
@@ -350,18 +350,19 @@ interface to debuggers, the overlay arrow indicates the line of code
350about to be executed. 350about to be executed.
351 351
352@defvar overlay-arrow-string 352@defvar overlay-arrow-string
353This variable holds the string to display as an arrow, or @code{nil} if 353This variable holds the string to display to call attention to a
354the arrow feature is not in use. 354particular line, or @code{nil} if the arrow feature is not in use.
355@end defvar 355@end defvar
356 356
357@defvar overlay-arrow-position 357@defvar overlay-arrow-position
358This variable holds a marker which indicates where to display the arrow. 358This variable holds a marker that indicates where to display the overlay
359It should point at the beginning of a line. The arrow text appears at 359arrow. It should point at the beginning of a line. The arrow text
360the beginning of that line, overlaying any text that would otherwise 360appears at the beginning of that line, overlaying any text that would
361appear. Since the arrow is usually short, and the line usually begins 361otherwise appear. Since the arrow is usually short, and the line
362with indentation, normally nothing significant is overwritten. 362usually begins with indentation, normally nothing significant is
363 363overwritten.
364The overlay string is displayed only in the buffer which this marker 364
365The overlay string is displayed only in the buffer that this marker
365points into. Thus, only one buffer can have an overlay arrow at any 366points into. Thus, only one buffer can have an overlay arrow at any
366given time. 367given time.
367@c !!! overlay-arrow-position: but the overlay string may remain in the display 368@c !!! overlay-arrow-position: but the overlay string may remain in the display
@@ -419,7 +420,7 @@ The value of the last form in @var{forms} is returned.
419@end defspec 420@end defspec
420 421
421@defvar temp-buffer-show-function 422@defvar temp-buffer-show-function
422If this variable, if non-@code{nil}, @code{with-output-to-temp-buffer} 423If this variable is non-@code{nil}, @code{with-output-to-temp-buffer}
423calls it as a function to do the job of displaying a help buffer. The 424calls it as a function to do the job of displaying a help buffer. The
424function gets one argument, which is the buffer it should display. 425function gets one argument, which is the buffer it should display.
425 426
@@ -483,7 +484,7 @@ Type RET when done reading
483@cindex overlays 484@cindex overlays
484 485
485You can use @dfn{overlays} to alter the appearance of a buffer's text on 486You can use @dfn{overlays} to alter the appearance of a buffer's text on
486the screen. An overlay is an object which belongs to a particular 487the screen. An overlay is an object that belongs to a particular
487buffer, and has a specified beginning and end. It also has properties 488buffer, and has a specified beginning and end. It also has properties
488that you can examine and set; these affect the display of the text 489that you can examine and set; these affect the display of the text
489within the overlay. 490within the overlay.
@@ -602,7 +603,7 @@ overlay properties and text properties for a given character.
602overlays, and to examine their contents. 603overlays, and to examine their contents.
603 604
604@defun make-overlay start end &optional buffer 605@defun make-overlay start end &optional buffer
605This function creates and returns an overlay which belongs to 606This function creates and returns an overlay that belongs to
606@var{buffer} and ranges from @var{start} to @var{end}. Both @var{start} 607@var{buffer} and ranges from @var{start} to @var{end}. Both @var{start}
607and @var{end} must specify buffer positions; they may be integers or 608and @var{end} must specify buffer positions; they may be integers or
608markers. If @var{buffer} is omitted, the overlay is created in the 609markers. If @var{buffer} is omitted, the overlay is created in the
@@ -735,7 +736,7 @@ face.
735 736
736@item 737@item
737With text properties. A character may have a @code{face} property; if so, 738With text properties. A character may have a @code{face} property; if so,
738it's displayed with that face. @xref{Special Properties}. 739it is displayed with that face. @xref{Special Properties}.
739 740
740If the character has a @code{mouse-face} property, that is used instead 741If the character has a @code{mouse-face} property, that is used instead
741of the @code{face} property when the mouse is ``near enough'' to the 742of the @code{face} property when the mouse is ``near enough'' to the
@@ -803,8 +804,8 @@ new frames.
803 804
804@defun set-face-foreground face color &optional frame 805@defun set-face-foreground face color &optional frame
805@defunx set-face-background face color &optional frame 806@defunx set-face-background face color &optional frame
806These functions set the foreground (respectively, background) color of 807These functions set the foreground (or background, respectively) color
807face @var{face} to @var{color}. The argument @var{color} should be a 808of face @var{face} to @var{color}. The argument @var{color} should be a
808string, the name of a color. 809string, the name of a color.
809@end defun 810@end defun
810 811
@@ -821,7 +822,8 @@ Non-@code{nil} means do underline; @code{nil} means don't.
821@defun invert-face face &optional frame 822@defun invert-face face &optional frame
822Swap the foreground and background colors of face @var{face}. If the 823Swap the foreground and background colors of face @var{face}. If the
823face doesn't specify both foreground and background, then its foreground 824face doesn't specify both foreground and background, then its foreground
824and background are set to the default background and foreground. 825and background are set to the default background and foreground,
826respectively.
825@end defun 827@end defun
826 828
827 These functions examine the attributes of a face. If you don't 829 These functions examine the attributes of a face. If you don't
@@ -829,8 +831,8 @@ specify @var{frame}, they refer to the default data for new frames.
829 831
830@defun face-foreground face &optional frame 832@defun face-foreground face &optional frame
831@defunx face-background face &optional frame 833@defunx face-background face &optional frame
832These functions return the foreground (respectively, background) color 834These functions return the foreground color (or background color,
833of face @var{face}, as a string. 835respectively) of face @var{face}, as a string.
834@end defun 836@end defun
835 837
836@defun face-font face &optional frame 838@defun face-font face &optional frame
@@ -970,7 +972,7 @@ Character code 10 is a newline.
970 972
971@item 973@item
972All other codes in the range 0 through 31, and code 127, display in one 974All other codes in the range 0 through 31, and code 127, display in one
973of two ways according to the value of @code{ctl-arrow}. If it is is 975of two ways according to the value of @code{ctl-arrow}. If it is
974non-@code{nil}, these codes map to sequences of two glyphs, where the 976non-@code{nil}, these codes map to sequences of two glyphs, where the
975first glyph is the @sc{ASCII} code for @samp{^}. (A display table can 977first glyph is the @sc{ASCII} code for @samp{^}. (A display table can
976specify a glyph to use instead of @samp{^}.) Otherwise, these codes map 978specify a glyph to use instead of @samp{^}.) Otherwise, these codes map
@@ -1183,10 +1185,10 @@ set, you can arrange to use that character set as follows:
1183@end example 1185@end example
1184 1186
1185If you are editing buffers written in the ISO Latin 1 character set and 1187If you are editing buffers written in the ISO Latin 1 character set and
1186your terminal doesn't handle anything but @sc{ASCII}, you can load the file 1188your terminal doesn't handle anything but @sc{ASCII}, you can load the
1187@file{iso-ascii} to set up a display table which makes the other ISO 1189file @file{iso-ascii} to set up a display table that displays the other
1188characters display as sequences of @sc{ASCII} characters. For example, the 1190ISO characters as explanatory sequences of @sc{ASCII} characters. For
1189character ``o with umlaut'' displays as @samp{@{"o@}}. 1191example, the character ``o with umlaut'' displays as @samp{@{"o@}}.
1190 1192
1191Some European countries have terminals that don't support ISO Latin 1 1193Some European countries have terminals that don't support ISO Latin 1
1192but do support the special characters for that country's language. You 1194but do support the special characters for that country's language. You
diff --git a/lispref/os.texi b/lispref/os.texi
index caa02c94771..e7b7b076e08 100644
--- a/lispref/os.texi
+++ b/lispref/os.texi
@@ -7,7 +7,7 @@
7@chapter Operating System Interface 7@chapter Operating System Interface
8 8
9 This chapter is about starting and getting out of Emacs, access to 9 This chapter is about starting and getting out of Emacs, access to
10values in the operating system environment, and terminal input, output 10values in the operating system environment, and terminal input, output,
11and flow control. 11and flow control.
12 12
13 @xref{Building Emacs}, for related information. See also 13 @xref{Building Emacs}, for related information. See also
@@ -71,15 +71,15 @@ It loads the library @file{site-start}, unless the option
71 71
72@item 72@item
73It loads the file @file{~/.emacs} unless @samp{-q} was specified on 73It loads the file @file{~/.emacs} unless @samp{-q} was specified on
74command line. (This is not done in @samp{-batch} mode.) The @samp{-u} 74the command line. (This is not done in @samp{-batch} mode.) The @samp{-u}
75option can specify the user name whose home directory should be used 75option can specify the user name whose home directory should be used
76instead of @file{~}. 76instead of @file{~}.
77 77
78@item 78@item
79It loads the library @file{default} unless @code{inhibit-default-init} 79It loads the library @file{default} unless @code{inhibit-default-init}
80is non-@code{nil}. (This is not done in @samp{-batch} mode or if 80is non-@code{nil}. (This is not done in @samp{-batch} mode or if
81@samp{-q} was specified on command line.) The library's file name is 81@samp{-q} was specified on the command line.) The library's file name
82usually @file{default.el}. 82is usually @file{default.el}.
83@cindex @file{default.el} 83@cindex @file{default.el}
84 84
85@item 85@item
@@ -113,7 +113,7 @@ specify.
113It runs @code{window-setup-hook}. @xref{Window Systems}. 113It runs @code{window-setup-hook}. @xref{Window Systems}.
114 114
115@item 115@item
116It displays copyleft, nonwarranty and basic use information, provided 116It displays copyleft, nonwarranty, and basic use information, provided
117there were no remaining command line arguments (a few steps above) and 117there were no remaining command line arguments (a few steps above) and
118the value of @code{inhibit-startup-message} is @code{nil}. 118the value of @code{inhibit-startup-message} is @code{nil}.
119@end enumerate 119@end enumerate
@@ -260,7 +260,7 @@ your @file{.emacs} file: @code{(setq term-file-prefix nil)}.
260@end defvar 260@end defvar
261 261
262@defvar term-setup-hook 262@defvar term-setup-hook
263This variable is a normal hook which Emacs runs after loading your 263This variable is a normal hook that Emacs runs after loading your
264@file{.emacs} file, the default initialization file (if any) and the 264@file{.emacs} file, the default initialization file (if any) and the
265terminal-specific Lisp file. 265terminal-specific Lisp file.
266 266
@@ -300,9 +300,9 @@ kill the Emacs until you are about to log out.)
300@end ignore 300@end ignore
301 301
302@defun command-line 302@defun command-line
303This function parses the command line which Emacs was called with, 303This function parses the command line that Emacs was called with,
304processes it, loads the user's @file{.emacs} file and displays the 304processes it, loads the user's @file{.emacs} file and displays the
305initial nonwarranty information, etc. 305startup messages.
306@end defun 306@end defun
307 307
308@defvar command-line-processed 308@defvar command-line-processed
@@ -359,7 +359,7 @@ to Emacs.
359This variable's value is a list of functions for handling an 359This variable's value is a list of functions for handling an
360unrecognized command-line argument. Each time the next argument to be 360unrecognized command-line argument. Each time the next argument to be
361processed has no special meaning, the functions in this list are called, 361processed has no special meaning, the functions in this list are called,
362in the order they appear, until one of them returns a non-@code{nil} 362in order of appearance, until one of them returns a non-@code{nil}
363value. 363value.
364 364
365These functions are called with no arguments. They can access the 365These functions are called with no arguments. They can access the
@@ -470,7 +470,7 @@ normal hook; its value was a single function, and if its value was
470non-@code{nil}, then @code{suspend-emacs} returned immediately without 470non-@code{nil}, then @code{suspend-emacs} returned immediately without
471actually suspending anything. 471actually suspending anything.
472 472
473After the user resumes Emacs, it runs the normal hook 473After the user resumes Emacs, @code{suspend-emacs} runs the normal hook
474@code{suspend-resume-hook}. @xref{Hooks}. 474@code{suspend-resume-hook}. @xref{Hooks}.
475 475
476The next redisplay after resumption will redraw the entire screen, 476The next redisplay after resumption will redraw the entire screen,
@@ -665,11 +665,12 @@ invoked, or perhaps @code{nil} if that directory cannot be determined.
665If non-@code{nil}, this is a directory within which to look for the 665If non-@code{nil}, this is a directory within which to look for the
666@file{lib-src} and @file{etc} subdirectories. This is non-@code{nil} 666@file{lib-src} and @file{etc} subdirectories. This is non-@code{nil}
667when Emacs can't find those directories in their standard installed 667when Emacs can't find those directories in their standard installed
668locations, but can find them near where the Emacs executable was found. 668locations, but can find them in a directory related somehow to the one
669containing the Emacs executable.
669@end defvar 670@end defvar
670 671
671@defun load-average 672@defun load-average
672This function returns the current 1 minute, 5 minute and 15 minute 673This function returns the current 1-minute, 5-minute and 15-minute
673load averages in a list. The values are integers that are 100 times 674load averages in a list. The values are integers that are 100 times
674the system load averages. (The load averages indicate the number of 675the system load averages. (The load averages indicate the number of
675processes trying to run.) 676processes trying to run.)
@@ -793,7 +794,7 @@ integers: @code{(@var{high} @var{low} @var{microsec})}. The integers
793@var{high} * 2**16 + @var{low}. 794@var{high} * 2**16 + @var{low}.
794@end ifinfo 795@end ifinfo
795@tex 796@tex
796$high*-2^{16}+low$. 797$high*2^{16}+low$.
797@end tex 798@end tex
798 799
799The third element, @var{microsec}, gives the microseconds since the 800The third element, @var{microsec}, gives the microseconds since the
@@ -861,7 +862,13 @@ seconds.
861The argument @var{repeat} specifies how often to repeat the call. If 862The argument @var{repeat} specifies how often to repeat the call. If
862@var{repeat} is @code{nil}, there are no repetitions; @var{function} is 863@var{repeat} is @code{nil}, there are no repetitions; @var{function} is
863called just once, at @var{time}. If @var{repeat} is an integer, it 864called just once, at @var{time}. If @var{repeat} is an integer, it
864specifies a repetition period measured in seconds. 865specifies a repetition period measured in seconds. In any case, @var{repeat}
866has no effect on when @emph{first} call takes place---@var{time} specifies
867that.
868
869The function @code{run-at-time} returns a timer value that identifies
870the particular scheduled future action. You can use this value to call
871@code{cancel-timer}.
865@end defun 872@end defun
866 873
867@defun cancel-timer timer 874@defun cancel-timer timer
@@ -897,7 +904,7 @@ This function sets the mode for reading keyboard input. If
897@code{nil}, then it uses @sc{cbreak} mode. 904@code{nil}, then it uses @sc{cbreak} mode.
898 905
899If @var{flow} is non-@code{nil}, then Emacs uses @sc{xon/xoff} (@kbd{C-q}, 906If @var{flow} is non-@code{nil}, then Emacs uses @sc{xon/xoff} (@kbd{C-q},
900@kbd{C-s}) flow control for output to terminal. This has no effect except 907@kbd{C-s}) flow control for output to the terminal. This has no effect except
901in @sc{cbreak} mode. @xref{Flow Control}. 908in @sc{cbreak} mode. @xref{Flow Control}.
902 909
903The default setting is system dependent. Some systems always use 910The default setting is system dependent. Some systems always use
@@ -1039,9 +1046,9 @@ or enlarges the translate table if necessary.
1039@end defun 1046@end defun
1040 1047
1041@defvar function-key-map 1048@defvar function-key-map
1042This variable holds a keymap which describes the character sequences 1049This variable holds a keymap that describes the character sequences
1043sent by function keys on an ordinary character terminal. This keymap 1050sent by function keys on an ordinary character terminal. This keymap
1044uses the data structure as other keymaps, but is used differently: it 1051uses the same data structure as other keymaps, but is used differently: it
1045specifies translations to make while reading events. 1052specifies translations to make while reading events.
1046 1053
1047If @code{function-key-map} ``binds'' a key sequence @var{k} to a vector 1054If @code{function-key-map} ``binds'' a key sequence @var{k} to a vector
@@ -1145,7 +1152,7 @@ from the keyboard or mouse. All input events are included, whether or
1145not they were used as parts of key sequences. Thus, you always get the 1152not they were used as parts of key sequences. Thus, you always get the
1146last 100 inputs, not counting keyboard macros. (Events from keyboard 1153last 100 inputs, not counting keyboard macros. (Events from keyboard
1147macros are excluded because they are less interesting for debugging; it 1154macros are excluded because they are less interesting for debugging; it
1148should be enough to see the events which invoked the macros.) 1155should be enough to see the events that invoked the macros.)
1149@end defun 1156@end defun
1150 1157
1151@deffn Command open-dribble-file filename 1158@deffn Command open-dribble-file filename
@@ -1185,7 +1192,7 @@ This variable's value is the output speed of the terminal, as far as
1185Emacs knows. Setting this variable does not change the speed of actual 1192Emacs knows. Setting this variable does not change the speed of actual
1186data transmission, but the value is used for calculations such as 1193data transmission, but the value is used for calculations such as
1187padding. It also affects decisions about whether to scroll part of the 1194padding. It also affects decisions about whether to scroll part of the
1188screen or repaint---even when using a window system, (We designed it 1195screen or repaint---even when using a window system. (We designed it
1189this way despite the fact that a window system has no true ``output 1196this way despite the fact that a window system has no true ``output
1190speed'', to give you a way to tune these decisions.) 1197speed'', to give you a way to tune these decisions.)
1191 1198
@@ -1336,7 +1343,7 @@ system to handle flow control, with @code{(set-input-mode nil t)}.
1336 1343
1337@item 1344@item
1338It sets up @code{keyboard-translate-table} to translate @kbd{C-\} and 1345It sets up @code{keyboard-translate-table} to translate @kbd{C-\} and
1339@kbd{C-^} into @kbd{C-s} and @kbd{C-q} were typed. Except at its very 1346@kbd{C-^} into @kbd{C-s} and @kbd{C-q}. Except at its very
1340lowest level, Emacs never knows that the characters typed were anything 1347lowest level, Emacs never knows that the characters typed were anything
1341but @kbd{C-s} and @kbd{C-q}, so you can in effect type them as @kbd{C-\} 1348but @kbd{C-s} and @kbd{C-q}, so you can in effect type them as @kbd{C-\}
1342and @kbd{C-^} even when they are input for other commands. 1349and @kbd{C-^} even when they are input for other commands.
diff --git a/lispref/processes.texi b/lispref/processes.texi
index ec0663cac83..2758cd70e8a 100644
--- a/lispref/processes.texi
+++ b/lispref/processes.texi
@@ -492,7 +492,7 @@ were given to the program.
492 492
493@defun process-id process 493@defun process-id process
494This function returns the @sc{pid} of @var{process}. This is an 494This function returns the @sc{pid} of @var{process}. This is an
495integer which distinguishes the process @var{process} from all other 495integer that distinguishes the process @var{process} from all other
496processes running on the same computer at the current time. The 496processes running on the same computer at the current time. The
497@sc{pid} of a process is chosen by the operating system kernel when the 497@sc{pid} of a process is chosen by the operating system kernel when the
498process is started and remains constant as long as the process exists. 498process is started and remains constant as long as the process exists.
@@ -665,7 +665,7 @@ process associated with the current buffer. An error is signaled if
665 The argument @var{current-group} is a flag that makes a difference 665 The argument @var{current-group} is a flag that makes a difference
666when you are running a job-control shell as an Emacs subprocess. If it 666when you are running a job-control shell as an Emacs subprocess. If it
667is non-@code{nil}, then the signal is sent to the current process-group 667is non-@code{nil}, then the signal is sent to the current process-group
668of the terminal which Emacs uses to communicate with the subprocess. If 668of the terminal that Emacs uses to communicate with the subprocess. If
669the process is a job-control shell, this means the shell's current 669the process is a job-control shell, this means the shell's current
670subjob. If it is @code{nil}, the signal is sent to the process group of 670subjob. If it is @code{nil}, the signal is sent to the process group of
671the immediate subprocess of Emacs. If the subprocess is a job-control 671the immediate subprocess of Emacs. If the subprocess is a job-control
@@ -731,7 +731,9 @@ to send; it should be an integer.
731 There are two ways to receive the output that a subprocess writes to 731 There are two ways to receive the output that a subprocess writes to
732its standard output stream. The output can be inserted in a buffer, 732its standard output stream. The output can be inserted in a buffer,
733which is called the associated buffer of the process, or a function 733which is called the associated buffer of the process, or a function
734called the @dfn{filter function} can be called to act on the output. 734called the @dfn{filter function} can be called to act on the output. If
735the process has no buffer and no filter function, its output is
736discarded.
735 737
736@menu 738@menu
737* Process Buffers:: If no filter, output is put in a buffer. 739* Process Buffers:: If no filter, output is put in a buffer.
@@ -753,11 +755,9 @@ be sent to the process, but this is not built into Emacs Lisp.
753 755
754 Unless the process has a filter function (@pxref{Filter Functions}), 756 Unless the process has a filter function (@pxref{Filter Functions}),
755its output is inserted in the associated buffer. The position to insert 757its output is inserted in the associated buffer. The position to insert
756the output is determined by the @code{process-mark} (@pxref{Process 758the output is determined by the @code{process-mark}, which is then
757Information}), which is then updated to point to the end of the text 759updated to point to the end of the text just inserted. Usually, but not
758just inserted. Usually, but not always, the @code{process-mark} is at 760always, the @code{process-mark} is at the end of the buffer.
759the end of the buffer. If the process has no buffer and no filter
760function, its output is discarded.
761 761
762@defun process-buffer process 762@defun process-buffer process
763This function returns the associated buffer of the process 763This function returns the associated buffer of the process
@@ -823,9 +823,9 @@ subprocess with a @code{SIGHUP} signal (@pxref{Signals to Processes}).
823 823
824 A process @dfn{filter function} is a function that receives the 824 A process @dfn{filter function} is a function that receives the
825standard output from the associated process. If a process has a filter, 825standard output from the associated process. If a process has a filter,
826then @emph{all} output from that process, that would otherwise have been 826then @emph{all} output from that process is passed to the filter. The
827in a buffer, is passed to the filter. The process buffer is used 827process buffer is used directly for output from the process only when
828directly for output from the process only when there is no filter. 828there is no filter.
829 829
830 A filter function must accept two arguments: the associated process and 830 A filter function must accept two arguments: the associated process and
831a string, which is the output. The function is then free to do whatever it 831a string, which is the output. The function is then free to do whatever it
@@ -835,9 +835,10 @@ chooses with the output.
835input, or for time to elapse, or for process output). This avoids the 835input, or for time to elapse, or for process output). This avoids the
836timing errors that could result from running filters at random places in 836timing errors that could result from running filters at random places in
837the middle of other Lisp programs. You may explicitly cause Emacs to 837the middle of other Lisp programs. You may explicitly cause Emacs to
838wait, so that filter functions will run, by calling @code{sit-for}, 838wait, so that filter functions will run, by calling @code{sit-for} or
839@code{sleep-for} or @code{accept-process-output} (@pxref{Accepting 839@code{sleep-for} (@pxref{Waiting}), or @code{accept-process-output}
840Output}). Emacs is also waiting when the command loop is reading input. 840(@pxref{Accepting Output}). Emacs is also waiting when the command loop
841is reading input.
841 842
842 Quitting is normally inhibited within a filter function---otherwise, 843 Quitting is normally inhibited within a filter function---otherwise,
843the effect of typing @kbd{C-g} at command level or to quit a user 844the effect of typing @kbd{C-g} at command level or to quit a user
@@ -1037,9 +1038,9 @@ of event.
1037or for time to elapse, or for process output). This avoids the timing 1038or for time to elapse, or for process output). This avoids the timing
1038errors that could result from running them at random places in the 1039errors that could result from running them at random places in the
1039middle of other Lisp programs. A program can wait, so that sentinels 1040middle of other Lisp programs. A program can wait, so that sentinels
1040will run, by calling @code{sit-for}, @code{sleep-for} or 1041will run, by calling @code{sit-for} or @code{sleep-for}
1041@code{accept-process-output} (@pxref{Accepting Output}). Emacs is also 1042(@pxref{Waiting}), or @code{accept-process-output} (@pxref{Accepting
1042waiting when the command loop is reading input. 1043Output}). Emacs is also waiting when the command loop is reading input.
1043 1044
1044 Quitting is normally inhibited within a sentinel---otherwise, the 1045 Quitting is normally inhibited within a sentinel---otherwise, the
1045effect of typing @kbd{C-g} at command level or to quit a user command 1046effect of typing @kbd{C-g} at command level or to quit a user command
@@ -1103,7 +1104,7 @@ you can call @code{tq-enqueue} to send a transaction.
1103This function creates and returns a transaction queue communicating with 1104This function creates and returns a transaction queue communicating with
1104@var{process}. The argument @var{process} should be a subprocess 1105@var{process}. The argument @var{process} should be a subprocess
1105capable of sending and receiving streams of bytes. It may be a child 1106capable of sending and receiving streams of bytes. It may be a child
1106process, or it may be a TCP connection to a server possibly on another 1107process, or it may be a TCP connection to a server, possibly on another
1107machine. 1108machine.
1108@end defun 1109@end defun
1109 1110
@@ -1111,7 +1112,7 @@ machine.
1111This function sends a transaction to queue @var{queue}. Specifying the 1112This function sends a transaction to queue @var{queue}. Specifying the
1112queue has the effect of specifying the subprocess to talk to. 1113queue has the effect of specifying the subprocess to talk to.
1113 1114
1114The argument @var{question} is the outgoing message which starts the 1115The argument @var{question} is the outgoing message that starts the
1115transaction. The argument @var{fn} is the function to call when the 1116transaction. The argument @var{fn} is the function to call when the
1116corresponding answer comes back; it is called with two arguments: 1117corresponding answer comes back; it is called with two arguments:
1117@var{closure}, and the answer received. 1118@var{closure}, and the answer received.