summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/checkdoc.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
-rw-r--r--lisp/emacs-lisp/checkdoc.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index c22aff4cbca..14c2a1b872e 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -1663,7 +1663,7 @@ function,command,variable,option or symbol." ms1))))))
;; (concat "\\<" (regexp-quote (car fp)) "\\>")
;; newname))
;; (checkdoc-create-error
- ;; "Flag variable names should normally end in `-flag'" s
+ ;; "Flag variable names should normally end in ‘-flag’" s
;; (marker-position e)))))
;; Done with variables
))
@@ -1715,7 +1715,7 @@ function,command,variable,option or symbol." ms1))))))
(if (checkdoc-autofix-ask-replace
(match-beginning 1) (match-end 1)
(format
- "If this is the argument `%s', it should appear as %s. Fix? "
+ "If this is the argument ‘%s’, it should appear as %s. Fix? "
(car args) (upcase (car args)))
(upcase (car args)) t)
(setq found (match-beginning 1))))))
@@ -1741,7 +1741,7 @@ function,command,variable,option or symbol." ms1))))))
nil)
(checkdoc-create-error
(format
- "Argument `%s' should appear (as %s) in the doc string"
+ "Argument ‘%s’ should appear (as %s) in the doc string"
(car args) (upcase (car args)))
s (marker-position e)))
(if (or (and order (eq order 'yes))
@@ -1824,7 +1824,7 @@ Replace with \"%s\"? " original replace)
(setq found (intern-soft ms))
(or (boundp found) (fboundp found)))
(progn
- (setq msg (format "Add quotes around Lisp symbol `%s'? "
+ (setq msg (format "Add quotes around Lisp symbol ‘%s’? "
ms))
(if (checkdoc-autofix-ask-replace
(match-beginning 1) (+ (match-beginning 1)
@@ -1832,7 +1832,7 @@ Replace with \"%s\"? " original replace)
msg (concat "‘" ms "’") t)
(setq msg nil)
(setq msg
- (format "Lisp symbol `%s' should appear in quotes"
+ (format "Lisp symbol ‘%s’ should appear in quotes"
ms))))))
(if msg
(checkdoc-create-error msg (match-beginning 1)
@@ -1849,7 +1849,7 @@ Replace with \"%s\"? " original replace)
(match-string 2) t)
nil
(checkdoc-create-error
- "Symbols t and nil should not appear in `...' quotes"
+ "Symbols t and nil should not appear in ‘...’ quotes"
(match-beginning 1) (match-end 1)))))
;; Here is some basic sentence formatting
(checkdoc-sentencespace-region-engine (point) e)
@@ -2487,22 +2487,22 @@ Argument TYPE specifies the type of question, such as `error' or `y-or-n-p'."
;; If we see a ?, then replace with "? ".
(if (checkdoc-autofix-ask-replace
(match-beginning 0) (match-end 0)
- "`y-or-n-p' argument should end with \"? \". Fix? "
+ "‘y-or-n-p’ argument should end with \"? \". Fix? "
"? " t)
nil
(checkdoc-create-error
- "`y-or-n-p' argument should end with \"? \""
+ "‘y-or-n-p’ argument should end with \"? \""
(match-beginning 0) (match-end 0)))
(if (save-excursion (forward-sexp 1)
(forward-char -2)
(looking-at " "))
(if (checkdoc-autofix-ask-replace
(match-beginning 0) (match-end 0)
- "`y-or-n-p' argument should end with \"? \". Fix? "
+ "‘y-or-n-p’ argument should end with \"? \". Fix? "
"? " t)
nil
(checkdoc-create-error
- "`y-or-n-p' argument should end with \"? \""
+ "‘y-or-n-p’ argument should end with \"? \""
(match-beginning 0) (match-end 0)))
(if (and ;; if this isn't true, we have a problem.
(save-excursion (forward-sexp 1)
@@ -2510,11 +2510,11 @@ Argument TYPE specifies the type of question, such as `error' or `y-or-n-p'."
(looking-at "\""))
(checkdoc-autofix-ask-replace
(match-beginning 0) (match-end 0)
- "`y-or-n-p' argument should end with \"? \". Fix? "
+ "‘y-or-n-p’ argument should end with \"? \". Fix? "
"? \"" t))
nil
(checkdoc-create-error
- "`y-or-n-p' argument should end with \"? \""
+ "‘y-or-n-p’ argument should end with \"? \""
(match-beginning 0) (match-end 0)))))))
;; Now, let's just run the spell checker on this guy.
(checkdoc-ispell-docstring-engine (save-excursion (forward-sexp 1)