diff options
| author | Eli Zaretskii | 2007-02-02 14:06:07 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2007-02-02 14:06:07 +0000 |
| commit | 815cbda2de341d2020317add7c3712db112b002c (patch) | |
| tree | d752dee0b99896b4e88e0a1255765c82e3987c45 | |
| parent | 7a3eb8862a1d50d1036223ec18f4c5b9ad351d58 (diff) | |
| download | emacs-815cbda2de341d2020317add7c3712db112b002c.tar.gz emacs-815cbda2de341d2020317add7c3712db112b002c.zip | |
(ebnf-eps-buffer, ebnf-eps-region)
(ebnf-syntax-directory, ebnf-syntax-file, ebnf-syntax-region)
(ebnf-style-database, ebnf-apply-style, ebnf-reset-style)
(ebnf-push-style, ebnf-pop-style, ebnf-eps-production-list)
(ebnf-directory, ebnf-file, ebnf-syntax-alist): Doc fixes.
| -rw-r--r-- | lisp/progmodes/ebnf2ps.el | 83 |
1 files changed, 45 insertions, 38 deletions
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el index d6c3d996774..a36c79f8025 100644 --- a/lisp/progmodes/ebnf2ps.el +++ b/lisp/progmodes/ebnf2ps.el | |||
| @@ -2184,7 +2184,7 @@ See also `ebnf-eps-buffer'." | |||
| 2184 | (defun ebnf-eps-buffer () | 2184 | (defun ebnf-eps-buffer () |
| 2185 | "Generate a PostScript syntactic chart image of the buffer in a EPS file. | 2185 | "Generate a PostScript syntactic chart image of the buffer in a EPS file. |
| 2186 | 2186 | ||
| 2187 | Indeed, for each production is generated a EPS file. | 2187 | Generate an EPS file for each production in the buffer. |
| 2188 | The EPS file name has the following form: | 2188 | The EPS file name has the following form: |
| 2189 | 2189 | ||
| 2190 | <PREFIX><PRODUCTION>.eps | 2190 | <PREFIX><PRODUCTION>.eps |
| @@ -2193,11 +2193,13 @@ The EPS file name has the following form: | |||
| 2193 | The default value is \"ebnf--\". | 2193 | The default value is \"ebnf--\". |
| 2194 | 2194 | ||
| 2195 | <PRODUCTION> is the production name. | 2195 | <PRODUCTION> is the production name. |
| 2196 | The production name is mapped to form a valid file name. | 2196 | Some characters in the production file name are replaced to |
| 2197 | For example, the production name \"A/B + C\" is mapped to | 2197 | produce a valid file name. For example, the production name |
| 2198 | \"A_B_+_C\" and the EPS file name used is \"ebnf--A_B_+_C.eps\". | 2198 | \"A/B + C\" is modified to produce \"A_B_+_C\", and the EPS |
| 2199 | file name used in this case will be \"ebnf--A_B_+_C.eps\". | ||
| 2199 | 2200 | ||
| 2200 | WARNING: It's *NOT* asked any confirmation to override an existing file." | 2201 | WARNING: This function does *NOT* ask any confirmation to override existing |
| 2202 | files." | ||
| 2201 | (interactive) | 2203 | (interactive) |
| 2202 | (ebnf-eps-region (point-min) (point-max))) | 2204 | (ebnf-eps-region (point-min) (point-max))) |
| 2203 | 2205 | ||
| @@ -2206,7 +2208,7 @@ WARNING: It's *NOT* asked any confirmation to override an existing file." | |||
| 2206 | (defun ebnf-eps-region (from to) | 2208 | (defun ebnf-eps-region (from to) |
| 2207 | "Generate a PostScript syntactic chart image of the region in a EPS file. | 2209 | "Generate a PostScript syntactic chart image of the region in a EPS file. |
| 2208 | 2210 | ||
| 2209 | Indeed, for each production is generated a EPS file. | 2211 | Generate an EPS file for each production in the region. |
| 2210 | The EPS file name has the following form: | 2212 | The EPS file name has the following form: |
| 2211 | 2213 | ||
| 2212 | <PREFIX><PRODUCTION>.eps | 2214 | <PREFIX><PRODUCTION>.eps |
| @@ -2215,11 +2217,13 @@ The EPS file name has the following form: | |||
| 2215 | The default value is \"ebnf--\". | 2217 | The default value is \"ebnf--\". |
| 2216 | 2218 | ||
| 2217 | <PRODUCTION> is the production name. | 2219 | <PRODUCTION> is the production name. |
| 2218 | The production name is mapped to form a valid file name. | 2220 | Some characters in the production file name are replaced to |
| 2219 | For example, the production name \"A/B + C\" is mapped to | 2221 | produce a valid file name. For example, the production name |
| 2220 | \"A_B_+_C\" and the EPS file name used is \"ebnf--A_B_+_C.eps\". | 2222 | \"A/B + C\" is modified to produce \"A_B_+_C\", and the EPS |
| 2223 | file name used in this case will be \"ebnf--A_B_+_C.eps\". | ||
| 2221 | 2224 | ||
| 2222 | WARNING: It's *NOT* asked any confirmation to override an existing file." | 2225 | WARNING: This function does *NOT* ask any confirmation to override existing |
| 2226 | files." | ||
| 2223 | (interactive "r") | 2227 | (interactive "r") |
| 2224 | (let ((ebnf-eps-executing t)) | 2228 | (let ((ebnf-eps-executing t)) |
| 2225 | (ebnf-generate-region from to 'ebnf-generate-eps))) | 2229 | (ebnf-generate-region from to 'ebnf-generate-eps))) |
| @@ -2231,12 +2235,12 @@ WARNING: It's *NOT* asked any confirmation to override an existing file." | |||
| 2231 | 2235 | ||
| 2232 | ;;;###autoload | 2236 | ;;;###autoload |
| 2233 | (defun ebnf-syntax-directory (&optional directory) | 2237 | (defun ebnf-syntax-directory (&optional directory) |
| 2234 | "Does a syntactic analysis of the files in DIRECTORY. | 2238 | "Do a syntactic analysis of the files in DIRECTORY. |
| 2235 | 2239 | ||
| 2236 | If DIRECTORY is nil, it's used `default-directory'. | 2240 | If DIRECTORY is nil, use `default-directory'. |
| 2237 | 2241 | ||
| 2238 | The files in DIRECTORY that matches `ebnf-file-suffix-regexp' (which see) are | 2242 | Only the files in DIRECTORY that match `ebnf-file-suffix-regexp' (which see) |
| 2239 | processed. | 2243 | are processed. |
| 2240 | 2244 | ||
| 2241 | See also `ebnf-syntax-buffer'." | 2245 | See also `ebnf-syntax-buffer'." |
| 2242 | (interactive | 2246 | (interactive |
| @@ -2247,7 +2251,7 @@ See also `ebnf-syntax-buffer'." | |||
| 2247 | 2251 | ||
| 2248 | ;;;###autoload | 2252 | ;;;###autoload |
| 2249 | (defun ebnf-syntax-file (file &optional do-not-kill-buffer-when-done) | 2253 | (defun ebnf-syntax-file (file &optional do-not-kill-buffer-when-done) |
| 2250 | "Does a syntactic analysis of the FILE. | 2254 | "Do a syntactic analysis of the named FILE. |
| 2251 | 2255 | ||
| 2252 | If optional arg DO-NOT-KILL-BUFFER-WHEN-DONE is non-nil, the buffer isn't | 2256 | If optional arg DO-NOT-KILL-BUFFER-WHEN-DONE is non-nil, the buffer isn't |
| 2253 | killed after syntax checking. | 2257 | killed after syntax checking. |
| @@ -2259,14 +2263,14 @@ See also `ebnf-syntax-buffer'." | |||
| 2259 | 2263 | ||
| 2260 | ;;;###autoload | 2264 | ;;;###autoload |
| 2261 | (defun ebnf-syntax-buffer () | 2265 | (defun ebnf-syntax-buffer () |
| 2262 | "Does a syntactic analysis of the current buffer." | 2266 | "Do a syntactic analysis of the current buffer." |
| 2263 | (interactive) | 2267 | (interactive) |
| 2264 | (ebnf-syntax-region (point-min) (point-max))) | 2268 | (ebnf-syntax-region (point-min) (point-max))) |
| 2265 | 2269 | ||
| 2266 | 2270 | ||
| 2267 | ;;;###autoload | 2271 | ;;;###autoload |
| 2268 | (defun ebnf-syntax-region (from to) | 2272 | (defun ebnf-syntax-region (from to) |
| 2269 | "Does a syntactic analysis of a region." | 2273 | "Do a syntactic analysis of region." |
| 2270 | (interactive "r") | 2274 | (interactive "r") |
| 2271 | (ebnf-generate-region from to nil)) | 2275 | (ebnf-generate-region from to nil)) |
| 2272 | 2276 | ||
| @@ -2572,23 +2576,22 @@ Where: | |||
| 2572 | NAME is a symbol name style. | 2576 | NAME is a symbol name style. |
| 2573 | 2577 | ||
| 2574 | INHERITS is a symbol name style from which the current style inherits | 2578 | INHERITS is a symbol name style from which the current style inherits |
| 2575 | the context. If INHERITS is nil, means that there is no | 2579 | the context. If INHERITS is nil, then there is no inheritance. |
| 2576 | inheritance. | ||
| 2577 | 2580 | ||
| 2578 | This is a simple inheritance of style; so if you declare that a | 2581 | This is a simple inheritance of style: if you declare that |
| 2579 | style A inherits from a style B, all settings of B is applied | 2582 | style A inherits from style B, all settings of B are applied |
| 2580 | first and then the settings of A is applied. This is useful | 2583 | first, and then the settings of A are applied. This is useful |
| 2581 | when you wish to modify some aspects of an existing style, but | 2584 | when you wish to modify some aspects of an existing style, but |
| 2582 | at same time wish to keep it unmodified. | 2585 | at the same time wish to keep it unmodified. |
| 2583 | 2586 | ||
| 2584 | VAR is a valid ebnf2ps symbol custom variable. | 2587 | VAR is a valid ebnf2ps symbol custom variable. |
| 2585 | See `ebnf-style-custom-list' for valid symbol variable. | 2588 | See `ebnf-style-custom-list' for valid symbol variables. |
| 2586 | 2589 | ||
| 2587 | VALUE is a sexp which it'll be evaluated to set the value to VAR. | 2590 | VALUE is a sexp which will be evaluated to set the value of VAR. |
| 2588 | So, don't forget to quote symbols and constant lists. | 2591 | Don't forget to quote symbols and constant lists. |
| 2589 | See `default' style for an example. | 2592 | See `default' style for an example. |
| 2590 | 2593 | ||
| 2591 | Don't handle this variable directly. Use functions `ebnf-insert-style', | 2594 | Don't use this variable directly. Use functions `ebnf-insert-style', |
| 2592 | `ebnf-delete-style' and `ebnf-merge-style'.") | 2595 | `ebnf-delete-style' and `ebnf-merge-style'.") |
| 2593 | 2596 | ||
| 2594 | 2597 | ||
| @@ -2655,7 +2658,7 @@ See `ebnf-style-database' documentation." | |||
| 2655 | (defun ebnf-apply-style (style) | 2658 | (defun ebnf-apply-style (style) |
| 2656 | "Set STYLE as the current style. | 2659 | "Set STYLE as the current style. |
| 2657 | 2660 | ||
| 2658 | It returns the old style symbol. | 2661 | Returns the old style symbol. |
| 2659 | 2662 | ||
| 2660 | See `ebnf-style-database' documentation." | 2663 | See `ebnf-style-database' documentation." |
| 2661 | (interactive "SApply style: ") | 2664 | (interactive "SApply style: ") |
| @@ -2669,7 +2672,7 @@ See `ebnf-style-database' documentation." | |||
| 2669 | (defun ebnf-reset-style (&optional style) | 2672 | (defun ebnf-reset-style (&optional style) |
| 2670 | "Reset current style. | 2673 | "Reset current style. |
| 2671 | 2674 | ||
| 2672 | It returns the old style symbol. | 2675 | Returns the old style symbol. |
| 2673 | 2676 | ||
| 2674 | See `ebnf-style-database' documentation." | 2677 | See `ebnf-style-database' documentation." |
| 2675 | (interactive "SReset style: ") | 2678 | (interactive "SReset style: ") |
| @@ -2679,9 +2682,11 @@ See `ebnf-style-database' documentation." | |||
| 2679 | 2682 | ||
| 2680 | ;;;###autoload | 2683 | ;;;###autoload |
| 2681 | (defun ebnf-push-style (&optional style) | 2684 | (defun ebnf-push-style (&optional style) |
| 2682 | "Push the current style and set STYLE as the current style. | 2685 | "Push the current style onto a stack and set STYLE as the current style. |
| 2686 | |||
| 2687 | Returns the old style symbol. | ||
| 2683 | 2688 | ||
| 2684 | It returns the old style symbol. | 2689 | See also `ebnf-pop-style'. |
| 2685 | 2690 | ||
| 2686 | See `ebnf-style-database' documentation." | 2691 | See `ebnf-style-database' documentation." |
| 2687 | (interactive "SPush style: ") | 2692 | (interactive "SPush style: ") |
| @@ -2694,9 +2699,11 @@ See `ebnf-style-database' documentation." | |||
| 2694 | 2699 | ||
| 2695 | ;;;###autoload | 2700 | ;;;###autoload |
| 2696 | (defun ebnf-pop-style () | 2701 | (defun ebnf-pop-style () |
| 2697 | "Pop a style and set it as the current style. | 2702 | "Pop a style from the stack of pushed styles and set it as the current style. |
| 2698 | 2703 | ||
| 2699 | It returns the old style symbol. | 2704 | Returns the old style symbol. |
| 2705 | |||
| 2706 | See also `ebnf-push-style'. | ||
| 2700 | 2707 | ||
| 2701 | See `ebnf-style-database' documentation." | 2708 | See `ebnf-style-database' documentation." |
| 2702 | (interactive) | 2709 | (interactive) |
| @@ -2758,7 +2765,7 @@ Each element has the following form: | |||
| 2758 | PRODUCTION is the production name. | 2765 | PRODUCTION is the production name. |
| 2759 | EPS-FILENAME is the EPS file name. | 2766 | EPS-FILENAME is the EPS file name. |
| 2760 | 2767 | ||
| 2761 | It's generated during parsing and used during EPS generation. | 2768 | This is generated during parsing and used during EPS generation. |
| 2762 | 2769 | ||
| 2763 | See `ebnf-eps-context' and section \"Actions in Comments\" in ebnf2ps | 2770 | See `ebnf-eps-context' and section \"Actions in Comments\" in ebnf2ps |
| 2764 | documentation.") | 2771 | documentation.") |
| @@ -4603,9 +4610,9 @@ end | |||
| 4603 | (defun ebnf-directory (fun &optional directory) | 4610 | (defun ebnf-directory (fun &optional directory) |
| 4604 | "Process files in DIRECTORY applying function FUN on each file. | 4611 | "Process files in DIRECTORY applying function FUN on each file. |
| 4605 | 4612 | ||
| 4606 | If DIRECTORY is nil, it's used `default-directory'. | 4613 | If DIRECTORY is nil, use `default-directory'. |
| 4607 | 4614 | ||
| 4608 | The files in DIRECTORY that matches `ebnf-file-suffix-regexp' (which see) are | 4615 | Only files in DIRECTORY that match `ebnf-file-suffix-regexp' (which see) are |
| 4609 | processed." | 4616 | processed." |
| 4610 | (let ((files (directory-files (or directory default-directory) | 4617 | (let ((files (directory-files (or directory default-directory) |
| 4611 | t ebnf-file-suffix-regexp))) | 4618 | t ebnf-file-suffix-regexp))) |
| @@ -4619,7 +4626,7 @@ processed." | |||
| 4619 | 4626 | ||
| 4620 | 4627 | ||
| 4621 | (defun ebnf-file (fun file &optional do-not-kill-buffer-when-done) | 4628 | (defun ebnf-file (fun file &optional do-not-kill-buffer-when-done) |
| 4622 | "Process file FILE applying function FUN. | 4629 | "Process the named FILE applying function FUN. |
| 4623 | 4630 | ||
| 4624 | If optional arg DO-NOT-KILL-BUFFER-WHEN-DONE is non-nil, the buffer isn't | 4631 | If optional arg DO-NOT-KILL-BUFFER-WHEN-DONE is non-nil, the buffer isn't |
| 4625 | killed after process termination." | 4632 | killed after process termination." |
| @@ -4821,7 +4828,7 @@ killed after process termination." | |||
| 4821 | (ebnf ebnf-bnf-parser ebnf-bnf-initialize) | 4828 | (ebnf ebnf-bnf-parser ebnf-bnf-initialize) |
| 4822 | (ebnfx ebnf-ebx-parser ebnf-ebx-initialize) | 4829 | (ebnfx ebnf-ebx-parser ebnf-ebx-initialize) |
| 4823 | (dtd ebnf-dtd-parser ebnf-dtd-initialize)) | 4830 | (dtd ebnf-dtd-parser ebnf-dtd-initialize)) |
| 4824 | "Alist associating ebnf syntax with a parser and a initializer.") | 4831 | "Alist associating EBNF syntax with a parser and a initializer.") |
| 4825 | 4832 | ||
| 4826 | 4833 | ||
| 4827 | (defun ebnf-begin-job () | 4834 | (defun ebnf-begin-job () |