diff options
| author | Glenn Morris | 2018-10-31 07:50:57 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-10-31 07:50:57 -0700 |
| commit | 3a739236d061cf44dcba77f163e6087be4fd09fa (patch) | |
| tree | 37ba2826d46d4157de3b6b7cd2c03264e3467641 /doc/lispref | |
| parent | 5fec8294a7eb50a4ada26519cd578006b8d16b35 (diff) | |
| parent | eb903d8f20ab0c31daa27a08b0acfd30115c7b5e (diff) | |
| download | emacs-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.texi | 3 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 7 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 14 |
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 | |||
| 136 | other symbol, which should be an alternative function to use in Lisp | 136 | other symbol, which should be an alternative function to use in Lisp |
| 137 | code. | 137 | code. |
| 138 | 138 | ||
| 139 | Generic functions (@pxref{Generic Functions}) cannot be turned into | ||
| 140 | commands 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. | |||
| 1350 | This allows you to add more methods, distinguished by @var{string}, | 1350 | This allows you to add more methods, distinguished by @var{string}, |
| 1351 | for the same specializers and qualifiers. | 1351 | for the same specializers and qualifiers. |
| 1352 | @end table | 1352 | @end table |
| 1353 | |||
| 1354 | Functions defined using @code{cl-defmethod} cannot be made | ||
| 1355 | interactive, i.e.@: commands (@pxref{Defining Commands}), by adding | ||
| 1356 | the @code{interactive} form to them. If you need a polymorphic | ||
| 1357 | command, we recommend defining a normal command that calls a | ||
| 1358 | polymorphic 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}, | |||
| 609 | etc.)@: between the process and its children, and because interactive | 609 | etc.)@: between the process and its children, and because interactive |
| 610 | programs treat ptys as terminal devices, whereas pipes don't support | 610 | programs treat ptys as terminal devices, whereas pipes don't support |
| 611 | these features. However, for subprocesses used by Lisp programs for | 611 | these features. However, for subprocesses used by Lisp programs for |
| 612 | internal purposes (i.e., with no user interaction), where significant | 612 | internal purposes (i.e., no user interaction with the subprocess is |
| 613 | amounts of data need to be exchanged between the subprocess and the | 613 | required), where significant amounts of data need to be exchanged |
| 614 | Lisp program, it is often better to use a pipe, because pipes are | 614 | between the subprocess and the Lisp program, it is often better to use |
| 615 | more efficient, and because they are immune to stray character | 615 | a pipe, because pipes are more efficient, and because they are immune |
| 616 | injections that ptys introduce for large (around 500 byte) messages. | 616 | to stray character injections that ptys introduce for large (around |
| 617 | Also, the total number of ptys is limited on many systems, and it is | 617 | 500 byte) messages. Also, the total number of ptys is limited on many |
| 618 | good not to waste them unnecessarily. | 618 | systems, and it is good not to waste them unnecessarily. |
| 619 | 619 | ||
| 620 | @defun make-process &rest args | 620 | @defun make-process &rest args |
| 621 | This function is the basic low-level primitive for starting | 621 | This function is the basic low-level primitive for starting |