summaryrefslogtreecommitdiff
path: root/doc/lispref/processes.texi
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-07-27 14:18:27 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-07-27 14:18:27 +0200
commit0154e83a38071fafd7b32f2c3b5e92d850a617e4 (patch)
treebf223af9cf86650a609298600892116bd0b33ba9 /doc/lispref/processes.texi
parentd4fce7394345233026e6b427d90e0debe6c3e89e (diff)
downloademacs-0154e83a38071fafd7b32f2c3b5e92d850a617e4.tar.gz
Allow serial-term to take an optional argument for line-mode
* lisp/term.el (serial-term): Allow taking an optional argument to avoid term-raw-mode (bug#24922). * doc/lispref/processes.texi (Serial Ports): Document it.
Diffstat (limited to 'doc/lispref/processes.texi')
-rw-r--r--doc/lispref/processes.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index ebc31c597e6..7a696f7c3ea 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -3038,7 +3038,7 @@ for a process object representing a serial port connection.
Serial ports are available on GNU/Linux, Unix, and MS Windows systems.
-@deffn Command serial-term port speed
+@deffn Command serial-term port speed &optional line-mode
Start a terminal-emulator for a serial port in a new buffer.
@var{port} is the name of the serial port to connect to. For
example, this could be @file{/dev/ttyS0} on Unix. On MS Windows, this
@@ -3051,6 +3051,8 @@ Lisp strings).
is a common value. The buffer is in Term mode; see @ref{Term Mode,,,
emacs, The GNU Emacs Manual}, for the commands to use in that buffer.
You can change the speed and the configuration in the mode line menu.
+If @var{line-mode} is non-@code{nil}, @code{term-line-mode} is used;
+otherwise @code{term-raw-mode} is used.
@end deffn
@defun make-serial-process &rest args