diff options
| author | Mattias EngdegÄrd | 2020-01-24 21:01:47 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-01-24 23:04:34 +0100 |
| commit | 0c6c8aa002d321db61afdd14c70744f7bc27f268 (patch) | |
| tree | cf079a7723cd6078f2260bb5c7bb0f4bd4183b17 /lisp/obsolete | |
| parent | a391ffa2f0377306449b36cc62858db823d2e990 (diff) | |
| download | emacs-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.
Diffstat (limited to 'lisp/obsolete')
| -rw-r--r-- | lisp/obsolete/iswitchb.el | 2 | ||||
| -rw-r--r-- | lisp/obsolete/old-whitespace.el | 8 | ||||
| -rw-r--r-- | lisp/obsolete/rcompile.el | 2 | ||||
| -rw-r--r-- | lisp/obsolete/vi.el | 2 | ||||
| -rw-r--r-- | lisp/obsolete/vip.el | 14 |
5 files changed, 14 insertions, 14 deletions
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. |
| 1394 | This is an example function which can be hooked on to | 1394 | This 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. |
| 385 | These are: | 385 | These are: |
| 386 | 1. Leading space \(empty lines at the top of a file\). | 386 | 1. Leading space \(empty lines at the top of a file). |
| 387 | 2. Trailing space \(empty lines at the end of a file\). | 387 | 2. Trailing space \(empty lines at the end of a file). |
| 388 | 3. Indentation space \(8 or more spaces, that should be replaced with TABS\). | 388 | 3. Indentation space \(8 or more spaces, that should be replaced with TABS). |
| 389 | 4. Spaces followed by a TAB. \(Almost always, we never want that\). | 389 | 4. Spaces followed by a TAB. \(Almost always, we never want that). |
| 390 | 5. Spaces or TABS at the end of a line. | 390 | 5. Spaces or TABS at the end of a line. |
| 391 | 391 | ||
| 392 | Check for whitespace only if this buffer really contains a non-empty file | 392 | Check 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. |
| 90 | This can be used for setting up environment variables, | 90 | This can be used for setting up environment variables, |
| 91 | since rsh does not invoke the shell as a login shell and files like .login | 91 | since 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. |
| 93 | nil means run no commands." | 93 | nil 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. |
| 2165 | a token has type \(command, address, end-mark\) and value." | 2165 | a 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))) |