diff options
| author | Eli Zaretskii | 2017-08-18 09:33:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-08-18 09:33:11 +0300 |
| commit | bc5fba7aae4beb56d983e057cfc968856ffe53ae (patch) | |
| tree | de5b9a092c9823ad9ddb36584192b5142ba120e5 | |
| parent | 7ab95461f7aa7e3d19eed99d6410dc25778a8f1b (diff) | |
| download | emacs-bc5fba7aae4beb56d983e057cfc968856ffe53ae.tar.gz emacs-bc5fba7aae4beb56d983e057cfc968856ffe53ae.zip | |
; Minor copyedits in manuals.
* doc/lispref/variables.texi (Lexical Binding): The future is here.
* doc/emacs/files.texi (Copying and Naming): Use @w{..} around
constructs that could be split between lines, but shouldn't.
| -rw-r--r-- | doc/emacs/files.texi | 12 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 6 |
2 files changed, 11 insertions, 7 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 04d2fc1c999..9195bc47efe 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -1556,10 +1556,14 @@ not accept wildcard file names. | |||
| 1556 | 1556 | ||
| 1557 | In all these commands, if the argument @var{new} is just a directory | 1557 | In all these commands, if the argument @var{new} is just a directory |
| 1558 | name, the real new name is in that directory, with the same | 1558 | name, the real new name is in that directory, with the same |
| 1559 | non-directory component as @var{old}. For example, | 1559 | non-directory component as @var{old}. For example, the command |
| 1560 | @c FIXME: '/tmp' should be '/tmp/' because '/tmp' | 1560 | @c FIXME: '/tmp' should be '/tmp/' because '/tmp' |
| 1561 | @c is not "just a directory name". | 1561 | @c is not "just a directory name". |
| 1562 | @kbd{M-x rename-file @key{RET} ~/foo @key{RET} /tmp @key{RET}} | 1562 | @c And actually the fact that ``directory name'' must end in a slash |
| 1563 | @c is not explained anywhere in this manual. Moreover, it many times | ||
| 1564 | @c uses ``directory name'' in contexts where the string it alludes to | ||
| 1565 | @c will clearly _not_ end in a slash | ||
| 1566 | @w{@kbd{M-x rename-file @key{RET} ~/foo @key{RET} /tmp @key{RET}}} | ||
| 1563 | renames @file{~/foo} to @file{/tmp/foo}. All these | 1567 | renames @file{~/foo} to @file{/tmp/foo}. All these |
| 1564 | commands ask for confirmation when the new file name already exists, | 1568 | commands ask for confirmation when the new file name already exists, |
| 1565 | too. | 1569 | too. |
| @@ -1586,8 +1590,8 @@ different file systems, the file @var{old} is copied and deleted. | |||
| 1586 | 1590 | ||
| 1587 | @ifnottex | 1591 | @ifnottex |
| 1588 | If a file is under version control (@pxref{Version Control}), you | 1592 | If a file is under version control (@pxref{Version Control}), you |
| 1589 | should rename it using @kbd{M-x vc-rename-file} instead of @kbd{M-x | 1593 | should rename it using @w{@kbd{M-x vc-rename-file}} instead of |
| 1590 | rename-file}. @xref{VC Delete/Rename}. | 1594 | @w{@kbd{M-x rename-file}}. @xref{VC Delete/Rename}. |
| 1591 | @end ifnottex | 1595 | @end ifnottex |
| 1592 | 1596 | ||
| 1593 | @findex add-name-to-file | 1597 | @findex add-name-to-file |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 7650ed4e3d8..50739e6b5f1 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1017,11 +1017,11 @@ variables like @code{case-fold-search}: | |||
| 1017 | @subsection Lexical Binding | 1017 | @subsection Lexical Binding |
| 1018 | 1018 | ||
| 1019 | Lexical binding was introduced to Emacs, as an optional feature, in | 1019 | Lexical binding was introduced to Emacs, as an optional feature, in |
| 1020 | version 24.1. We expect its importance to increase in the future. | 1020 | version 24.1. We expect its importance to increase with time. |
| 1021 | Lexical binding opens up many more opportunities for optimization, so | 1021 | Lexical binding opens up many more opportunities for optimization, so |
| 1022 | programs using it are likely to run faster in future Emacs versions. | 1022 | programs using it are likely to run faster in future Emacs versions. |
| 1023 | Lexical binding is also more compatible with concurrency, which we | 1023 | Lexical binding is also more compatible with concurrency, which was |
| 1024 | want to add to Emacs in the future. | 1024 | added to Emacs in version 26.1. |
| 1025 | 1025 | ||
| 1026 | A lexically-bound variable has @dfn{lexical scope}, meaning that any | 1026 | A lexically-bound variable has @dfn{lexical scope}, meaning that any |
| 1027 | reference to the variable must be located textually within the binding | 1027 | reference to the variable must be located textually within the binding |