[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/clhs 7fc0256 23/25: Pacify checkdoc
From: |
Sam Steingold |
Subject: |
[elpa] externals/clhs 7fc0256 23/25: Pacify checkdoc |
Date: |
Tue, 27 Apr 2021 20:38:56 -0400 (EDT) |
branch: externals/clhs
commit 7fc0256d4986342d879bf16e0bdee2aa0e7b6961
Author: Sam Steingold <sds@gnu.org>
Commit: Sam Steingold <sds@gnu.org>
Pacify checkdoc
---
clhs.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/clhs.el b/clhs.el
index b3082b5..09d2b26 100644
--- a/clhs.el
+++ b/clhs.el
@@ -57,6 +57,9 @@ something like \"file:/usr/local/doc/HyperSpec/\"."
(defvar clhs-symbols nil)
(defun clhs-table-buffer (&optional root)
+ "Create a buffer containing the CLHS symbol table.
+Optional argument ROOT specifies the CLHS root location
+ and defaults to `common-lisp-hyperspec-root'."
(unless root (setq root common-lisp-hyperspec-root))
(if (string-match "^file:/" root)
(with-current-buffer (get-buffer-create " *clhs-tmp-buf*")
@@ -66,7 +69,7 @@ something like \"file:/usr/local/doc/HyperSpec/\"."
(if (file-exists-p f) f
(setq f (concat d "Symbol-Table.text"))
(if (file-exists-p f) f
- (error "no symbol table at %s" root))))
+ (error "No symbol table at %s" root))))
nil nil nil t)
(goto-char 0)
(current-buffer))
@@ -81,13 +84,13 @@ something like \"file:/usr/local/doc/HyperSpec/\"."
(goto-char 0)
(unless (looking-at "^HTTP/.*200 *OK$")
(kill-buffer (current-buffer))
- (error "no symbol table at %s" root)))
+ (error "No symbol table at %s" root)))
;; skip to the first symbol
(search-forward "\n\n")
(current-buffer))))
(defun clhs-read-symbols ()
- "read `clhs-symbols' from the current position in the current buffer"
+ "Read variable `clhs-symbols' from the current position in the current
buffer."
(while (not (eobp))
(puthash (buffer-substring-no-properties ; symbol
(line-beginning-position) (line-end-position))
@@ -98,7 +101,7 @@ something like \"file:/usr/local/doc/HyperSpec/\"."
(forward-line 1)))
(defun clhs-symbols ()
- "Get `clhs-symbols' from `common-lisp-hyperspec-root'."
+ "Get variable `clhs-symbols' from `common-lisp-hyperspec-root'."
(if (and clhs-symbols (not (= 0 (hash-table-count clhs-symbols))))
clhs-symbols
(with-current-buffer (clhs-table-buffer)
@@ -130,3 +133,5 @@ With prefix arg KILL, save the URL in the `kill-ring'
instead."
(browse-url url))))
(provide 'clhs)
+
+;;; clhs.el ends here
- [elpa] externals/clhs bcac1e9 10/25: (C)year, (continued)
- [elpa] externals/clhs bcac1e9 10/25: (C)year, Sam Steingold, 2021/04/27
- [elpa] externals/clhs 537a263 13/25: common-lisp-hyperspec: with prefix arg, save URL in kill-ring, Sam Steingold, 2021/04/27
- [elpa] externals/clhs 766be41 14/25: (C) year, Sam Steingold, 2021/04/27
- [elpa] externals/clhs 23fd27e 05/25: (clhs-table-buffer): strip "file:/", not just "file:", Sam Steingold, 2021/04/27
- [elpa] externals/clhs dd20a09 19/25: Add .gitignore, Sam Steingold, 2021/04/27
- [elpa] externals/clhs d458e3e 20/25: Add README.md, Sam Steingold, 2021/04/27
- [elpa] externals/clhs 2a1c83b 15/25: Update URLs to CLHS., Sam Steingold, 2021/04/27
- [elpa] externals/clhs 713b058 18/25: common-lisp-hyperspec-root: Use lisp.se again., Sam Steingold, 2021/04/27
- [elpa] externals/clhs 8e67fde 21/25: update the docs, Sam Steingold, 2021/04/27
- [elpa] externals/clhs 6b01ec2 22/25: Remove obsolete `hash-table-complete', Sam Steingold, 2021/04/27
- [elpa] externals/clhs 7fc0256 23/25: Pacify checkdoc,
Sam Steingold <=
- [elpa] externals/clhs 2c12bfb 24/25: Pacify package-lint, Sam Steingold, 2021/04/27
- [elpa] externals/clhs 93b33fd 25/25: comply with GNU ELPA, Sam Steingold, 2021/04/27