aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2017-12-20 16:23:11 -0500
committerGlenn Morris2017-12-20 16:23:11 -0500
commit471b6c163f16fbc0b7c58c223bdb7f18ac7656e7 (patch)
tree942b8f3c085ba83114651433bebc3d58c559010a
parent7af7f5e15589407e1e78d0595fa93b20aa7dbb5a (diff)
downloademacs-471b6c163f16fbc0b7c58c223bdb7f18ac7656e7.tar.gz
emacs-471b6c163f16fbc0b7c58c223bdb7f18ac7656e7.zip
; Replace non-ascii quote characters in doc strings etc
-rw-r--r--admin/last-chance.el24
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
-rw-r--r--lisp/gnus/message.el6
-rw-r--r--lisp/winner.el2
-rw-r--r--test/lisp/mouse-tests.el7
-rw-r--r--test/src/emacs-module-tests.el5
-rw-r--r--test/src/eval-tests.el4
-rw-r--r--test/src/fns-tests.el2
-rw-r--r--test/src/regex-tests.el4
9 files changed, 27 insertions, 29 deletions
diff --git a/admin/last-chance.el b/admin/last-chance.el
index 76b8bcf6db1..cd3f78bd595 100644
--- a/admin/last-chance.el
+++ b/admin/last-chance.el
@@ -25,13 +25,13 @@
25;;; Commentary: 25;;; Commentary:
26 26
27;; Late 2016. In a recent build, the date in a ChangeLog file 27;; Late 2016. In a recent build, the date in a ChangeLog file
28;; is not fontified. Turns out the face change-log-date-face 28;; is not fontified. Turns out the face `change-log-date-face'
29;; was declared obsolete since 22.1 and removed 2016-06-23. 29;; was declared obsolete since 22.1 and removed 2016-06-23.
30;; (compile "git show c430f7e23fc2c22f251ace4254e37dea1452dfc3") 30;; (compile "git show c430f7e23fc2c22f251ace4254e37dea1452dfc3")
31;; 31;;
32;; This library provides a command last-chance, which is a small 32;; This library provides a command `last-chance', which is a small
33;; combination of "git grep" and some regexp filtering. For example, 33;; combination of "git grep" and some regexp filtering. For example,
34;; if point is on the symbol change-log-date-face in the form: 34;; if point is on the symbol `change-log-date-face' in the form:
35;; 35;;
36;; (define-obsolete-face-alias 'change-log-date-face ...) 36;; (define-obsolete-face-alias 'change-log-date-face ...)
37;; 37;;
@@ -39,7 +39,7 @@
39;; 39;;
40;; M-x last-chance RET 40;; M-x last-chance RET
41;; 41;;
42;; will show you any references to change-log-date-face in the 42;; will show you any references to `change-log-date-face' in the
43;; *.el files in a new buffer (in Grep mode). Hopefully you see 43;; *.el files in a new buffer (in Grep mode). Hopefully you see
44;; only the obsolete declaration and can proceed w/ its removal. 44;; only the obsolete declaration and can proceed w/ its removal.
45;; If not, please DTRT and refrain from the removal until those 45;; If not, please DTRT and refrain from the removal until those
@@ -59,17 +59,17 @@ This should include -n, -H, -F.")
59(defvar last-chance-uninteresting-regexps 59(defvar last-chance-uninteresting-regexps
60 '("ChangeLog[.0-9]*:" 60 '("ChangeLog[.0-9]*:"
61 "NEWS[-.0-9]*:" 61 "NEWS[-.0-9]*:"
62 ;; Add more flush-lines args here. 62 ;; Add more `flush-lines' args here.
63 ) 63 )
64 "List of regexps that match uninteresting \"git grep\" hits.") 64 "List of regexps that match uninteresting \"git grep\" hits.")
65 65
66(defvar-local last-chance-symbol nil 66(defvar-local last-chance-symbol nil
67 "Symbol set by last-chance for last-chance-cleanup to DTRT.") 67 "Symbol set by `last-chance' for `last-chance-cleanup' to DTRT.")
68 68
69(defun last-chance-cleanup (buffer status) 69(defun last-chance-cleanup (buffer status)
70 "Filter lines in BUFFER; append STATUS and count of removed lines. 70 "Filter lines in BUFFER; append STATUS and count of removed lines.
71If BUFFER does not seem to be one created by last-chance, do nothing. 71If BUFFER does not seem to be one created by `last-chance', do nothing.
72This function is intended to be added to compilation-finish-functions." 72This function is intended to be added to `compilation-finish-functions'."
73 (let ((name (buffer-local-value 'last-chance-symbol buffer)) 73 (let ((name (buffer-local-value 'last-chance-symbol buffer))
74 bef aft) 74 bef aft)
75 (when name 75 (when name
@@ -90,10 +90,10 @@ This function is intended to be added to ‘compilation-finish-functions’."
90 90
91(defun last-chance (symbol) 91(defun last-chance (symbol)
92 "Grep the repo for SYMBOL, filtering the hits. 92 "Grep the repo for SYMBOL, filtering the hits.
93This uses last-chance-grep-command to do the grep and the 93This uses `last-chance-grep-command' to do the grep and the
94regexps in last-chance-uninteresting-regexps to filter the hits. 94regexps in `last-chance-uninteresting-regexps' to filter the hits.
95Grepping is recursive starting under the dir that vc-root-dir 95Grepping is recursive starting under the dir that `vc-root-dir'
96finds (or the default directory if vc-root-dir finds nothing). 96finds (or the default directory if `vc-root-dir' finds nothing).
97Output goes to the *grep* buffer. 97Output goes to the *grep* buffer.
98 98
99Interactively, Emacs queries for a symbol, 99Interactively, Emacs queries for a symbol,
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index d62d8128c11..1fdbb7307aa 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1253,7 +1253,7 @@ function directly; use `byte-compile-warn' or
1253(defun byte-compile-report-error (error-info &optional fill) 1253(defun byte-compile-report-error (error-info &optional fill)
1254 "Report Lisp error in compilation. 1254 "Report Lisp error in compilation.
1255ERROR-INFO is the error data, in the form of either (ERROR-SYMBOL . DATA) 1255ERROR-INFO is the error data, in the form of either (ERROR-SYMBOL . DATA)
1256or STRING. If FILL is non-nil, set warning-fill-prefix to four spaces 1256or STRING. If FILL is non-nil, set `warning-fill-prefix' to four spaces
1257when printing the error message." 1257when printing the error message."
1258 (setq byte-compiler-error-flag t) 1258 (setq byte-compiler-error-flag t)
1259 (byte-compile-log-warning 1259 (byte-compile-log-warning
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 750958dab7d..7ad66f5f3d8 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -6245,14 +6245,14 @@ they are."
6245(declare-function beginning-of-visual-line "simple" (&optional n)) 6245(declare-function beginning-of-visual-line "simple" (&optional n))
6246 6246
6247(defun message-beginning-of-header (handle-folded) 6247(defun message-beginning-of-header (handle-folded)
6248 "Move point to beginning of headers value. 6248 "Move point to beginning of header's value.
6249 6249
6250When point is at the first header line, moves it after the colon 6250When point is at the first header line, moves it after the colon
6251and spaces separating header name and header value. 6251and spaces separating header name and header value.
6252 6252
6253When point is in a continuation line of a folded header (i.e. the 6253When point is in a continuation line of a folded header (i.e. the
6254line starts with a space), the behavior depends on HANDLE-FOLDED 6254line starts with a space), the behavior depends on HANDLE-FOLDED
6255argument. If its nil, function moves the point to the start of 6255argument. If it's nil, function moves the point to the start of
6256the header continuation; otherwise, function locates the 6256the header continuation; otherwise, function locates the
6257beginning of the header and moves point past the colon as is the 6257beginning of the header and moves point past the colon as is the
6258case of single-line headers. 6258case of single-line headers.
@@ -6260,7 +6260,7 @@ case of single-line headers.
6260No check whether point is inside of a header or body of the 6260No check whether point is inside of a header or body of the
6261message is performed. 6261message is performed.
6262 6262
6263Returns point or nil if beginning of headers value could not be 6263Returns point or nil if beginning of header's value could not be
6264found. In the latter case, the point is still moved to the 6264found. In the latter case, the point is still moved to the
6265beginning of line (possibly after attempting to move it to the 6265beginning of line (possibly after attempting to move it to the
6266beginning of a folded header)." 6266beginning of a folded header)."
diff --git a/lisp/winner.el b/lisp/winner.el
index 6bc27484a79..041e9253607 100644
--- a/lisp/winner.el
+++ b/lisp/winner.el
@@ -353,7 +353,7 @@ You may want to include buffer names such as *Help*, *Apropos*,
353 "Toggle Winner mode on or off. 353 "Toggle Winner mode on or off.
354With a prefix argument ARG, enable Winner mode if ARG is 354With a prefix argument ARG, enable Winner mode if ARG is
355positive, and disable it otherwise. If called from Lisp, enable 355positive, and disable it otherwise. If called from Lisp, enable
356the mode if ARG is omitted or nil, and toggle it if ARG is toggle. 356the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'.
357 357
358Winner mode is a global minor mode that records the changes in 358Winner mode is a global minor mode that records the changes in
359the window configuration (i.e. how the frames are partitioned 359the window configuration (i.e. how the frames are partitioned
diff --git a/test/lisp/mouse-tests.el b/test/lisp/mouse-tests.el
index f8c91004ecc..170df4a9b98 100644
--- a/test/lisp/mouse-tests.el
+++ b/test/lisp/mouse-tests.el
@@ -26,8 +26,7 @@
26;;; Code: 26;;; Code:
27 27
28(ert-deftest bug23288-use-return-value () 28(ert-deftest bug23288-use-return-value ()
29 "If ‘mouse-on-link-p’ returns a string, its first character is 29 "If `mouse-on-link-p' returns a string, its first character is used."
30used."
31 (cl-letf ((last-input-event '(down-mouse-1 nil 1)) 30 (cl-letf ((last-input-event '(down-mouse-1 nil 1))
32 (unread-command-events '((mouse-1 nil 1))) 31 (unread-command-events '((mouse-1 nil 1)))
33 (mouse-1-click-follows-link t) 32 (mouse-1-click-follows-link t)
@@ -37,8 +36,8 @@ used."
37 (should (equal unread-command-events '(?a))))) 36 (should (equal unread-command-events '(?a)))))
38 37
39(ert-deftest bug23288-translate-to-mouse-2 () 38(ert-deftest bug23288-translate-to-mouse-2 ()
40 "If mouse-on-link-p doesnt return a string or vector, 39 "If `mouse-on-link-p' doesn't return a string or vector,
41translate mouse-1 events into mouse-2 events." 40translate `mouse-1' events into `mouse-2' events."
42 (cl-letf ((last-input-event '(down-mouse-1 nil 1)) 41 (cl-letf ((last-input-event '(down-mouse-1 nil 1))
43 (unread-command-events '((mouse-1 nil 1))) 42 (unread-command-events '((mouse-1 nil 1)))
44 (mouse-1-click-follows-link t) 43 (mouse-1-click-follows-link t)
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index 4b41fc21c20..767d87a7e35 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -231,10 +231,9 @@ must evaluate to a regular expression string."
231 (point) (point-max)))))))) 231 (point) (point-max))))))))
232 232
233(ert-deftest module--test-assertions--load-non-live-object () 233(ert-deftest module--test-assertions--load-non-live-object ()
234 "Check that -module-assertions verify that non-live objects 234 "Check that -module-assertions verify that non-live objects aren't accessed."
235aren’t accessed."
236 (skip-unless (file-executable-p mod-test-emacs)) 235 (skip-unless (file-executable-p mod-test-emacs))
237 ;; This doesnt yet cause undefined behavior. 236 ;; This doesn't yet cause undefined behavior.
238 (should (eq (mod-test-invalid-store) 123)) 237 (should (eq (mod-test-invalid-store) 123))
239 (module--test-assertion (rx "Emacs value not found in " 238 (module--test-assertion (rx "Emacs value not found in "
240 (+ digit) " values of " 239 (+ digit) " values of "
diff --git a/test/src/eval-tests.el b/test/src/eval-tests.el
index 7ff60dd01c4..15b2fdf9c4b 100644
--- a/test/src/eval-tests.el
+++ b/test/src/eval-tests.el
@@ -28,14 +28,14 @@
28(require 'ert) 28(require 'ert)
29 29
30(ert-deftest eval-tests--bug24673 () 30(ert-deftest eval-tests--bug24673 ()
31 "Checks that Bug#24673 has been fixed." 31 "Check that Bug#24673 has been fixed."
32 ;; This should not crash. 32 ;; This should not crash.
33 (should-error (funcall '(closure)) :type 'invalid-function)) 33 (should-error (funcall '(closure)) :type 'invalid-function))
34 34
35(defvar byte-compile-debug) 35(defvar byte-compile-debug)
36 36
37(ert-deftest eval-tests--bugs-24912-and-24913 () 37(ert-deftest eval-tests--bugs-24912-and-24913 ()
38 "Checks that Emacs doesnt accept weird argument lists. 38 "Check that Emacs doesn't accept weird argument lists.
39Bug#24912 and Bug#24913." 39Bug#24912 and Bug#24913."
40 (dolist (args '((&optional) (&rest) (&optional &rest) (&rest &optional) 40 (dolist (args '((&optional) (&rest) (&optional &rest) (&rest &optional)
41 (&optional &rest a) (&optional a &rest) 41 (&optional &rest a) (&optional a &rest)
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el
index 705d02fdff6..4d8228b9411 100644
--- a/test/src/fns-tests.el
+++ b/test/src/fns-tests.el
@@ -548,7 +548,7 @@
548 (should-error (nconc (cyc2 1 2) 'tail) :type 'circular-list)) 548 (should-error (nconc (cyc2 1 2) 'tail) :type 'circular-list))
549 549
550(ert-deftest plist-get/odd-number-of-elements () 550(ert-deftest plist-get/odd-number-of-elements ()
551 "Test that plist-get doesnt signal an error on degenerate plists." 551 "Test that `plist-get' doesn't signal an error on degenerate plists."
552 (should-not (plist-get '(:foo 1 :bar) :bar))) 552 (should-not (plist-get '(:foo 1 :bar) :bar)))
553 553
554(ert-deftest lax-plist-get/odd-number-of-elements () 554(ert-deftest lax-plist-get/odd-number-of-elements ()
diff --git a/test/src/regex-tests.el b/test/src/regex-tests.el
index b1f1ea71cef..220d42c8d2e 100644
--- a/test/src/regex-tests.el
+++ b/test/src/regex-tests.el
@@ -27,13 +27,13 @@
27 "Path to regex-resources directory next to the \"regex-tests.el\" file.") 27 "Path to regex-resources directory next to the \"regex-tests.el\" file.")
28 28
29(ert-deftest regex-word-cc-fallback-test () 29(ert-deftest regex-word-cc-fallback-test ()
30 "Test that [[:cc:]]*x matches x (bug#24020). 30 "Test that \"[[:cc:]]*x\" matches \"x\" (bug#24020).
31 31
32Test that a regex of the form \"[[:cc:]]*x\" where CC is 32Test that a regex of the form \"[[:cc:]]*x\" where CC is
33a character class which matches a multibyte character X, matches 33a character class which matches a multibyte character X, matches
34string \"x\". 34string \"x\".
35 35
36For example, [[:word:]]*\u2620 regex (note: \u2620 is a word 36For example, \"[[:word:]]*\u2620\" regex (note: \u2620 is a word
37character) must match a string \"\u2420\"." 37character) must match a string \"\u2420\"."
38 (dolist (class '("[[:word:]]" "\\sw")) 38 (dolist (class '("[[:word:]]" "\\sw"))
39 (dolist (repeat '("*" "+")) 39 (dolist (repeat '("*" "+"))