diff options
| author | Glenn Morris | 2018-06-23 07:50:59 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-06-23 07:50:59 -0700 |
| commit | b81e193ac0c4644d041a4eb4fa4cb62cf9446bd6 (patch) | |
| tree | 837db70e4aff8fce66886b0cfbe82dbccdea4b06 /doc | |
| parent | 4df361557c3f1b4039fa59d23cd1ed66c2ca5b1c (diff) | |
| parent | 5cb3991a4f78b39a2c95b22a5159ae3ba779397e (diff) | |
| download | emacs-b81e193ac0c4644d041a4eb4fa4cb62cf9446bd6.tar.gz emacs-b81e193ac0c4644d041a4eb4fa4cb62cf9446bd6.zip | |
Merge from origin/emacs-26
5cb3991 Fix a typo in emacs-lisp-intro.texi
d6aa55e Avoid segfaults in replace-buffer-contents with large buffers
d22b8d1 Adjust for scaling for mode-line popup menus (Bug#31880)
3d2e3dc Change name of `seqp' argument (Bug#26411)
40e1db8 Change index of ";" to better reflect it's usage (Bug#31623)
d289e7e Fix bug of 'mouse-drag-and-drop-region' to detect edges of re...
e292c09 Fix #'fun handling inside `labels' (Bug#31792)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/objects.texi | 18 | ||||
| -rw-r--r-- | doc/lispref/sequences.texi | 4 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 23 |
4 files changed, 22 insertions, 25 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index d48f51204cb..a8e9fb13ce7 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -10049,7 +10049,7 @@ kill-ring kill-ring-yank-pointer | |||
| 10049 | | | | | 10049 | | | | |
| 10050 | | | --> "yet more text" | 10050 | | | --> "yet more text" |
| 10051 | | | | 10051 | | | |
| 10052 | | --> "a different piece of text | 10052 | | --> "a different piece of text" |
| 10053 | | | 10053 | | |
| 10054 | --> "some text" | 10054 | --> "some text" |
| 10055 | @end group | 10055 | @end group |
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index 1253e46297f..b94de80b658 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi | |||
| @@ -109,15 +109,15 @@ not be evaluated later. @xref{Input Functions}, for a description of | |||
| 109 | @node Comments | 109 | @node Comments |
| 110 | @section Comments | 110 | @section Comments |
| 111 | @cindex comments | 111 | @cindex comments |
| 112 | @cindex @samp{;} in comment | 112 | @cindex @samp{;} for commenting |
| 113 | 113 | ||
| 114 | A @dfn{comment} is text that is written in a program only for the sake | 114 | A @dfn{comment} is text that is written in a program only for the |
| 115 | of humans that read the program, and that has no effect on the meaning | 115 | sake of humans that read the program, and that has no effect on the |
| 116 | of the program. In Lisp, a semicolon (@samp{;}) starts a comment if it | 116 | meaning of the program. In Lisp, an unescaped semicolon (@samp{;}) |
| 117 | is not within a string or character constant. The comment continues to | 117 | starts a comment if it is not within a string or character constant. |
| 118 | the end of line. The Lisp reader discards comments; they do not become | 118 | The comment continues to the end of line. The Lisp reader discards |
| 119 | part of the Lisp objects which represent the program within the Lisp | 119 | comments; they do not become part of the Lisp objects which represent |
| 120 | system. | 120 | the program within the Lisp system. |
| 121 | 121 | ||
| 122 | The @samp{#@@@var{count}} construct, which skips the next @var{count} | 122 | The @samp{#@@@var{count}} construct, which skips the next @var{count} |
| 123 | characters, is useful for program-generated comments containing binary | 123 | characters, is useful for program-generated comments containing binary |
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index ffec6f37df7..566ba8de18f 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -474,8 +474,8 @@ built-in sequence types, @code{seq-length} behaves like @code{length}. | |||
| 474 | @xref{Definition of length}. | 474 | @xref{Definition of length}. |
| 475 | @end defun | 475 | @end defun |
| 476 | 476 | ||
| 477 | @defun seqp sequence | 477 | @defun seqp object |
| 478 | This function returns non-@code{nil} if @var{sequence} is a sequence | 478 | This function returns non-@code{nil} if @var{object} is a sequence |
| 479 | (a list or array), or any additional type of sequence defined via | 479 | (a list or array), or any additional type of sequence defined via |
| 480 | @file{seq.el} generic functions. | 480 | @file{seq.el} generic functions. |
| 481 | 481 | ||
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 5ae0faf2554..77105d3364e 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -1299,17 +1299,18 @@ These forms make @code{let}-like bindings to functions instead | |||
| 1299 | of variables. | 1299 | of variables. |
| 1300 | 1300 | ||
| 1301 | @defmac cl-flet (bindings@dots{}) forms@dots{} | 1301 | @defmac cl-flet (bindings@dots{}) forms@dots{} |
| 1302 | This form establishes @code{let}-style bindings on the function | 1302 | This form establishes @code{let}-style bindings for functions rather |
| 1303 | cells of symbols rather than on the value cells. Each @var{binding} | 1303 | than values. Each @var{binding} must be a list of the form |
| 1304 | must be a list of the form @samp{(@var{name} @var{arglist} | 1304 | @samp{(@var{name} @var{arglist} @var{body}@dots{})}. Within |
| 1305 | @var{forms}@dots{})}, which defines a function exactly as if | 1305 | @var{forms}, any reference to the function @var{name} uses the local |
| 1306 | it were a @code{cl-defun} form. The function @var{name} is defined | 1306 | definition instead of the global one. |
| 1307 | accordingly but only within the body of the @code{cl-flet}, hiding any external | 1307 | |
| 1308 | definition if applicable. | 1308 | A ``reference'' to a function name is either a call to that function, |
| 1309 | or a use of its name quoted by @code{function} to be passed on to, | ||
| 1310 | say, @code{mapcar}. | ||
| 1309 | 1311 | ||
| 1310 | The bindings are lexical in scope. This means that all references to | 1312 | The bindings are lexical in scope. This means that all references to |
| 1311 | the named functions must appear physically within the body of the | 1313 | the named functions must appear physically within @var{forms}. |
| 1312 | @code{cl-flet} form. | ||
| 1313 | 1314 | ||
| 1314 | Functions defined by @code{cl-flet} may use the full Common Lisp | 1315 | Functions defined by @code{cl-flet} may use the full Common Lisp |
| 1315 | argument notation supported by @code{cl-defun}; also, the function | 1316 | argument notation supported by @code{cl-defun}; also, the function |
| @@ -1336,10 +1337,6 @@ functions must appear physically within the body of the | |||
| 1336 | the functions themselves. Thus, @code{cl-labels} can define | 1337 | the functions themselves. Thus, @code{cl-labels} can define |
| 1337 | local recursive functions, or mutually-recursive sets of functions. | 1338 | local recursive functions, or mutually-recursive sets of functions. |
| 1338 | 1339 | ||
| 1339 | A ``reference'' to a function name is either a call to that | ||
| 1340 | function, or a use of its name quoted by @code{quote} or | ||
| 1341 | @code{function} to be passed on to, say, @code{mapcar}. | ||
| 1342 | |||
| 1343 | Note that the @file{cl.el} version of this macro behaves slightly | 1340 | Note that the @file{cl.el} version of this macro behaves slightly |
| 1344 | differently. @xref{Obsolete Macros}. | 1341 | differently. @xref{Obsolete Macros}. |
| 1345 | @end defmac | 1342 | @end defmac |