aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorGlenn Morris2018-10-31 07:50:57 -0700
committerGlenn Morris2018-10-31 07:50:57 -0700
commit3a739236d061cf44dcba77f163e6087be4fd09fa (patch)
tree37ba2826d46d4157de3b6b7cd2c03264e3467641 /doc/lispref
parent5fec8294a7eb50a4ada26519cd578006b8d16b35 (diff)
parenteb903d8f20ab0c31daa27a08b0acfd30115c7b5e (diff)
downloademacs-3a739236d061cf44dcba77f163e6087be4fd09fa.tar.gz
emacs-3a739236d061cf44dcba77f163e6087be4fd09fa.zip
Merge from origin/emacs-26
eb903d8 * lisp/emacs-lisp/pcase.el: Improve docstrings. 86abbb3 * lisp/emacs-lisp/rx.el (rx): Fix typo in doc string. (Bug#3... ced58d3 Improve doc string of 'call-process' 38f88a7 Document that generic functions cannot be commands 5aeddfa * lisp/mail/rmailsum.el (rmail-summary-output): Add lost word... 10e0fd8 Add index entries for more isearch commands/bindings (Bug#32990) de28184 * lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#... d192c16 Fix recent change in lispref/processes.texi.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/commands.texi3
-rw-r--r--doc/lispref/functions.texi7
-rw-r--r--doc/lispref/processes.texi14
3 files changed, 17 insertions, 7 deletions
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi
index 49c839a8971..427379bc79c 100644
--- a/doc/lispref/commands.texi
+++ b/doc/lispref/commands.texi
@@ -136,6 +136,9 @@ start with a capital, e.g., @code{"use (system-name) instead."}); @code{t}; any
136other symbol, which should be an alternative function to use in Lisp 136other symbol, which should be an alternative function to use in Lisp
137code. 137code.
138 138
139Generic functions (@pxref{Generic Functions}) cannot be turned into
140commands by adding the @code{interactive} form to them.
141
139@menu 142@menu
140* Using Interactive:: General rules for @code{interactive}. 143* Using Interactive:: General rules for @code{interactive}.
141* Interactive Codes:: The standard letter-codes for reading arguments 144* Interactive Codes:: The standard letter-codes for reading arguments
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index 3be52d8e624..69e9919f708 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -1350,6 +1350,13 @@ to invoke the other auxiliary or primary methods.
1350This allows you to add more methods, distinguished by @var{string}, 1350This allows you to add more methods, distinguished by @var{string},
1351for the same specializers and qualifiers. 1351for the same specializers and qualifiers.
1352@end table 1352@end table
1353
1354Functions defined using @code{cl-defmethod} cannot be made
1355interactive, i.e.@: commands (@pxref{Defining Commands}), by adding
1356the @code{interactive} form to them. If you need a polymorphic
1357command, we recommend defining a normal command that calls a
1358polymorphic function defined via @code{cl-defgeneric} and
1359@code{cl-defmethod}.
1353@end defmac 1360@end defmac
1354 1361
1355@cindex dispatch of methods for generic function 1362@cindex dispatch of methods for generic function
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 2afc6a33828..d88c7fbe622 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -609,13 +609,13 @@ Shell mode, because they allow for job control (@kbd{C-c}, @kbd{C-z},
609etc.)@: between the process and its children, and because interactive 609etc.)@: between the process and its children, and because interactive
610programs treat ptys as terminal devices, whereas pipes don't support 610programs treat ptys as terminal devices, whereas pipes don't support
611these features. However, for subprocesses used by Lisp programs for 611these features. However, for subprocesses used by Lisp programs for
612internal purposes (i.e., with no user interaction), where significant 612internal purposes (i.e., no user interaction with the subprocess is
613amounts of data need to be exchanged between the subprocess and the 613required), where significant amounts of data need to be exchanged
614Lisp program, it is often better to use a pipe, because pipes are 614between the subprocess and the Lisp program, it is often better to use
615more efficient, and because they are immune to stray character 615a pipe, because pipes are more efficient, and because they are immune
616injections that ptys introduce for large (around 500 byte) messages. 616to stray character injections that ptys introduce for large (around
617Also, the total number of ptys is limited on many systems, and it is 617500 byte) messages. Also, the total number of ptys is limited on many
618good not to waste them unnecessarily. 618systems, and it is good not to waste them unnecessarily.
619 619
620@defun make-process &rest args 620@defun make-process &rest args
621This function is the basic low-level primitive for starting 621This function is the basic low-level primitive for starting