diff options
| author | Basil L. Contovounesios | 2021-10-05 15:31:17 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2021-10-05 15:34:54 +0100 |
| commit | e8cedbfcd1a10f8b03d59f109e2ac86f0411be04 (patch) | |
| tree | 1206a34eaf22a15a3b03567f03be0c425498e64a /doc/misc | |
| parent | d652efcd087099c71cd76c4bbf2bbf04314844b4 (diff) | |
| download | emacs-e8cedbfcd1a10f8b03d59f109e2ac86f0411be04.tar.gz emacs-e8cedbfcd1a10f8b03d59f109e2ac86f0411be04.zip | |
Fix recent "erts files" additions in ERT manual
* doc/misc/ert.texi (erts files): Indent examples with spaces rather
than tabs, since Texinfo treats tab characters as a single space;
see (info "(texinfo) @example"). Fix typos/thinkos.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/ert.texi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi index 0eb9cdf09f6..770a5b77493 100644 --- a/doc/misc/ert.texi +++ b/doc/misc/ert.texi | |||
| @@ -800,7 +800,7 @@ Name: flet | |||
| 800 | (bla 42)) | 800 | (bla 42)) |
| 801 | =-= | 801 | =-= |
| 802 | (cl-flet ((bla (x) | 802 | (cl-flet ((bla (x) |
| 803 | (* x x))) | 803 | (* x x))) |
| 804 | (bla 42)) | 804 | (bla 42)) |
| 805 | =-=-= | 805 | =-=-= |
| 806 | 806 | ||
| @@ -809,12 +809,12 @@ Name: defun | |||
| 809 | =-= | 809 | =-= |
| 810 | (defun x () | 810 | (defun x () |
| 811 | (print (quote ( thingy great | 811 | (print (quote ( thingy great |
| 812 | stuff)))) | 812 | stuff)))) |
| 813 | =-=-= | 813 | =-=-= |
| 814 | @end example | 814 | @end example |
| 815 | 815 | ||
| 816 | A test starts with a line containing just @samp{=-=} and ends with a | 816 | A test starts with a line containing just @samp{=-=} and ends with a |
| 817 | line containing just just @samp{=-=-=}. The test may be preceded by | 817 | line containing just @samp{=-=-=}. The test may be preceded by |
| 818 | freeform text (for instance, comments), and also name/value pairs (see | 818 | freeform text (for instance, comments), and also name/value pairs (see |
| 819 | below for a list of them). | 819 | below for a list of them). |
| 820 | 820 | ||
| @@ -838,7 +838,7 @@ Here's an example usage: | |||
| 838 | 838 | ||
| 839 | A list of the name/value specifications that can appear before a test | 839 | A list of the name/value specifications that can appear before a test |
| 840 | follows. The general syntax is @samp{Name: Value}, but continuation | 840 | follows. The general syntax is @samp{Name: Value}, but continuation |
| 841 | lines can be used (along the same lines as in mail -- subsequent lines | 841 | lines can be used (along the same lines as in mail---subsequent lines |
| 842 | that start with a space are part of the value). | 842 | that start with a space are part of the value). |
| 843 | 843 | ||
| 844 | @example | 844 | @example |
| @@ -849,8 +849,8 @@ Code: (indent-region | |||
| 849 | 849 | ||
| 850 | @table @samp | 850 | @table @samp |
| 851 | @item Name | 851 | @item Name |
| 852 | All tests should have a name. This name will appear in the output | 852 | All tests should have a name. This name will appear in ERT output if |
| 853 | from ert if the test fails, and helps identifying the failing test. | 853 | the test fails, and helps to identify the failing test. |
| 854 | 854 | ||
| 855 | @item Code | 855 | @item Code |
| 856 | This is the code that will be run to do the transform. This can also | 856 | This is the code that will be run to do the transform. This can also |
| @@ -867,7 +867,7 @@ specify.) | |||
| 867 | 867 | ||
| 868 | @item Point-Char | 868 | @item Point-Char |
| 869 | Sometimes it's useful to be able to put point at a specific place | 869 | Sometimes it's useful to be able to put point at a specific place |
| 870 | before executing the transform character. @samp{Point-Char: |} will | 870 | before executing the transform function. @samp{Point-Char: |} will |
| 871 | make @code{ert-test-erts-file} place point where @samp{|} is in the | 871 | make @code{ert-test-erts-file} place point where @samp{|} is in the |
| 872 | ``before'' form (and remove that character), and will check that it's | 872 | ``before'' form (and remove that character), and will check that it's |
| 873 | where the @samp{|} character is in the ``after'' form (and issue a | 873 | where the @samp{|} character is in the ``after'' form (and issue a |