diff options
| author | Mattias EngdegÄrd | 2020-04-19 12:40:43 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-04-19 13:19:37 +0200 |
| commit | 14a570afaeb9c01bafdb5dd922d8077810e63d16 (patch) | |
| tree | ee86dfe4f4aa4e6c12ae8d9c963b95f788890e4a | |
| parent | d5ec18c66bdefb492826eab0d60e818d5bac7238 (diff) | |
| download | emacs-14a570afaeb9c01bafdb5dd922d8077810e63d16.tar.gz emacs-14a570afaeb9c01bafdb5dd922d8077810e63d16.zip | |
Remove #' and function quoting from lambda forms in manual
* doc/lispref/abbrevs.texi (Abbrev Expansion):
* doc/lispref/backups.texi (Reverting):
* doc/lispref/functions.texi (Mapping Functions):
* doc/lispref/help.texi (Accessing Documentation):
* doc/lispref/sequences.texi (Char-Tables):
* doc/lispref/syntax.texi (Categories):
* doc/lispref/text.texi (Sorting):
Remove function quoting from lambda in examples where it still occurs,
since examples should follow our best style and be consistent.
| -rw-r--r-- | doc/lispref/abbrevs.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/backups.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/help.texi | 56 | ||||
| -rw-r--r-- | doc/lispref/sequences.texi | 16 | ||||
| -rw-r--r-- | doc/lispref/syntax.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 9 |
7 files changed, 47 insertions, 50 deletions
diff --git a/doc/lispref/abbrevs.texi b/doc/lispref/abbrevs.texi index 6689b560c78..575be187d3f 100644 --- a/doc/lispref/abbrevs.texi +++ b/doc/lispref/abbrevs.texi | |||
| @@ -370,9 +370,9 @@ definitions of @code{local-abbrev-table} and @code{text-mode-abbrev-table}. | |||
| 370 | (funcall expand)))) | 370 | (funcall expand)))) |
| 371 | 371 | ||
| 372 | (add-hook 'foo-mode-hook | 372 | (add-hook 'foo-mode-hook |
| 373 | #'(lambda () | 373 | (lambda () |
| 374 | (add-function :around (local 'abbrev-expand-function) | 374 | (add-function :around (local 'abbrev-expand-function) |
| 375 | #'foo-mode-abbrev-expand-function))) | 375 | #'foo-mode-abbrev-expand-function))) |
| 376 | @end smallexample | 376 | @end smallexample |
| 377 | 377 | ||
| 378 | @node Standard Abbrev Tables | 378 | @node Standard Abbrev Tables |
diff --git a/doc/lispref/backups.texi b/doc/lispref/backups.texi index b7318a99b8f..4ed1a10fcf6 100644 --- a/doc/lispref/backups.texi +++ b/doc/lispref/backups.texi | |||
| @@ -807,7 +807,7 @@ If you just want to automatically auto-revert every | |||
| 807 | 807 | ||
| 808 | @example | 808 | @example |
| 809 | (setq-local buffer-stale-function | 809 | (setq-local buffer-stale-function |
| 810 | #'(lambda (&optional noconfirm) 'fast)) | 810 | (lambda (&optional noconfirm) 'fast)) |
| 811 | @end example | 811 | @end example |
| 812 | 812 | ||
| 813 | @noindent | 813 | @noindent |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index f31bacaed74..bc8ec0ef1b0 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -970,7 +970,7 @@ string. | |||
| 970 | @end group | 970 | @end group |
| 971 | 971 | ||
| 972 | @group | 972 | @group |
| 973 | (mapconcat (function (lambda (x) (format "%c" (1+ x)))) | 973 | (mapconcat (lambda (x) (format "%c" (1+ x))) |
| 974 | "HAL-8000" | 974 | "HAL-8000" |
| 975 | "") | 975 | "") |
| 976 | @result{} "IBM.9111" | 976 | @result{} "IBM.9111" |
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index eea1fd2e8f1..9b3c4fcb23d 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi | |||
| @@ -175,49 +175,47 @@ All symbols that have PATTERN in their name are described | |||
| 175 | in the *Help* buffer." | 175 | in the *Help* buffer." |
| 176 | (interactive "sDescribe symbols matching: ") | 176 | (interactive "sDescribe symbols matching: ") |
| 177 | (let ((describe-func | 177 | (let ((describe-func |
| 178 | (function | 178 | (lambda (s) |
| 179 | (lambda (s) | ||
| 180 | @end group | 179 | @end group |
| 181 | @group | 180 | @group |
| 182 | ;; @r{Print description of symbol.} | 181 | ;; @r{Print description of symbol.} |
| 183 | (if (fboundp s) ; @r{It is a function.} | 182 | (if (fboundp s) ; @r{It is a function.} |
| 184 | (princ | 183 | (princ |
| 185 | (format "%s\t%s\n%s\n\n" s | 184 | (format "%s\t%s\n%s\n\n" s |
| 186 | (if (commandp s) | 185 | (if (commandp s) |
| 187 | (let ((keys (where-is-internal s))) | 186 | (let ((keys (where-is-internal s))) |
| 188 | (if keys | 187 | (if keys |
| 189 | (concat | 188 | (concat |
| 190 | "Keys: " | 189 | "Keys: " |
| 191 | (mapconcat 'key-description | 190 | (mapconcat 'key-description |
| 192 | keys " ")) | 191 | keys " ")) |
| 193 | "Keys: none")) | 192 | "Keys: none")) |
| 194 | "Function") | 193 | "Function") |
| 195 | @end group | 194 | @end group |
| 196 | @group | 195 | @group |
| 197 | (or (documentation s) | 196 | (or (documentation s) |
| 198 | "not documented")))) | 197 | "not documented")))) |
| 199 | 198 | ||
| 200 | (if (boundp s) ; @r{It is a variable.} | 199 | (if (boundp s) ; @r{It is a variable.} |
| 201 | @end group | 200 | @end group |
| 202 | @group | 201 | @group |
| 203 | (princ | 202 | (princ |
| 204 | (format "%s\t%s\n%s\n\n" s | 203 | (format "%s\t%s\n%s\n\n" s |
| 205 | (if (custom-variable-p s) | 204 | (if (custom-variable-p s) |
| 206 | "Option " "Variable") | 205 | "Option " "Variable") |
| 207 | @end group | 206 | @end group |
| 208 | @group | 207 | @group |
| 209 | (or (documentation-property | 208 | (or (documentation-property |
| 210 | s 'variable-documentation) | 209 | s 'variable-documentation) |
| 211 | "not documented"))))))) | 210 | "not documented")))))) |
| 212 | sym-list) | 211 | sym-list) |
| 213 | @end group | 212 | @end group |
| 214 | 213 | ||
| 215 | @group | 214 | @group |
| 216 | ;; @r{Build a list of symbols that match pattern.} | 215 | ;; @r{Build a list of symbols that match pattern.} |
| 217 | (mapatoms (function | 216 | (mapatoms (lambda (sym) |
| 218 | (lambda (sym) | 217 | (if (string-match pattern (symbol-name sym)) |
| 219 | (if (string-match pattern (symbol-name sym)) | 218 | (setq sym-list (cons sym sym-list))))) |
| 220 | (setq sym-list (cons sym sym-list)))))) | ||
| 221 | @end group | 219 | @end group |
| 222 | 220 | ||
| 223 | @group | 221 | @group |
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index f6faf9448c2..7a3f26e584f 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -1572,14 +1572,14 @@ For example, here is how to examine the elements of the syntax table: | |||
| 1572 | @example | 1572 | @example |
| 1573 | (let (accumulator) | 1573 | (let (accumulator) |
| 1574 | (map-char-table | 1574 | (map-char-table |
| 1575 | #'(lambda (key value) | 1575 | (lambda (key value) |
| 1576 | (setq accumulator | 1576 | (setq accumulator |
| 1577 | (cons (list | 1577 | (cons (list |
| 1578 | (if (consp key) | 1578 | (if (consp key) |
| 1579 | (list (car key) (cdr key)) | 1579 | (list (car key) (cdr key)) |
| 1580 | key) | 1580 | key) |
| 1581 | value) | 1581 | value) |
| 1582 | accumulator))) | 1582 | accumulator))) |
| 1583 | (syntax-table)) | 1583 | (syntax-table)) |
| 1584 | accumulator) | 1584 | accumulator) |
| 1585 | @result{} | 1585 | @result{} |
diff --git a/doc/lispref/syntax.texi b/doc/lispref/syntax.texi index ad45a8edaff..9eb99a0ac92 100644 --- a/doc/lispref/syntax.texi +++ b/doc/lispref/syntax.texi | |||
| @@ -1118,9 +1118,9 @@ bidi-class}). | |||
| 1118 | ;; 'bidi-class' Unicode property is R, AL, or RLO -- | 1118 | ;; 'bidi-class' Unicode property is R, AL, or RLO -- |
| 1119 | ;; these have a right-to-left directionality. | 1119 | ;; these have a right-to-left directionality. |
| 1120 | (map-char-table | 1120 | (map-char-table |
| 1121 | #'(lambda (key val) | 1121 | (lambda (key val) |
| 1122 | (if (memq val '(R AL RLO)) | 1122 | (if (memq val '(R AL RLO)) |
| 1123 | (modify-category-entry key ?R category-table))) | 1123 | (modify-category-entry key ?R category-table))) |
| 1124 | uniprop-table) | 1124 | uniprop-table) |
| 1125 | category-table)) | 1125 | category-table)) |
| 1126 | @end example | 1126 | @end example |
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index fe3d48b3ff5..58424a4231b 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -2073,11 +2073,10 @@ its @code{sort-subr} call looks like this: | |||
| 2073 | @example | 2073 | @example |
| 2074 | @group | 2074 | @group |
| 2075 | (sort-subr reverse | 2075 | (sort-subr reverse |
| 2076 | (function | 2076 | (lambda () |
| 2077 | (lambda () | 2077 | (while (and (not (eobp)) |
| 2078 | (while (and (not (eobp)) | 2078 | (looking-at paragraph-separate)) |
| 2079 | (looking-at paragraph-separate)) | 2079 | (forward-line 1))) |
| 2080 | (forward-line 1)))) | ||
| 2081 | 'forward-paragraph) | 2080 | 'forward-paragraph) |
| 2082 | @end group | 2081 | @end group |
| 2083 | @end example | 2082 | @end example |