summaryrefslogtreecommitdiff
path: root/doc/lispref/help.texi
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2020-04-19 12:40:43 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2020-04-19 13:19:37 +0200
commit14a570afaeb9c01bafdb5dd922d8077810e63d16 (patch)
treeee86dfe4f4aa4e6c12ae8d9c963b95f788890e4a /doc/lispref/help.texi
parentd5ec18c66bdefb492826eab0d60e818d5bac7238 (diff)
downloademacs-14a570afaeb9c01bafdb5dd922d8077810e63d16.tar.gz
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.
Diffstat (limited to 'doc/lispref/help.texi')
-rw-r--r--doc/lispref/help.texi56
1 files changed, 27 insertions, 29 deletions
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
in the *Help* buffer."
(interactive "sDescribe symbols matching: ")
(let ((describe-func
- (function
- (lambda (s)
+ (lambda (s)
@end group
@group
- ;; @r{Print description of symbol.}
- (if (fboundp s) ; @r{It is a function.}
- (princ
- (format "%s\t%s\n%s\n\n" s
- (if (commandp s)
- (let ((keys (where-is-internal s)))
- (if keys
- (concat
- "Keys: "
- (mapconcat 'key-description
- keys " "))
- "Keys: none"))
- "Function")
+ ;; @r{Print description of symbol.}
+ (if (fboundp s) ; @r{It is a function.}
+ (princ
+ (format "%s\t%s\n%s\n\n" s
+ (if (commandp s)
+ (let ((keys (where-is-internal s)))
+ (if keys
+ (concat
+ "Keys: "
+ (mapconcat 'key-description
+ keys " "))
+ "Keys: none"))
+ "Function")
@end group
@group
- (or (documentation s)
- "not documented"))))
+ (or (documentation s)
+ "not documented"))))
- (if (boundp s) ; @r{It is a variable.}
+ (if (boundp s) ; @r{It is a variable.}
@end group
@group
- (princ
- (format "%s\t%s\n%s\n\n" s
- (if (custom-variable-p s)
- "Option " "Variable")
+ (princ
+ (format "%s\t%s\n%s\n\n" s
+ (if (custom-variable-p s)
+ "Option " "Variable")
@end group
@group
- (or (documentation-property
- s 'variable-documentation)
- "not documented")))))))
+ (or (documentation-property
+ s 'variable-documentation)
+ "not documented"))))))
sym-list)
@end group
@group
;; @r{Build a list of symbols that match pattern.}
- (mapatoms (function
- (lambda (sym)
- (if (string-match pattern (symbol-name sym))
- (setq sym-list (cons sym sym-list))))))
+ (mapatoms (lambda (sym)
+ (if (string-match pattern (symbol-name sym))
+ (setq sym-list (cons sym sym-list)))))
@end group
@group