diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-08-21 20:19:46 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-08-21 20:22:32 -0700 |
commit | c87523bd8dbd9c9c5b8afdae43107f0badc0c924 (patch) | |
tree | dd844e5395f584e221c8cec683abdc4302f83309 /lisp/emacs-lisp/rx.el | |
parent | 66081ad6f4dba44b64c809cde5f4a904b0f381fb (diff) | |
download | emacs-c87523bd8dbd9c9c5b8afdae43107f0badc0c924.tar.gz |
text-quoting-style in emacs-lisp diagnostics
* lisp/emacs-lisp/advice.el (ad-read-advised-function)
(ad-read-advice-class, ad-read-advice-name, ad-enable-advice)
(ad-disable-advice, ad-remove-advice, ad-set-argument)
(ad-set-arguments):
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand)
(byte-compile-unfold-lambda, byte-optimize-form-code-walker)
(byte-optimize-while, byte-optimize-apply):
* lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode)
(byte-compile-log-file, byte-compile-format-warn)
(byte-compile-nogroup-warn, byte-compile-arglist-warn)
(byte-compile-cl-warn)
(byte-compile-warn-about-unresolved-functions)
(byte-compile-file, byte-compile-fix-header)
(byte-compile--declare-var, byte-compile-file-form-defmumble)
(byte-compile-form, byte-compile-normal-call)
(byte-compile-variable-ref, byte-compile-variable-set)
(byte-compile-subr-wrong-args, byte-compile-setq-default)
(byte-compile-negation-optimizer)
(byte-compile-condition-case--old)
(byte-compile-condition-case--new, byte-compile-save-excursion)
(byte-compile-defvar, byte-compile-autoload)
(byte-compile-lambda-form)
(byte-compile-make-variable-buffer-local, display-call-tree)
(batch-byte-compile):
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
(cconv-analyze-form):
* lisp/emacs-lisp/chart.el (chart-space-usage):
* lisp/emacs-lisp/check-declare.el (check-declare-scan)
(check-declare-warn, check-declare-file)
(check-declare-directory):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
(checkdoc-message-text-engine):
* lisp/emacs-lisp/cl-extra.el (cl-parse-integer):
* lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause, cl-tagbody)
(cl-symbol-macrolet):
* lisp/emacs-lisp/cl.el (cl-unload-function, flet):
* lisp/emacs-lisp/copyright.el (copyright)
(copyright-update-directory):
* lisp/emacs-lisp/edebug.el (edebug-read-list):
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
* lisp/emacs-lisp/eieio-core.el (eieio--slot-override)
(eieio-oref, eieio-oset-default):
* lisp/emacs-lisp/eieio-speedbar.el:
(eieio-speedbar-child-make-tag-lines)
(eieio-speedbar-child-description):
* lisp/emacs-lisp/eieio.el (defclass, change-class):
* lisp/emacs-lisp/elint.el (elint-file, elint-get-top-forms)
(elint-init-form, elint-check-defalias-form)
(elint-check-let-form):
* lisp/emacs-lisp/ert.el (ert-get-test):
* lisp/emacs-lisp/find-func.el (find-function-search-for-symbol)
(find-function-library):
* lisp/emacs-lisp/generator.el (iter-yield):
* lisp/emacs-lisp/gv.el (gv-define-simple-setter):
* lisp/emacs-lisp/lisp-mnt.el (lm-verify):
* lisp/emacs-lisp/package-x.el (package-upload-file):
* lisp/emacs-lisp/package.el (package-version-join)
(package-disabled-p, package-activate-1, package-activate)
(package--download-one-archive)
(package--download-and-read-archives)
(package-compute-transaction, package-install-from-archive)
(package-install, package-install-selected-packages)
(package-delete, package-autoremove)
(package-install-button-action, package-delete-button-action)
(package-menu-hide-package, package-menu--list-to-prompt)
(package-menu--perform-transaction)
(package-menu--find-and-notify-upgrades):
* lisp/emacs-lisp/pcase.el (pcase-exhaustive, pcase--u1):
* lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode):
* lisp/emacs-lisp/ring.el (ring-next, ring-previous):
* lisp/emacs-lisp/rx.el (rx-check, rx-anything):
* lisp/emacs-lisp/smie.el (smie-config-save):
* lisp/emacs-lisp/subr-x.el (internal--check-binding):
* lisp/emacs-lisp/testcover.el (testcover-1value):
Use curved quotes in diagnostic format strings.
Diffstat (limited to 'lisp/emacs-lisp/rx.el')
-rw-r--r-- | lisp/emacs-lisp/rx.el | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index 520210614f5..0129d930ca1 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el @@ -324,7 +324,7 @@ a standalone symbol." (defun rx-check (form) "Check FORM according to its car's parsing info." (unless (listp form) - (error "rx `%s' needs argument(s)" form)) + (error "rx ‘%s’ needs argument(s)" form)) (let* ((rx (rx-info (car form) 'head)) (nargs (1- (length form))) (min-args (nth 1 rx)) @@ -332,16 +332,16 @@ a standalone symbol." (type-pred (nth 3 rx))) (when (and (not (null min-args)) (< nargs min-args)) - (error "rx form `%s' requires at least %d args" + (error "rx form ‘%s’ requires at least %d args" (car form) min-args)) (when (and (not (null max-args)) (> nargs max-args)) - (error "rx form `%s' accepts at most %d args" + (error "rx form ‘%s’ accepts at most %d args" (car form) max-args)) (when (not (null type-pred)) (dolist (sub-form (cdr form)) (unless (funcall type-pred sub-form) - (error "rx form `%s' requires args satisfying `%s'" + (error "rx form ‘%s’ requires args satisfying ‘%s’" (car form) type-pred)))))) @@ -395,7 +395,7 @@ FORM is of the form `(and FORM1 ...)'." (defun rx-anything (form) "Match any character." (if (consp form) - (error "rx `anything' syntax error: %s" form)) + (error "rx ‘anything’ syntax error: %s" form)) (rx-or (list 'or 'not-newline ?\n))) @@ -452,7 +452,7 @@ Only both edges of each range is checked." (let ((i 0) c1 c2 l) (if (= 0 (length str)) - (error "String arg for Rx `any' must not be empty")) + (error "String arg for Rx ‘any’ must not be empty")) (while (string-match ".-." str i) ;; string before range: convert it to characters (if (< i (match-beginning 0)) @@ -482,13 +482,13 @@ Only both edges of each range is checked." (error nil)))) (if (or (null translation) (null (string-match "\\`\\[\\[:[-a-z]+:\\]\\]\\'" translation))) - (error "Invalid char class `%s' in Rx `any'" arg)) + (error "Invalid char class ‘%s’ in Rx ‘any’" arg)) (list (substring translation 1 -1)))) ; strip outer brackets ((and (integerp (car-safe arg)) (integerp (cdr-safe arg))) (list arg)) ((stringp arg) (rx-check-any-string arg)) ((error - "rx `any' requires string, character, char pair or char class args")))) + "rx ‘any’ requires string, character, char pair or char class args")))) (defun rx-any (form) @@ -581,7 +581,7 @@ ARG is optional." (eq arg 'word-boundary) (and (consp arg) (memq (car arg) '(not any in syntax category)))) - (error "rx `not' syntax error: %s" arg)) + (error "rx ‘not’ syntax error: %s" arg)) t) @@ -640,7 +640,7 @@ If SKIP is non-nil, allow that number of items after the head, i.e. (setq form (rx-trans-forms form 1)) (unless (and (integerp (nth 1 form)) (> (nth 1 form) 0)) - (error "rx `=' requires positive integer first arg")) + (error "rx ‘=’ requires positive integer first arg")) (format "%s\\{%d\\}" (rx-form (nth 2 form) '*) (nth 1 form))) @@ -650,7 +650,7 @@ If SKIP is non-nil, allow that number of items after the head, i.e. (setq form (rx-trans-forms form 1)) (unless (and (integerp (nth 1 form)) (> (nth 1 form) 0)) - (error "rx `>=' requires positive integer first arg")) + (error "rx ‘>=’ requires positive integer first arg")) (format "%s\\{%d,\\}" (rx-form (nth 2 form) '*) (nth 1 form))) @@ -671,14 +671,14 @@ FORM is either `(repeat N FORM1)' or `(repeat N M FORMS...)'." (cond ((= (length form) 3) (unless (and (integerp (nth 1 form)) (> (nth 1 form) 0)) - (error "rx `repeat' requires positive integer first arg")) + (error "rx ‘repeat’ requires positive integer first arg")) (format "%s\\{%d\\}" (rx-form (nth 2 form) '*) (nth 1 form))) ((or (not (integerp (nth 2 form))) (< (nth 2 form) 0) (not (integerp (nth 1 form))) (< (nth 1 form) 0) (< (nth 2 form) (nth 1 form))) - (error "rx `repeat' range error")) + (error "rx ‘repeat’ range error")) (t (format "%s\\{%d,%d\\}" (rx-form (nth 3 form) '*) (nth 1 form) (nth 2 form))))) @@ -713,7 +713,7 @@ FORM is either `(repeat N FORM1)' or `(repeat N M FORMS...)'." (defun rx-check-backref (arg) "Check arg ARG for Rx `backref'." (or (and (integerp arg) (>= arg 1) (<= arg 9)) - (error "rx `backref' requires numeric 1<=arg<=9: %s" arg))) + (error "rx ‘backref’ requires numeric 1<=arg<=9: %s" arg))) (defun rx-kleene (form) "Parse and produce code from FORM. @@ -786,7 +786,7 @@ of all atomic regexps." (if (= 1 (length name)) (setq syntax (aref name 0)))))) (unless syntax - (error "Unknown rx syntax `%s'" sym))) + (error "Unknown rx syntax ‘%s’" sym))) (format "\\s%c" syntax))) @@ -794,7 +794,7 @@ of all atomic regexps." "Check the argument FORM of a `(category FORM)'." (unless (or (integerp form) (cdr (assq form rx-categories))) - (error "Unknown category `%s'" form)) + (error "Unknown category ‘%s’" form)) t) @@ -846,16 +846,16 @@ shy groups around the result and some more in other functions." (cond ((stringp info) info) ((null info) - (error "Unknown rx form `%s'" form)) + (error "Unknown rx form ‘%s’" form)) (t (funcall (nth 0 info) form))))) ((consp form) (let ((info (rx-info (car form) 'head))) (unless (consp info) - (error "Unknown rx form `%s'" (car form))) + (error "Unknown rx form ‘%s’" (car form))) (funcall (nth 0 info) form))) (t - (error "rx syntax error at `%s'" form)))) + (error "rx syntax error at ‘%s’" form)))) ;;;###autoload |