aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2020-01-24 21:01:47 +0100
committerMattias EngdegÄrd2020-01-24 23:04:34 +0100
commit0c6c8aa002d321db61afdd14c70744f7bc27f268 (patch)
treecf079a7723cd6078f2260bb5c7bb0f4bd4183b17
parenta391ffa2f0377306449b36cc62858db823d2e990 (diff)
downloademacs-0c6c8aa002d321db61afdd14c70744f7bc27f268.tar.gz
emacs-0c6c8aa002d321db61afdd14c70744f7bc27f268.zip
Remove (or double) redundant backslashes in string literals
See discussion at https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00749.html . * lisp/obsolete/iswitchb.el (iswitchb-summaries-to-end): * test/src/regex-emacs-tests.el (regex-tests-BOOST-frob-escapes): * test/lisp/help-fns-tests.el (help-fns-test-lisp-macro) (help-fns-test-lisp-defun, help-fns-test-lisp-defsubst) (help-fns-test-alias-to-defun, help-fns-test-bug23887): Double backslashes for desired effect. * lisp/org/ol.el (org-link-escape): * lisp/net/nsm.el (nsm-protocol-check--rsa-kx) (nsm-protocol-check--anon-kx, nsm-protocol-check--sha1-sig): * lisp/obsolete/old-whitespace.el (whitespace-buffer): * lisp/obsolete/rcompile.el (remote-compile-run-before): * lisp/obsolete/vi.el (vi-end-of-blank-delimited-word): * lisp/obsolete/vip.el (vip-current-major-mode) (vip-paren-match, vip-switch-to-buffer) (vip-switch-to-buffer-other-window, vip-kill-buffer) (vip-get-ex-token, ex-edit): * lisp/org/org-element.el (org-element--cache-sync-requests): * lisp/org/org.el (org-sparse-tree): * lisp/textmodes/reftex.el (reftex-report-bug): * test/lisp/ibuffer-tests.el (ibuffer-save-filters): * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--insert-failing-lines): * test/lisp/simple-tests.el (undo-test-kill-c-a-then-undo): * test/lisp/textmodes/conf-mode-tests.el (conf-test-toml-mode): * test/src/regex-emacs-tests.el (regex-tests-compare): Remove redundant backslashes.
-rw-r--r--lisp/net/nsm.el6
-rw-r--r--lisp/obsolete/iswitchb.el2
-rw-r--r--lisp/obsolete/old-whitespace.el8
-rw-r--r--lisp/obsolete/rcompile.el2
-rw-r--r--lisp/obsolete/vi.el2
-rw-r--r--lisp/obsolete/vip.el14
-rw-r--r--lisp/org/ol.el4
-rw-r--r--lisp/org/org-element.el2
-rw-r--r--lisp/org/org.el4
-rw-r--r--lisp/textmodes/reftex.el2
-rw-r--r--test/lisp/help-fns-tests.el10
-rw-r--r--test/lisp/ibuffer-tests.el2
-rw-r--r--test/lisp/international/ucs-normalize-tests.el2
-rw-r--r--test/lisp/simple-tests.el2
-rw-r--r--test/lisp/textmodes/conf-mode-tests.el2
-rw-r--r--test/src/regex-emacs-tests.el4
16 files changed, 34 insertions, 34 deletions
diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el
index 1b0f04e5a19..2d36c5e2571 100644
--- a/lisp/net/nsm.el
+++ b/lisp/net/nsm.el
@@ -371,7 +371,7 @@ Reference:
371Sheffer, Holz, Saint-Andre (May 2015). \"Recommendations for Secure 371Sheffer, Holz, Saint-Andre (May 2015). \"Recommendations for Secure
372Use of Transport Layer Security (TLS) and Datagram Transport Layer 372Use of Transport Layer Security (TLS) and Datagram Transport Layer
373Security (DTLS)\", \"(4.1. General Guidelines)\" 373Security (DTLS)\", \"(4.1. General Guidelines)\"
374`https://tools.ietf.org/html/rfc7525\#section-4.1'" 374`https://tools.ietf.org/html/rfc7525#section-4.1'"
375 (let ((kx (plist-get status :key-exchange))) 375 (let ((kx (plist-get status :key-exchange)))
376 (and (string-match "^\\bRSA\\b" kx) 376 (and (string-match "^\\bRSA\\b" kx)
377 (format-message 377 (format-message
@@ -468,7 +468,7 @@ Reference:
468 468
469GnuTLS authors (2018). \"GnuTLS Manual 4.3.3 Anonymous 469GnuTLS authors (2018). \"GnuTLS Manual 4.3.3 Anonymous
470authentication\", 470authentication\",
471`https://www.gnutls.org/manual/gnutls.html\#Anonymous-authentication'" 471`https://www.gnutls.org/manual/gnutls.html#Anonymous-authentication'"
472 (let ((kx (plist-get status :key-exchange))) 472 (let ((kx (plist-get status :key-exchange)))
473 (and (string-match "\\bANON\\b" kx) 473 (and (string-match "\\bANON\\b" kx)
474 (format-message 474 (format-message
@@ -603,7 +603,7 @@ References:
603full SHA-1\", `https://shattered.io/static/shattered.pdf' 603full SHA-1\", `https://shattered.io/static/shattered.pdf'
604[2]: Chromium Security Education TLS/SSL. \"Deprecated and Removed 604[2]: Chromium Security Education TLS/SSL. \"Deprecated and Removed
605Features (SHA-1 Certificate Signatures)\", 605Features (SHA-1 Certificate Signatures)\",
606`https://www.chromium.org/Home/chromium-security/education/tls\#TOC-SHA-1-Certificate-Signatures' 606`https://www.chromium.org/Home/chromium-security/education/tls#TOC-SHA-1-Certificate-Signatures'
607[3]: Jones J.C (2017). \"The end of SHA-1 on the Public Web\", 607[3]: Jones J.C (2017). \"The end of SHA-1 on the Public Web\",
608`https://blog.mozilla.org/security/2017/02/23/the-end-of-sha-1-on-the-public-web/' 608`https://blog.mozilla.org/security/2017/02/23/the-end-of-sha-1-on-the-public-web/'
609[4]: Apple Support (2017). \"Move to SHA-256 signed certificates to 609[4]: Apple Support (2017). \"Move to SHA-256 signed certificates to
diff --git a/lisp/obsolete/iswitchb.el b/lisp/obsolete/iswitchb.el
index 350eabdb0c1..96b063be701 100644
--- a/lisp/obsolete/iswitchb.el
+++ b/lisp/obsolete/iswitchb.el
@@ -1393,7 +1393,7 @@ Copied from `icomplete-tidy'."
1393 "Move the summaries to the end of the list. 1393 "Move the summaries to the end of the list.
1394This is an example function which can be hooked on to 1394This is an example function which can be hooked on to
1395`iswitchb-make-buflist-hook'. Any buffer matching the regexps 1395`iswitchb-make-buflist-hook'. Any buffer matching the regexps
1396`Summary' or `output\*$'are put to the end of the list." 1396`Summary' or `output\\*$'are put to the end of the list."
1397 (let ((summaries (delq nil 1397 (let ((summaries (delq nil
1398 (mapcar 1398 (mapcar
1399 (lambda (x) 1399 (lambda (x)
diff --git a/lisp/obsolete/old-whitespace.el b/lisp/obsolete/old-whitespace.el
index 95010c00200..2f46d7ddda5 100644
--- a/lisp/obsolete/old-whitespace.el
+++ b/lisp/obsolete/old-whitespace.el
@@ -383,10 +383,10 @@ To disable timer scans, set this to zero."
383(defun whitespace-buffer (&optional quiet) 383(defun whitespace-buffer (&optional quiet)
384 "Find five different types of white spaces in buffer. 384 "Find five different types of white spaces in buffer.
385These are: 385These are:
3861. Leading space \(empty lines at the top of a file\). 3861. Leading space \(empty lines at the top of a file).
3872. Trailing space \(empty lines at the end of a file\). 3872. Trailing space \(empty lines at the end of a file).
3883. Indentation space \(8 or more spaces, that should be replaced with TABS\). 3883. Indentation space \(8 or more spaces, that should be replaced with TABS).
3894. Spaces followed by a TAB. \(Almost always, we never want that\). 3894. Spaces followed by a TAB. \(Almost always, we never want that).
3905. Spaces or TABS at the end of a line. 3905. Spaces or TABS at the end of a line.
391 391
392Check for whitespace only if this buffer really contains a non-empty file 392Check for whitespace only if this buffer really contains a non-empty file
diff --git a/lisp/obsolete/rcompile.el b/lisp/obsolete/rcompile.el
index 5ef8be20d98..6d95b7136b1 100644
--- a/lisp/obsolete/rcompile.el
+++ b/lisp/obsolete/rcompile.el
@@ -89,7 +89,7 @@ nil means use the value returned by \\[user-login-name]."
89 "Command to run before compilation. 89 "Command to run before compilation.
90This can be used for setting up environment variables, 90This can be used for setting up environment variables,
91since rsh does not invoke the shell as a login shell and files like .login 91since rsh does not invoke the shell as a login shell and files like .login
92\(tcsh\) and .bash_profile \(bash\) are not run. 92\(tcsh) and .bash_profile \(bash) are not run.
93nil means run no commands." 93nil means run no commands."
94 :type '(choice string (const nil)) 94 :type '(choice string (const nil))
95 :group 'remote-compile) 95 :group 'remote-compile)
diff --git a/lisp/obsolete/vi.el b/lisp/obsolete/vi.el
index df5ddfdbcf9..eee00b43a26 100644
--- a/lisp/obsolete/vi.el
+++ b/lisp/obsolete/vi.el
@@ -1225,7 +1225,7 @@ SPECIAL FEATURE: char argument can be used to specify shift amount(1-9)."
1225(defun vi-end-of-blank-delimited-word (count) 1225(defun vi-end-of-blank-delimited-word (count)
1226 "Forward to the end of the COUNT'th blank-delimited word." 1226 "Forward to the end of the COUNT'th blank-delimited word."
1227 (interactive "p") 1227 (interactive "p")
1228 (if (re-search-forward "[^ \t\n\']+[ \t\n\']" nil t count) 1228 (if (re-search-forward "[^ \t\n']+[ \t\n']" nil t count)
1229 (if (not (eobp)) (backward-char 2)))) 1229 (if (not (eobp)) (backward-char 2))))
1230 1230
1231(defun vi-home-window-line (arg) 1231(defun vi-home-window-line (arg)
diff --git a/lisp/obsolete/vip.el b/lisp/obsolete/vip.el
index 4a9b8fff264..37defd1c5a4 100644
--- a/lisp/obsolete/vip.el
+++ b/lisp/obsolete/vip.el
@@ -80,7 +80,7 @@
80 80
81(defvar vip-current-major-mode nil 81(defvar vip-current-major-mode nil
82 "vip-current-major-mode is the major-mode vi considers it is now. 82 "vip-current-major-mode is the major-mode vi considers it is now.
83\(buffer specific\)") 83\(buffer specific)")
84 84
85(make-variable-buffer-local 'vip-current-major-mode) 85(make-variable-buffer-local 'vip-current-major-mode)
86 86
@@ -1510,7 +1510,7 @@ used. This behavior is controlled by the sign of prefix numeric value."
1510 (* (/ (point-max) 100) arg) 1510 (* (/ (point-max) 100) arg)
1511 (/ (* (point-max) arg) 100))) 1511 (/ (* (point-max) arg) 100)))
1512 (back-to-indentation)) 1512 (back-to-indentation))
1513 (cond ((looking-at "[\(\[{]") 1513 (cond ((looking-at "[([{]")
1514 (if com (move-marker vip-com-point (point))) 1514 (if com (move-marker vip-com-point (point)))
1515 (forward-sexp 1) 1515 (forward-sexp 1)
1516 (if com 1516 (if com
@@ -1719,7 +1719,7 @@ STRING. Search will be forward if FORWARD, otherwise backward."
1719 (let (buffer) 1719 (let (buffer)
1720 (setq buffer 1720 (setq buffer
1721 (read-buffer 1721 (read-buffer
1722 (format "switch to buffer \(%s\): " 1722 (format "switch to buffer (%s): "
1723 (buffer-name (other-buffer (current-buffer)))))) 1723 (buffer-name (other-buffer (current-buffer))))))
1724 (switch-to-buffer buffer) 1724 (switch-to-buffer buffer)
1725 (vip-change-mode-to-vi))) 1725 (vip-change-mode-to-vi)))
@@ -1730,7 +1730,7 @@ STRING. Search will be forward if FORWARD, otherwise backward."
1730 (let (buffer) 1730 (let (buffer)
1731 (setq buffer 1731 (setq buffer
1732 (read-buffer 1732 (read-buffer
1733 (format "Switch to buffer \(%s\): " 1733 (format "Switch to buffer (%s): "
1734 (buffer-name (other-buffer (current-buffer)))))) 1734 (buffer-name (other-buffer (current-buffer))))))
1735 (switch-to-buffer-other-window buffer) 1735 (switch-to-buffer-other-window buffer)
1736 (vip-change-mode-to-vi))) 1736 (vip-change-mode-to-vi)))
@@ -1741,7 +1741,7 @@ STRING. Search will be forward if FORWARD, otherwise backward."
1741 (let (buffer buffer-name) 1741 (let (buffer buffer-name)
1742 (setq buffer-name 1742 (setq buffer-name
1743 (read-buffer 1743 (read-buffer
1744 (format "Kill buffer \(%s\): " 1744 (format "Kill buffer (%s): "
1745 (buffer-name (current-buffer))))) 1745 (buffer-name (current-buffer)))))
1746 (setq buffer 1746 (setq buffer
1747 (if (null buffer-name) 1747 (if (null buffer-name)
@@ -2162,7 +2162,7 @@ is a command.")
2162 2162
2163(defun vip-get-ex-token () 2163(defun vip-get-ex-token ()
2164 "get an ex-token which is either an address or a command. 2164 "get an ex-token which is either an address or a command.
2165a token has type \(command, address, end-mark\) and value." 2165a token has type \(command, address, end-mark) and value."
2166 (with-current-buffer " *ex-working-space*" 2166 (with-current-buffer " *ex-working-space*"
2167 (skip-chars-forward " \t") 2167 (skip-chars-forward " \t")
2168 (cond ((looking-at "[k#]") 2168 (cond ((looking-at "[k#]")
@@ -2668,7 +2668,7 @@ a token has type \(command, address, end-mark\) and value."
2668 "ex-edit" 2668 "ex-edit"
2669 (vip-get-ex-file) 2669 (vip-get-ex-file)
2670 (if (and (not ex-variant) (buffer-modified-p) buffer-file-name) 2670 (if (and (not ex-variant) (buffer-modified-p) buffer-file-name)
2671 (error "No write since last change \(:e! overrides\)")) 2671 (error "No write since last change (:e! overrides)"))
2672 (vip-change-mode-to-emacs) 2672 (vip-change-mode-to-emacs)
2673 (set-buffer 2673 (set-buffer
2674 (find-file-noselect (concat default-directory ex-file))) 2674 (find-file-noselect (concat default-directory ex-file)))
diff --git a/lisp/org/ol.el b/lisp/org/ol.el
index baed23bc9a4..c9e4da598ff 100644
--- a/lisp/org/ol.el
+++ b/lisp/org/ol.el
@@ -845,8 +845,8 @@ E.g. \"%C3%B6\" becomes the german o-Umlaut."
845 (insert link) 845 (insert link)
846 (insert (make-string (- (skip-chars-backward "\\\\")) 846 (insert (make-string (- (skip-chars-backward "\\\\"))
847 ?\\)) 847 ?\\))
848 (while (search-backward "\]" nil t) 848 (while (search-backward "]" nil t)
849 (when (looking-at-p "\\]\\(?:[][]\\|\\'\\)") 849 (when (looking-at-p "]\\(?:[][]\\|\\'\\)")
850 (insert (make-string (1+ (- (skip-chars-backward "\\\\"))) 850 (insert (make-string (1+ (- (skip-chars-backward "\\\\")))
851 ?\\)))) 851 ?\\))))
852 (buffer-string))) 852 (buffer-string)))
diff --git a/lisp/org/org-element.el b/lisp/org/org-element.el
index 4b5f9a19e6d..be74dfdbeff 100644
--- a/lisp/org/org-element.el
+++ b/lisp/org/org-element.el
@@ -4892,7 +4892,7 @@ with `org-element--cache-compare'. This cache is used in
4892 4892
4893A request is a vector with the following pattern: 4893A request is a vector with the following pattern:
4894 4894
4895 \[NEXT BEG END OFFSET PARENT PHASE] 4895 [NEXT BEG END OFFSET PARENT PHASE]
4896 4896
4897Processing a synchronization request consists of three phases: 4897Processing a synchronization request consists of three phases:
4898 4898
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 5c8b02b9d1f..1581625a8e5 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -11410,8 +11410,8 @@ D Show deadlines and scheduled items between a date range."
11410 (setq type (or type org-sparse-tree-default-date-type)) 11410 (setq type (or type org-sparse-tree-default-date-type))
11411 (setq org-ts-type type) 11411 (setq org-ts-type type)
11412 (message "Sparse tree: [r]egexp [t]odo [T]odo-kwd [m]atch [p]roperty 11412 (message "Sparse tree: [r]egexp [t]odo [T]odo-kwd [m]atch [p]roperty
11413 \[d]eadlines [b]efore-date [a]fter-date [D]ates range 11413 [d]eadlines [b]efore-date [a]fter-date [D]ates range
11414 \[c]ycle through date types: %s" 11414 [c]ycle through date types: %s"
11415 (cl-case type 11415 (cl-case type
11416 (all "all timestamps") 11416 (all "all timestamps")
11417 (scheduled "only scheduled") 11417 (scheduled "only scheduled")
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 542f1fef14e..4071c0dd074 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -2371,7 +2371,7 @@ what in fact did happen.
2371Check if the bug is reproducible with an up-to-date version of 2371Check if the bug is reproducible with an up-to-date version of
2372RefTeX available from https://www.gnu.org/software/auctex/. 2372RefTeX available from https://www.gnu.org/software/auctex/.
2373 2373
2374If the bug is triggered by a specific \(La)TeX file, you should try 2374If the bug is triggered by a specific (La)TeX file, you should try
2375to produce a minimal sample file showing the problem and include it 2375to produce a minimal sample file showing the problem and include it
2376in your report. 2376in your report.
2377 2377
diff --git a/test/lisp/help-fns-tests.el b/test/lisp/help-fns-tests.el
index 4c808d8372e..ef42d4bda29 100644
--- a/test/lisp/help-fns-tests.el
+++ b/test/lisp/help-fns-tests.el
@@ -56,28 +56,28 @@ Return first line of the output of (describe-function-1 FUNC)."
56 (should (string-match regexp result)))) 56 (should (string-match regexp result))))
57 57
58(ert-deftest help-fns-test-lisp-macro () 58(ert-deftest help-fns-test-lisp-macro ()
59 (let ((regexp "a Lisp macro in .subr\.el") 59 (let ((regexp "a Lisp macro in .subr\\.el")
60 (result (help-fns-tests--describe-function 'when))) 60 (result (help-fns-tests--describe-function 'when)))
61 (should (string-match regexp result)))) 61 (should (string-match regexp result))))
62 62
63(ert-deftest help-fns-test-lisp-defun () 63(ert-deftest help-fns-test-lisp-defun ()
64 (let ((regexp "a compiled Lisp function in .subr\.el") 64 (let ((regexp "a compiled Lisp function in .subr\\.el")
65 (result (help-fns-tests--describe-function 'last))) 65 (result (help-fns-tests--describe-function 'last)))
66 (should (string-match regexp result)))) 66 (should (string-match regexp result))))
67 67
68(ert-deftest help-fns-test-lisp-defsubst () 68(ert-deftest help-fns-test-lisp-defsubst ()
69 (let ((regexp "a compiled Lisp function in .subr\.el") 69 (let ((regexp "a compiled Lisp function in .subr\\.el")
70 (result (help-fns-tests--describe-function 'posn-window))) 70 (result (help-fns-tests--describe-function 'posn-window)))
71 (should (string-match regexp result)))) 71 (should (string-match regexp result))))
72 72
73(ert-deftest help-fns-test-alias-to-defun () 73(ert-deftest help-fns-test-alias-to-defun ()
74 (let ((regexp "an alias for .set-file-modes. in .subr\.el") 74 (let ((regexp "an alias for .set-file-modes. in .subr\\.el")
75 (result (help-fns-tests--describe-function 'chmod))) 75 (result (help-fns-tests--describe-function 'chmod)))
76 (should (string-match regexp result)))) 76 (should (string-match regexp result))))
77 77
78(ert-deftest help-fns-test-bug23887 () 78(ert-deftest help-fns-test-bug23887 ()
79 "Test for https://debbugs.gnu.org/23887 ." 79 "Test for https://debbugs.gnu.org/23887 ."
80 (let ((regexp "an alias for .re-search-forward. in .subr\.el") 80 (let ((regexp "an alias for .re-search-forward. in .subr\\.el")
81 (result (help-fns-tests--describe-function 'search-forward-regexp))) 81 (result (help-fns-tests--describe-function 'search-forward-regexp)))
82 (should (string-match regexp result)))) 82 (should (string-match regexp result))))
83 83
diff --git a/test/lisp/ibuffer-tests.el b/test/lisp/ibuffer-tests.el
index 8dadb920547..2211cae305b 100644
--- a/test/lisp/ibuffer-tests.el
+++ b/test/lisp/ibuffer-tests.el
@@ -82,7 +82,7 @@
82 (test1 '((mode . org-mode) 82 (test1 '((mode . org-mode)
83 (or (size-gt . 10000) 83 (or (size-gt . 10000)
84 (and (not (starred-name)) 84 (and (not (starred-name))
85 (directory . "\<org\>"))))) 85 (directory . "<org>")))))
86 (test2 '((or (mode . emacs-lisp-mode) (file-extension . "elc?") 86 (test2 '((or (mode . emacs-lisp-mode) (file-extension . "elc?")
87 (and (starred-name) (name . "elisp")) 87 (and (starred-name) (name . "elisp"))
88 (mode . lisp-interaction-mode)))) 88 (mode . lisp-interaction-mode))))
diff --git a/test/lisp/international/ucs-normalize-tests.el b/test/lisp/international/ucs-normalize-tests.el
index 82ea2078f16..ec77e65271d 100644
--- a/test/lisp/international/ucs-normalize-tests.el
+++ b/test/lisp/international/ucs-normalize-tests.el
@@ -299,7 +299,7 @@ implementations:
299 (list " var var)) 299 (list " var var))
300 (dolist (linos (seq-partition newval 8)) 300 (dolist (linos (seq-partition newval 8))
301 (insert (mapconcat #'number-to-string linos " ") "\n")) 301 (insert (mapconcat #'number-to-string linos " ") "\n"))
302 (insert ")\)")) 302 (insert "))"))
303 303
304(defun ucs-normalize-check-failing-lines () 304(defun ucs-normalize-check-failing-lines ()
305 (interactive) 305 (interactive)
diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el
index 276df795fca..ae201465678 100644
--- a/test/lisp/simple-tests.el
+++ b/test/lisp/simple-tests.el
@@ -427,7 +427,7 @@ See bug#35036."
427 (with-temp-buffer 427 (with-temp-buffer
428 (switch-to-buffer (current-buffer)) 428 (switch-to-buffer (current-buffer))
429 (setq buffer-undo-list nil) 429 (setq buffer-undo-list nil)
430 (insert "a\nb\n\c\n") 430 (insert "a\nb\nc\n")
431 (goto-char (point-max)) 431 (goto-char (point-max))
432 ;; We use a keyboard macro because it adds undo events in the same 432 ;; We use a keyboard macro because it adds undo events in the same
433 ;; way as if a user were involved. 433 ;; way as if a user were involved.
diff --git a/test/lisp/textmodes/conf-mode-tests.el b/test/lisp/textmodes/conf-mode-tests.el
index 814cb06b960..7e870269959 100644
--- a/test/lisp/textmodes/conf-mode-tests.el
+++ b/test/lisp/textmodes/conf-mode-tests.el
@@ -162,7 +162,7 @@ image/tiff tiff tif
162(ert-deftest conf-test-toml-mode () 162(ert-deftest conf-test-toml-mode ()
163 ;; From `conf-toml-mode' docstring. 163 ;; From `conf-toml-mode' docstring.
164 (with-temp-buffer 164 (with-temp-buffer
165 (insert "\[entry] 165 (insert "[entry]
166value = \"some string\"") 166value = \"some string\"")
167 (goto-char (point-min)) 167 (goto-char (point-min))
168 (conf-toml-mode) 168 (conf-toml-mode)
diff --git a/test/src/regex-emacs-tests.el b/test/src/regex-emacs-tests.el
index 6a661afeff9..ad0271049c3 100644
--- a/test/src/regex-emacs-tests.el
+++ b/test/src/regex-emacs-tests.el
@@ -161,7 +161,7 @@ what failed, if anything; valid values are 'search-failed,
161'compilation-failed and nil. I compare the beginning/end of each 161'compilation-failed and nil. I compare the beginning/end of each
162group with their expected values. This is done with either 162group with their expected values. This is done with either
163BOUNDS-REF or SUBSTRING-REF; one of those should be non-nil. 163BOUNDS-REF or SUBSTRING-REF; one of those should be non-nil.
164BOUNDS-REF is a sequence \[start-ref0 end-ref0 start-ref1 164BOUNDS-REF is a sequence [start-ref0 end-ref0 start-ref1
165end-ref1 ....] while SUBSTRING-REF is the expected substring 165end-ref1 ....] while SUBSTRING-REF is the expected substring
166obtained by indexing the input string by start/end-ref. 166obtained by indexing the input string by start/end-ref.
167 167
@@ -327,7 +327,7 @@ emacs requires an extra symbol character"
327(defun regex-tests-BOOST-frob-escapes (s ispattern) 327(defun regex-tests-BOOST-frob-escapes (s ispattern)
328 "Mangle \\ the way it is done in frob_escapes() in 328 "Mangle \\ the way it is done in frob_escapes() in
329regex-tests-BOOST.c in glibc: \\t, \\n, \\r are interpreted; 329regex-tests-BOOST.c in glibc: \\t, \\n, \\r are interpreted;
330\\\\, \\^, \{, \\|, \} are unescaped for the string (not 330\\\\, \\^, \\{, \\|, \\} are unescaped for the string (not
331pattern)" 331pattern)"
332 332
333 ;; this is all similar to (regex-tests-unextend) 333 ;; this is all similar to (regex-tests-unextend)