diff options
| author | Stefan Kangas | 2024-12-16 22:17:36 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2024-12-16 22:17:36 +0100 |
| commit | 9fd96e2ab95d19bb7df7fb698a497d56f3cdb3af (patch) | |
| tree | 7724ab45309696bd8f5e7f7926a7ed1eaa28e551 | |
| parent | b9dc337ea7416ee7ee4d873a91f6d6d9f109c04c (diff) | |
| download | emacs-9fd96e2ab95d19bb7df7fb698a497d56f3cdb3af.tar.gz emacs-9fd96e2ab95d19bb7df7fb698a497d56f3cdb3af.zip | |
Improve reb-change-syntax docstring
* lisp/emacs-lisp/re-builder.el (reb-change-syntax): Improve docstring.
| -rw-r--r-- | lisp/emacs-lisp/re-builder.el | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el index c5307f70d08..1fc6c872332 100644 --- a/lisp/emacs-lisp/re-builder.el +++ b/lisp/emacs-lisp/re-builder.el | |||
| @@ -485,7 +485,22 @@ If the optional PAUSE is non-nil then pause at the end in any case." | |||
| 485 | 485 | ||
| 486 | (defun reb-change-syntax (&optional syntax) | 486 | (defun reb-change-syntax (&optional syntax) |
| 487 | "Change the syntax used by the RE Builder. | 487 | "Change the syntax used by the RE Builder. |
| 488 | Optional argument SYNTAX must be specified if called non-interactively." | 488 | Interactively, prompt for SYNTAX. |
| 489 | |||
| 490 | Re-Builder currently understands three different forms of input, namely | ||
| 491 | `read', `string', and `rx' syntax: | ||
| 492 | |||
| 493 | 1. The `string' syntax is the same one used by functions such as | ||
| 494 | `query-replace-regexp' (\\[query-replace-regexp]). There is no need to escape | ||
| 495 | backslashes and double quotes. | ||
| 496 | |||
| 497 | 2. The `read' syntax is the same syntax used as when specifying the | ||
| 498 | regexp as a string in a Lisp program. | ||
| 499 | |||
| 500 | 3. Finally, the `rx' syntax allows editing of symbolic regular | ||
| 501 | expressions supported by the package of the same name. | ||
| 502 | |||
| 503 | When called from Lisp, SYNTAX must be specified." | ||
| 489 | (interactive | 504 | (interactive |
| 490 | (list (intern | 505 | (list (intern |
| 491 | (completing-read | 506 | (completing-read |