diff options
| author | Richard M. Stallman | 1994-09-22 22:00:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-22 22:00:06 +0000 |
| commit | 78608595650c2428069026304d2d24cdb7d1f838 (patch) | |
| tree | e4fd2ad5204f3f468823ecf1733bd2c7c4f75404 | |
| parent | 59ac2ce681fdd9622d50bc984005554fbce453a8 (diff) | |
| download | emacs-78608595650c2428069026304d2d24cdb7d1f838.tar.gz emacs-78608595650c2428069026304d2d24cdb7d1f838.zip | |
entered into RCS
| -rw-r--r-- | lispref/display.texi | 54 | ||||
| -rw-r--r-- | lispref/os.texi | 47 | ||||
| -rw-r--r-- | lispref/processes.texi | 39 |
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. | |||
| 48 | Some terminal emulators record separate contents for display-oriented | 48 | Some terminal emulators record separate contents for display-oriented |
| 49 | programs such as Emacs and for ordinary sequential display. If you are | 49 | programs such as Emacs and for ordinary sequential display. If you are |
| 50 | using such a terminal, you might want to inhibit the redisplay on | 50 | using such a terminal, you might want to inhibit the redisplay on |
| 51 | resumption. @xref{Suspending Emacs}. | 51 | resumption. |
| 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 |
| 75 | the terminal. When you are using multiple frames, they apply to the | 75 | the terminal. When you are using multiple frames, they apply to the |
| 76 | selected frame (@pxref{Frames}). | 76 | selected frame (@pxref{Frames}). |
| 77 | 77 | ||
| @@ -242,7 +242,7 @@ choice of lines to hide is made automatically based on indentation. | |||
| 242 | This variant is designed as a user-level feature. | 242 | This 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 |
| 245 | newline (control-j) with a carriage return (control-m). The text which | 245 | newline (control-j) with a carriage return (control-m). The text that |
| 246 | was formerly a line following that newline is now invisible. Strictly | 246 | was formerly a line following that newline is now invisible. Strictly |
| 247 | speaking, it is temporarily no longer a line at all, since only newlines | 247 | speaking, it is temporarily no longer a line at all, since only newlines |
| 248 | can separate lines; it is now part of the previous line. | 248 | can 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 | |||
| 350 | about to be executed. | 350 | about to be executed. |
| 351 | 351 | ||
| 352 | @defvar overlay-arrow-string | 352 | @defvar overlay-arrow-string |
| 353 | This variable holds the string to display as an arrow, or @code{nil} if | 353 | This variable holds the string to display to call attention to a |
| 354 | the arrow feature is not in use. | 354 | particular 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 |
| 358 | This variable holds a marker which indicates where to display the arrow. | 358 | This variable holds a marker that indicates where to display the overlay |
| 359 | It should point at the beginning of a line. The arrow text appears at | 359 | arrow. It should point at the beginning of a line. The arrow text |
| 360 | the beginning of that line, overlaying any text that would otherwise | 360 | appears at the beginning of that line, overlaying any text that would |
| 361 | appear. Since the arrow is usually short, and the line usually begins | 361 | otherwise appear. Since the arrow is usually short, and the line |
| 362 | with indentation, normally nothing significant is overwritten. | 362 | usually begins with indentation, normally nothing significant is |
| 363 | 363 | overwritten. | |
| 364 | The overlay string is displayed only in the buffer which this marker | 364 | |
| 365 | The overlay string is displayed only in the buffer that this marker | ||
| 365 | points into. Thus, only one buffer can have an overlay arrow at any | 366 | points into. Thus, only one buffer can have an overlay arrow at any |
| 366 | given time. | 367 | given 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 |
| 422 | If this variable, if non-@code{nil}, @code{with-output-to-temp-buffer} | 423 | If this variable is non-@code{nil}, @code{with-output-to-temp-buffer} |
| 423 | calls it as a function to do the job of displaying a help buffer. The | 424 | calls it as a function to do the job of displaying a help buffer. The |
| 424 | function gets one argument, which is the buffer it should display. | 425 | function 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 | ||
| 485 | You can use @dfn{overlays} to alter the appearance of a buffer's text on | 486 | You can use @dfn{overlays} to alter the appearance of a buffer's text on |
| 486 | the screen. An overlay is an object which belongs to a particular | 487 | the screen. An overlay is an object that belongs to a particular |
| 487 | buffer, and has a specified beginning and end. It also has properties | 488 | buffer, and has a specified beginning and end. It also has properties |
| 488 | that you can examine and set; these affect the display of the text | 489 | that you can examine and set; these affect the display of the text |
| 489 | within the overlay. | 490 | within the overlay. |
| @@ -602,7 +603,7 @@ overlay properties and text properties for a given character. | |||
| 602 | overlays, and to examine their contents. | 603 | overlays, and to examine their contents. |
| 603 | 604 | ||
| 604 | @defun make-overlay start end &optional buffer | 605 | @defun make-overlay start end &optional buffer |
| 605 | This function creates and returns an overlay which belongs to | 606 | This 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} |
| 607 | and @var{end} must specify buffer positions; they may be integers or | 608 | and @var{end} must specify buffer positions; they may be integers or |
| 608 | markers. If @var{buffer} is omitted, the overlay is created in the | 609 | markers. If @var{buffer} is omitted, the overlay is created in the |
| @@ -735,7 +736,7 @@ face. | |||
| 735 | 736 | ||
| 736 | @item | 737 | @item |
| 737 | With text properties. A character may have a @code{face} property; if so, | 738 | With text properties. A character may have a @code{face} property; if so, |
| 738 | it's displayed with that face. @xref{Special Properties}. | 739 | it is displayed with that face. @xref{Special Properties}. |
| 739 | 740 | ||
| 740 | If the character has a @code{mouse-face} property, that is used instead | 741 | If the character has a @code{mouse-face} property, that is used instead |
| 741 | of the @code{face} property when the mouse is ``near enough'' to the | 742 | of 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 |
| 806 | These functions set the foreground (respectively, background) color of | 807 | These functions set the foreground (or background, respectively) color |
| 807 | face @var{face} to @var{color}. The argument @var{color} should be a | 808 | of face @var{face} to @var{color}. The argument @var{color} should be a |
| 808 | string, the name of a color. | 809 | string, 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 |
| 822 | Swap the foreground and background colors of face @var{face}. If the | 823 | Swap the foreground and background colors of face @var{face}. If the |
| 823 | face doesn't specify both foreground and background, then its foreground | 824 | face doesn't specify both foreground and background, then its foreground |
| 824 | and background are set to the default background and foreground. | 825 | and background are set to the default background and foreground, |
| 826 | respectively. | ||
| 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 |
| 832 | These functions return the foreground (respectively, background) color | 834 | These functions return the foreground color (or background color, |
| 833 | of face @var{face}, as a string. | 835 | respectively) 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 |
| 972 | All other codes in the range 0 through 31, and code 127, display in one | 974 | All other codes in the range 0 through 31, and code 127, display in one |
| 973 | of two ways according to the value of @code{ctl-arrow}. If it is is | 975 | of two ways according to the value of @code{ctl-arrow}. If it is |
| 974 | non-@code{nil}, these codes map to sequences of two glyphs, where the | 976 | non-@code{nil}, these codes map to sequences of two glyphs, where the |
| 975 | first glyph is the @sc{ASCII} code for @samp{^}. (A display table can | 977 | first glyph is the @sc{ASCII} code for @samp{^}. (A display table can |
| 976 | specify a glyph to use instead of @samp{^}.) Otherwise, these codes map | 978 | specify 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 | ||
| 1185 | If you are editing buffers written in the ISO Latin 1 character set and | 1187 | If you are editing buffers written in the ISO Latin 1 character set and |
| 1186 | your terminal doesn't handle anything but @sc{ASCII}, you can load the file | 1188 | your 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 | 1189 | file @file{iso-ascii} to set up a display table that displays the other |
| 1188 | characters display as sequences of @sc{ASCII} characters. For example, the | 1190 | ISO characters as explanatory sequences of @sc{ASCII} characters. For |
| 1189 | character ``o with umlaut'' displays as @samp{@{"o@}}. | 1191 | example, the character ``o with umlaut'' displays as @samp{@{"o@}}. |
| 1190 | 1192 | ||
| 1191 | Some European countries have terminals that don't support ISO Latin 1 | 1193 | Some European countries have terminals that don't support ISO Latin 1 |
| 1192 | but do support the special characters for that country's language. You | 1194 | but 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 |
| 10 | values in the operating system environment, and terminal input, output | 10 | values in the operating system environment, and terminal input, output, |
| 11 | and flow control. | 11 | and 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 |
| 73 | It loads the file @file{~/.emacs} unless @samp{-q} was specified on | 73 | It loads the file @file{~/.emacs} unless @samp{-q} was specified on |
| 74 | command line. (This is not done in @samp{-batch} mode.) The @samp{-u} | 74 | the command line. (This is not done in @samp{-batch} mode.) The @samp{-u} |
| 75 | option can specify the user name whose home directory should be used | 75 | option can specify the user name whose home directory should be used |
| 76 | instead of @file{~}. | 76 | instead of @file{~}. |
| 77 | 77 | ||
| 78 | @item | 78 | @item |
| 79 | It loads the library @file{default} unless @code{inhibit-default-init} | 79 | It loads the library @file{default} unless @code{inhibit-default-init} |
| 80 | is non-@code{nil}. (This is not done in @samp{-batch} mode or if | 80 | is 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 |
| 82 | usually @file{default.el}. | 82 | is 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. | |||
| 113 | It runs @code{window-setup-hook}. @xref{Window Systems}. | 113 | It runs @code{window-setup-hook}. @xref{Window Systems}. |
| 114 | 114 | ||
| 115 | @item | 115 | @item |
| 116 | It displays copyleft, nonwarranty and basic use information, provided | 116 | It displays copyleft, nonwarranty, and basic use information, provided |
| 117 | there were no remaining command line arguments (a few steps above) and | 117 | there were no remaining command line arguments (a few steps above) and |
| 118 | the value of @code{inhibit-startup-message} is @code{nil}. | 118 | the 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 |
| 263 | This variable is a normal hook which Emacs runs after loading your | 263 | This 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 |
| 265 | terminal-specific Lisp file. | 265 | terminal-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 |
| 303 | This function parses the command line which Emacs was called with, | 303 | This function parses the command line that Emacs was called with, |
| 304 | processes it, loads the user's @file{.emacs} file and displays the | 304 | processes it, loads the user's @file{.emacs} file and displays the |
| 305 | initial nonwarranty information, etc. | 305 | startup 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. | |||
| 359 | This variable's value is a list of functions for handling an | 359 | This variable's value is a list of functions for handling an |
| 360 | unrecognized command-line argument. Each time the next argument to be | 360 | unrecognized command-line argument. Each time the next argument to be |
| 361 | processed has no special meaning, the functions in this list are called, | 361 | processed has no special meaning, the functions in this list are called, |
| 362 | in the order they appear, until one of them returns a non-@code{nil} | 362 | in order of appearance, until one of them returns a non-@code{nil} |
| 363 | value. | 363 | value. |
| 364 | 364 | ||
| 365 | These functions are called with no arguments. They can access the | 365 | These 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 | |||
| 470 | non-@code{nil}, then @code{suspend-emacs} returned immediately without | 470 | non-@code{nil}, then @code{suspend-emacs} returned immediately without |
| 471 | actually suspending anything. | 471 | actually suspending anything. |
| 472 | 472 | ||
| 473 | After the user resumes Emacs, it runs the normal hook | 473 | After 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 | ||
| 476 | The next redisplay after resumption will redraw the entire screen, | 476 | The next redisplay after resumption will redraw the entire screen, |
| @@ -665,11 +665,12 @@ invoked, or perhaps @code{nil} if that directory cannot be determined. | |||
| 665 | If non-@code{nil}, this is a directory within which to look for the | 665 | If 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} |
| 667 | when Emacs can't find those directories in their standard installed | 667 | when Emacs can't find those directories in their standard installed |
| 668 | locations, but can find them near where the Emacs executable was found. | 668 | locations, but can find them in a directory related somehow to the one |
| 669 | containing the Emacs executable. | ||
| 669 | @end defvar | 670 | @end defvar |
| 670 | 671 | ||
| 671 | @defun load-average | 672 | @defun load-average |
| 672 | This function returns the current 1 minute, 5 minute and 15 minute | 673 | This function returns the current 1-minute, 5-minute and 15-minute |
| 673 | load averages in a list. The values are integers that are 100 times | 674 | load averages in a list. The values are integers that are 100 times |
| 674 | the system load averages. (The load averages indicate the number of | 675 | the system load averages. (The load averages indicate the number of |
| 675 | processes trying to run.) | 676 | processes 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 | ||
| 799 | The third element, @var{microsec}, gives the microseconds since the | 800 | The third element, @var{microsec}, gives the microseconds since the |
| @@ -861,7 +862,13 @@ seconds. | |||
| 861 | The argument @var{repeat} specifies how often to repeat the call. If | 862 | The 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 |
| 863 | called just once, at @var{time}. If @var{repeat} is an integer, it | 864 | called just once, at @var{time}. If @var{repeat} is an integer, it |
| 864 | specifies a repetition period measured in seconds. | 865 | specifies a repetition period measured in seconds. In any case, @var{repeat} |
| 866 | has no effect on when @emph{first} call takes place---@var{time} specifies | ||
| 867 | that. | ||
| 868 | |||
| 869 | The function @code{run-at-time} returns a timer value that identifies | ||
| 870 | the 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 | ||
| 899 | If @var{flow} is non-@code{nil}, then Emacs uses @sc{xon/xoff} (@kbd{C-q}, | 906 | If @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 |
| 901 | in @sc{cbreak} mode. @xref{Flow Control}. | 908 | in @sc{cbreak} mode. @xref{Flow Control}. |
| 902 | 909 | ||
| 903 | The default setting is system dependent. Some systems always use | 910 | The 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 |
| 1042 | This variable holds a keymap which describes the character sequences | 1049 | This variable holds a keymap that describes the character sequences |
| 1043 | sent by function keys on an ordinary character terminal. This keymap | 1050 | sent by function keys on an ordinary character terminal. This keymap |
| 1044 | uses the data structure as other keymaps, but is used differently: it | 1051 | uses the same data structure as other keymaps, but is used differently: it |
| 1045 | specifies translations to make while reading events. | 1052 | specifies translations to make while reading events. |
| 1046 | 1053 | ||
| 1047 | If @code{function-key-map} ``binds'' a key sequence @var{k} to a vector | 1054 | If @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 | |||
| 1145 | not they were used as parts of key sequences. Thus, you always get the | 1152 | not they were used as parts of key sequences. Thus, you always get the |
| 1146 | last 100 inputs, not counting keyboard macros. (Events from keyboard | 1153 | last 100 inputs, not counting keyboard macros. (Events from keyboard |
| 1147 | macros are excluded because they are less interesting for debugging; it | 1154 | macros are excluded because they are less interesting for debugging; it |
| 1148 | should be enough to see the events which invoked the macros.) | 1155 | should 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 | |||
| 1185 | Emacs knows. Setting this variable does not change the speed of actual | 1192 | Emacs knows. Setting this variable does not change the speed of actual |
| 1186 | data transmission, but the value is used for calculations such as | 1193 | data transmission, but the value is used for calculations such as |
| 1187 | padding. It also affects decisions about whether to scroll part of the | 1194 | padding. It also affects decisions about whether to scroll part of the |
| 1188 | screen or repaint---even when using a window system, (We designed it | 1195 | screen or repaint---even when using a window system. (We designed it |
| 1189 | this way despite the fact that a window system has no true ``output | 1196 | this way despite the fact that a window system has no true ``output |
| 1190 | speed'', to give you a way to tune these decisions.) | 1197 | speed'', 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 |
| 1338 | It sets up @code{keyboard-translate-table} to translate @kbd{C-\} and | 1345 | It 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 |
| 1340 | lowest level, Emacs never knows that the characters typed were anything | 1347 | lowest level, Emacs never knows that the characters typed were anything |
| 1341 | but @kbd{C-s} and @kbd{C-q}, so you can in effect type them as @kbd{C-\} | 1348 | but @kbd{C-s} and @kbd{C-q}, so you can in effect type them as @kbd{C-\} |
| 1342 | and @kbd{C-^} even when they are input for other commands. | 1349 | and @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 |
| 494 | This function returns the @sc{pid} of @var{process}. This is an | 494 | This function returns the @sc{pid} of @var{process}. This is an |
| 495 | integer which distinguishes the process @var{process} from all other | 495 | integer that distinguishes the process @var{process} from all other |
| 496 | processes running on the same computer at the current time. The | 496 | processes 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 |
| 498 | process is started and remains constant as long as the process exists. | 498 | process 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 |
| 666 | when you are running a job-control shell as an Emacs subprocess. If it | 666 | when you are running a job-control shell as an Emacs subprocess. If it |
| 667 | is non-@code{nil}, then the signal is sent to the current process-group | 667 | is non-@code{nil}, then the signal is sent to the current process-group |
| 668 | of the terminal which Emacs uses to communicate with the subprocess. If | 668 | of the terminal that Emacs uses to communicate with the subprocess. If |
| 669 | the process is a job-control shell, this means the shell's current | 669 | the process is a job-control shell, this means the shell's current |
| 670 | subjob. If it is @code{nil}, the signal is sent to the process group of | 670 | subjob. If it is @code{nil}, the signal is sent to the process group of |
| 671 | the immediate subprocess of Emacs. If the subprocess is a job-control | 671 | the 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 |
| 732 | its standard output stream. The output can be inserted in a buffer, | 732 | its standard output stream. The output can be inserted in a buffer, |
| 733 | which is called the associated buffer of the process, or a function | 733 | which is called the associated buffer of the process, or a function |
| 734 | called the @dfn{filter function} can be called to act on the output. | 734 | called the @dfn{filter function} can be called to act on the output. If |
| 735 | the process has no buffer and no filter function, its output is | ||
| 736 | discarded. | ||
| 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}), |
| 755 | its output is inserted in the associated buffer. The position to insert | 757 | its output is inserted in the associated buffer. The position to insert |
| 756 | the output is determined by the @code{process-mark} (@pxref{Process | 758 | the output is determined by the @code{process-mark}, which is then |
| 757 | Information}), which is then updated to point to the end of the text | 759 | updated to point to the end of the text just inserted. Usually, but not |
| 758 | just inserted. Usually, but not always, the @code{process-mark} is at | 760 | always, the @code{process-mark} is at the end of the buffer. |
| 759 | the end of the buffer. If the process has no buffer and no filter | ||
| 760 | function, its output is discarded. | ||
| 761 | 761 | ||
| 762 | @defun process-buffer process | 762 | @defun process-buffer process |
| 763 | This function returns the associated buffer of the process | 763 | This 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 |
| 825 | standard output from the associated process. If a process has a filter, | 825 | standard output from the associated process. If a process has a filter, |
| 826 | then @emph{all} output from that process, that would otherwise have been | 826 | then @emph{all} output from that process is passed to the filter. The |
| 827 | in a buffer, is passed to the filter. The process buffer is used | 827 | process buffer is used directly for output from the process only when |
| 828 | directly for output from the process only when there is no filter. | 828 | there 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 |
| 831 | a string, which is the output. The function is then free to do whatever it | 831 | a string, which is the output. The function is then free to do whatever it |
| @@ -835,9 +835,10 @@ chooses with the output. | |||
| 835 | input, or for time to elapse, or for process output). This avoids the | 835 | input, or for time to elapse, or for process output). This avoids the |
| 836 | timing errors that could result from running filters at random places in | 836 | timing errors that could result from running filters at random places in |
| 837 | the middle of other Lisp programs. You may explicitly cause Emacs to | 837 | the middle of other Lisp programs. You may explicitly cause Emacs to |
| 838 | wait, so that filter functions will run, by calling @code{sit-for}, | 838 | wait, 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} |
| 840 | Output}). Emacs is also waiting when the command loop is reading input. | 840 | (@pxref{Accepting Output}). Emacs is also waiting when the command loop |
| 841 | is reading input. | ||
| 841 | 842 | ||
| 842 | Quitting is normally inhibited within a filter function---otherwise, | 843 | Quitting is normally inhibited within a filter function---otherwise, |
| 843 | the effect of typing @kbd{C-g} at command level or to quit a user | 844 | the effect of typing @kbd{C-g} at command level or to quit a user |
| @@ -1037,9 +1038,9 @@ of event. | |||
| 1037 | or for time to elapse, or for process output). This avoids the timing | 1038 | or for time to elapse, or for process output). This avoids the timing |
| 1038 | errors that could result from running them at random places in the | 1039 | errors that could result from running them at random places in the |
| 1039 | middle of other Lisp programs. A program can wait, so that sentinels | 1040 | middle of other Lisp programs. A program can wait, so that sentinels |
| 1040 | will run, by calling @code{sit-for}, @code{sleep-for} or | 1041 | will 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 |
| 1042 | waiting when the command loop is reading input. | 1043 | Output}). 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 |
| 1045 | effect of typing @kbd{C-g} at command level or to quit a user command | 1046 | effect 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. | |||
| 1103 | This function creates and returns a transaction queue communicating with | 1104 | This 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 |
| 1105 | capable of sending and receiving streams of bytes. It may be a child | 1106 | capable of sending and receiving streams of bytes. It may be a child |
| 1106 | process, or it may be a TCP connection to a server possibly on another | 1107 | process, or it may be a TCP connection to a server, possibly on another |
| 1107 | machine. | 1108 | machine. |
| 1108 | @end defun | 1109 | @end defun |
| 1109 | 1110 | ||
| @@ -1111,7 +1112,7 @@ machine. | |||
| 1111 | This function sends a transaction to queue @var{queue}. Specifying the | 1112 | This function sends a transaction to queue @var{queue}. Specifying the |
| 1112 | queue has the effect of specifying the subprocess to talk to. | 1113 | queue has the effect of specifying the subprocess to talk to. |
| 1113 | 1114 | ||
| 1114 | The argument @var{question} is the outgoing message which starts the | 1115 | The argument @var{question} is the outgoing message that starts the |
| 1115 | transaction. The argument @var{fn} is the function to call when the | 1116 | transaction. The argument @var{fn} is the function to call when the |
| 1116 | corresponding answer comes back; it is called with two arguments: | 1117 | corresponding answer comes back; it is called with two arguments: |
| 1117 | @var{closure}, and the answer received. | 1118 | @var{closure}, and the answer received. |