diff options
| author | Mattias EngdegÄrd | 2020-02-17 18:26:47 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-02-20 16:03:30 +0100 |
| commit | 8dc4034ed6f86455c294f22a3d345b00cd4aa143 (patch) | |
| tree | 62a6795b8918bda84fa682d102d685bcbf6ac1f1 /lisp/shell.el | |
| parent | d950a61fc8d14faf71e3b546c59a72b6f711b5df (diff) | |
| download | emacs-8dc4034ed6f86455c294f22a3d345b00cd4aa143.tar.gz emacs-8dc4034ed6f86455c294f22a3d345b00cd4aa143.zip | |
Add and remove backslashes in regexps
These irregularities were found by relint; see
https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00949.html .
* doc/lispref/modes.texi (Example Major Modes):
* etc/srecode/el.srt:
* lisp/cedet/data-debug.el (data-debug-mode):
* lisp/cedet/semantic/grammar.el (semantic-grammar-mode):
* lisp/cedet/srecode/srt-mode.el (srecode-template-mode):
* lisp/comint.el (comint--unquote&requote-argument):
* lisp/emacs-lisp/lisp-mode.el (lisp-mode):
* lisp/gnus/mm-uu.el (mm-uu-type-alist):
* lisp/progmodes/cc-awk.el (c-awk-harmless-pattern-characters*):
* lisp/progmodes/cfengine.el (cfengine-common-settings):
* lisp/progmodes/cperl-mode.el (cperl-after-sub-regexp, cperl-init-faces):
* lisp/shell.el (shell-chdrive-regexp, shell--unquote&requote-argument):
* lisp/textmodes/tex-mode.el (tex-common-initialization):
Remove duplicated backslashes in character alternatives.
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
* lisp/progmodes/opascal.el (opascal--syntax-propertize):
* lisp/progmodes/pascal.el (pascal--syntax-propertize):
Remove backslashes escaping non-special characters.
* lisp/progmodes/fortran.el (fortran-font-lock-keywords-3): Escape '*'.
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Escape '^'.
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index ecebf937e29..1e2679f7235 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -252,7 +252,7 @@ This mirrors the optional behavior of tcsh." | |||
| 252 | (defcustom shell-chdrive-regexp | 252 | (defcustom shell-chdrive-regexp |
| 253 | (if (memq system-type '(ms-dos windows-nt)) | 253 | (if (memq system-type '(ms-dos windows-nt)) |
| 254 | ; NetWare allows the five chars between upper and lower alphabetics. | 254 | ; NetWare allows the five chars between upper and lower alphabetics. |
| 255 | "[]a-zA-Z^_`\\[\\\\]:" | 255 | "[]a-zA-Z^_`[\\]:" |
| 256 | nil) | 256 | nil) |
| 257 | "If non-nil, is regexp used to track drive changes." | 257 | "If non-nil, is regexp used to track drive changes." |
| 258 | :type '(choice regexp | 258 | :type '(choice regexp |
| @@ -377,7 +377,7 @@ Thus, this does not include the shell's current directory.") | |||
| 377 | "\\|\\$\\(?:\\([[:alpha:]][[:alnum:]]*\\)" | 377 | "\\|\\$\\(?:\\([[:alpha:]][[:alnum:]]*\\)" |
| 378 | "\\|{\\(?1:[^{}]+\\)}\\)" | 378 | "\\|{\\(?1:[^{}]+\\)}\\)" |
| 379 | (when (memq system-type '(ms-dos windows-nt)) | 379 | (when (memq system-type '(ms-dos windows-nt)) |
| 380 | "\\|%\\(?1:[^\\\\/]*\\)%") | 380 | "\\|%\\(?1:[^\\/]*\\)%") |
| 381 | (when comint-file-name-quote-list | 381 | (when comint-file-name-quote-list |
| 382 | "\\|\\\\\\(.\\)"))) | 382 | "\\|\\\\\\(.\\)"))) |
| 383 | (qupos nil) | 383 | (qupos nil) |