diff options
| author | Paul Eggert | 2022-07-25 12:59:26 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-07-25 13:00:10 -0700 |
| commit | d04701c0c4959d3c42587a4e1277bb517a2ea04b (patch) | |
| tree | 89033967a2dae0b1822f4d00fcd8b4e5de90056f | |
| parent | 0f9c28f00879e86713350a5bbff1f6f158874273 (diff) | |
| download | emacs-d04701c0c4959d3c42587a4e1277bb517a2ea04b.tar.gz emacs-d04701c0c4959d3c42587a4e1277bb517a2ea04b.zip | |
Note guideline for doc string expressions
* doc/lispref/tips.texi (Documentation Tips):
Mention \\=' and \\=` and say that expressions like
(NAME TYPE RANGE) should not be quoted.
| -rw-r--r-- | doc/lispref/tips.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi index 30146a89ebf..d03698d354f 100644 --- a/doc/lispref/tips.texi +++ b/doc/lispref/tips.texi | |||
| @@ -689,6 +689,18 @@ line. This looks nice in the source code, but looks bizarre when users | |||
| 689 | view the documentation. Remember that the indentation before the | 689 | view the documentation. Remember that the indentation before the |
| 690 | starting double-quote is not part of the string! | 690 | starting double-quote is not part of the string! |
| 691 | 691 | ||
| 692 | @item | ||
| 693 | When documentation should display an ASCII apostrophe or grave accent, | ||
| 694 | use @samp{\\='} or @samp{\\=`} in the documentation string literal so | ||
| 695 | that the character is displayed as-is. | ||
| 696 | |||
| 697 | @item | ||
| 698 | In documentation strings, do not quote expressions that are not Lisp symbols, | ||
| 699 | as these expressions can stand for themselves. For example, write | ||
| 700 | @samp{Return the list (NAME TYPE RANGE) ...}@: instead of | ||
| 701 | @samp{Return the list `(NAME TYPE RANGE)' ...}@: or | ||
| 702 | @samp{Return the list \\='(NAME TYPE RANGE) ...}. | ||
| 703 | |||
| 692 | @anchor{Docstring hyperlinks} | 704 | @anchor{Docstring hyperlinks} |
| 693 | @item | 705 | @item |
| 694 | @cindex curly quotes | 706 | @cindex curly quotes |