Escape ` and ' in doc
Escape apostrophes and grave accents in docstrings if they are are supposed to stand for themselves and are not quotes. Remove apostrophes from docstring examples like ‘'(calendar-nth-named-day -1 0 10 year)’ that confuse source code with data. Do some other minor docstring fixups as well, e.g., insert a missing close quote.
This commit is contained in:
parent
5dc644a6b0
commit
19532d147b
43 changed files with 127 additions and 128 deletions
|
@ -262,15 +262,15 @@
|
|||
This is exactly like `sregexq' (q.v.) except that it evaluates all its
|
||||
arguments, so literal sregex clauses must be quoted. For example:
|
||||
|
||||
(sregex '(or \"Bob\" \"Robert\")) => \"Bob\\\\|Robert\"
|
||||
(sregex \\='(or \"Bob\" \"Robert\")) => \"Bob\\\\|Robert\"
|
||||
|
||||
An argument-evaluating sregex interpreter lets you reuse sregex
|
||||
subexpressions:
|
||||
|
||||
(let ((dotstar '(0+ any))
|
||||
(whitespace '(1+ (syntax ?-)))
|
||||
(digits '(1+ (char (?0 . ?9)))))
|
||||
(sregex 'bol dotstar \":\" whitespace digits)) => \"^.*:\\\\s-+[0-9]+\""
|
||||
(let ((dotstar \\='(0+ any))
|
||||
(whitespace \\='(1+ (syntax ?-)))
|
||||
(digits \\='(1+ (char (?0 . ?9)))))
|
||||
(sregex \\='bol dotstar \":\" whitespace digits)) => \"^.*:\\\\s-+[0-9]+\""
|
||||
(sregex--sequence exps nil))
|
||||
|
||||
(defmacro sregexq (&rest exps)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue