aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mh-e
diff options
context:
space:
mode:
authorPaul Eggert2015-09-17 16:08:20 -0700
committerPaul Eggert2015-09-17 16:09:39 -0700
commit284c470ef752967fcd8bae6a450dc138462b1e49 (patch)
tree83e8bcfe4c756e741ee9d4ecdf80f6b8d0e73c91 /lisp/mh-e
parentd149ff5233805c0a09b6067e0cf27549291cc83a (diff)
downloademacs-284c470ef752967fcd8bae6a450dc138462b1e49.tar.gz
emacs-284c470ef752967fcd8bae6a450dc138462b1e49.zip
Backslash cleanup in Elisp source files
This patch should not change behavior. It typically omits backslashes where they are redundant (e.g., in the string literal "^\$"). In a few places, insert backslashes where they make regular expressions clearer: e.g., replace "^\*" (equivalent to "^*") with "^\\*", which has the same effect as a regular expression. Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs, and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with RCS IDs, as that makes it clearer that the backslash is intended.
Diffstat (limited to 'lisp/mh-e')
-rw-r--r--lisp/mh-e/mh-alias.el2
-rw-r--r--lisp/mh-e/mh-comp.el4
-rw-r--r--lisp/mh-e/mh-e.el4
-rw-r--r--lisp/mh-e/mh-folder.el2
-rw-r--r--lisp/mh-e/mh-letter.el2
-rw-r--r--lisp/mh-e/mh-mime.el2
-rw-r--r--lisp/mh-e/mh-search.el2
-rw-r--r--lisp/mh-e/mh-utils.el2
-rw-r--r--lisp/mh-e/mh-xface.el2
9 files changed, 11 insertions, 11 deletions
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el
index de0038a306a..04e9fef59eb 100644
--- a/lisp/mh-e/mh-alias.el
+++ b/lisp/mh-e/mh-alias.el
@@ -417,7 +417,7 @@ string is converted to lower case."
417 417
418(defun mh-alias-insert-file (&optional alias) 418(defun mh-alias-insert-file (&optional alias)
419 "Return filename which should be used to add ALIAS. 419 "Return filename which should be used to add ALIAS.
420The value of the option `mh-alias-insert-file' is used if non-nil\; 420The value of the option `mh-alias-insert-file' is used if non-nil;
421otherwise the value of the \"Aliasfile:\" profile component is used. 421otherwise the value of the \"Aliasfile:\" profile component is used.
422If the alias already exists, try to return the name of the file that 422If the alias already exists, try to return the name of the file that
423contains it." 423contains it."
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index 700d22c3862..129e6857a4c 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -269,7 +269,7 @@ RETURN-ACTION and any additional arguments are IGNORED."
269 269
270When you are all through editing a message, you send it with this 270When you are all through editing a message, you send it with this
271command. You can give a prefix argument ARG to monitor the first stage 271command. You can give a prefix argument ARG to monitor the first stage
272of the delivery\; this output can be found in a buffer called \"*MH-E 272of the delivery; this output can be found in a buffer called \"*MH-E
273Mail Delivery*\". 273Mail Delivery*\".
274 274
275The hook `mh-before-send-letter-hook' is run at the beginning of 275The hook `mh-before-send-letter-hook' is run at the beginning of
@@ -1064,7 +1064,7 @@ The versions of MH-E, Emacs, and MH are shown."
1064 (string-match "[0-9]+\\.[0-9]+\\(\\.[0-9]+\\)?" 1064 (string-match "[0-9]+\\.[0-9]+\\(\\.[0-9]+\\)?"
1065 emacs-version) 1065 emacs-version)
1066 (match-string 0 emacs-version)) 1066 (match-string 0 emacs-version))
1067 ((string-match "[0-9.]*\\( +\([ a-z]+[0-9]+\)\\)?" 1067 ((string-match "[0-9.]*\\( +([ a-z]+[0-9]+)\\)?"
1068 emacs-version) 1068 emacs-version)
1069 (match-string 0 emacs-version)) 1069 (match-string 0 emacs-version))
1070 (t (format "%s.%s" emacs-major-version 1070 (t (format "%s.%s" emacs-major-version
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index 7cdf67cc150..96fe7d797c2 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -112,7 +112,7 @@
112 "\\(defgroup-mh\\)" 112 "\\(defgroup-mh\\)"
113 "\\)\\>" 113 "\\)\\>"
114 ;; Any whitespace and defined object. 114 ;; Any whitespace and defined object.
115 "[ \t'\(]*" 115 "[ \t'(]*"
116 "\\(setf[ \t]+\\sw+)\\|\\sw+\\)?") 116 "\\(setf[ \t]+\\sw+)\\|\\sw+\\)?")
117 (1 font-lock-keyword-face) 117 (1 font-lock-keyword-face)
118 (7 (cond ((match-beginning 2) font-lock-function-name-face) 118 (7 (cond ((match-beginning 2) font-lock-function-name-face)
@@ -1834,7 +1834,7 @@ message without line wrapping."
1834 "Default method to use in security tags. 1834 "Default method to use in security tags.
1835 1835
1836This option is used to select between a variety of mail security 1836This option is used to select between a variety of mail security
1837mechanisms. The default is \"PGP (MIME)\" if it is supported\; 1837mechanisms. The default is \"PGP (MIME)\" if it is supported;
1838otherwise, the default is \"None\". Other mechanisms include 1838otherwise, the default is \"None\". Other mechanisms include
1839vanilla \"PGP\" and \"S/MIME\". 1839vanilla \"PGP\" and \"S/MIME\".
1840 1840
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el
index ae5e2bf1f3b..d21720ebe55 100644
--- a/lisp/mh-e/mh-folder.el
+++ b/lisp/mh-e/mh-folder.el
@@ -755,7 +755,7 @@ You can enter the message NUMBER either before or after typing
755 755
756In a program, optional non-nil second argument NO-ERROR-IF-NO-MESSAGE 756In a program, optional non-nil second argument NO-ERROR-IF-NO-MESSAGE
757means return nil instead of signaling an error if message does not 757means return nil instead of signaling an error if message does not
758exist\; in this case, the cursor is positioned near where the message 758exist; in this case, the cursor is positioned near where the message
759would have been. Non-nil third argument DONT-SHOW means not to show 759would have been. Non-nil third argument DONT-SHOW means not to show
760the message." 760the message."
761 (interactive "NGo to message: ") 761 (interactive "NGo to message: ")
diff --git a/lisp/mh-e/mh-letter.el b/lisp/mh-e/mh-letter.el
index de2b2cf7fd9..7a56427027e 100644
--- a/lisp/mh-e/mh-letter.el
+++ b/lisp/mh-e/mh-letter.el
@@ -553,7 +553,7 @@ one space."
553(defun mh-letter-confirm-address () 553(defun mh-letter-confirm-address ()
554 "Flash alias expansion. 554 "Flash alias expansion.
555 555
556Addresses are separated by a comma\; when you press the comma, 556Addresses are separated by a comma; when you press the comma,
557this command flashes the alias expansion in the minibuffer if 557this command flashes the alias expansion in the minibuffer if
558`mh-alias-flash-on-comma' is turned on." 558`mh-alias-flash-on-comma' is turned on."
559 (interactive) 559 (interactive)
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el
index b69f956d5c2..a1c0bebd289 100644
--- a/lisp/mh-e/mh-mime.el
+++ b/lisp/mh-e/mh-mime.el
@@ -1715,7 +1715,7 @@ buffer, while END defaults to the end of the buffer."
1715(defun mh-minibuffer-read-type (filename &optional default) 1715(defun mh-minibuffer-read-type (filename &optional default)
1716 "Return the content type associated with the given FILENAME. 1716 "Return the content type associated with the given FILENAME.
1717If the \"file\" command exists and recognizes the given file, 1717If the \"file\" command exists and recognizes the given file,
1718then its value is returned\; otherwise, the user is prompted for 1718then its value is returned; otherwise, the user is prompted for
1719a type (see `mailcap-mime-types'). 1719a type (see `mailcap-mime-types').
1720Optional argument DEFAULT is returned if a type isn't entered." 1720Optional argument DEFAULT is returned if a type isn't entered."
1721 (mailcap-parse-mimetypes) 1721 (mailcap-parse-mimetypes)
diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el
index 7d066b0b8dd..b6eef4ecfc6 100644
--- a/lisp/mh-e/mh-search.el
+++ b/lisp/mh-e/mh-search.el
@@ -1247,7 +1247,7 @@ is used to search."
1247 (prog1 1247 (prog1
1248 (block nil 1248 (block nil
1249 (when (eobp) (return nil)) 1249 (when (eobp) (return nil))
1250 (when (search-forward-regexp "^\+" (mh-line-end-position) t) 1250 (when (search-forward-regexp "^\\+" (mh-line-end-position) t)
1251 (setq mh-index-pick-folder 1251 (setq mh-index-pick-folder
1252 (buffer-substring-no-properties (mh-line-beginning-position) 1252 (buffer-substring-no-properties (mh-line-beginning-position)
1253 (mh-line-end-position))) 1253 (mh-line-end-position)))
diff --git a/lisp/mh-e/mh-utils.el b/lisp/mh-e/mh-utils.el
index 643674a4523..37fd1651c5e 100644
--- a/lisp/mh-e/mh-utils.el
+++ b/lisp/mh-e/mh-utils.el
@@ -515,7 +515,7 @@ they will not be returned."
515 ;; folder is specified, ensure it is nil to avoid adding the 515 ;; folder is specified, ensure it is nil to avoid adding the
516 ;; folder to the folder-list and adding a slash to it. 516 ;; folder to the folder-list and adding a slash to it.
517 (when folder 517 (when folder
518 (setq folder (mh-replace-regexp-in-string "^\+" "" folder)) 518 (setq folder (mh-replace-regexp-in-string "^\\+" "" folder))
519 (setq folder (mh-replace-regexp-in-string "/+$" "" folder)) 519 (setq folder (mh-replace-regexp-in-string "/+$" "" folder))
520 (if (equal folder "") 520 (if (equal folder "")
521 (setq folder nil))) 521 (setq folder nil)))
diff --git a/lisp/mh-e/mh-xface.el b/lisp/mh-e/mh-xface.el
index b7b7febca26..d48a8b3d152 100644
--- a/lisp/mh-e/mh-xface.el
+++ b/lisp/mh-e/mh-xface.el
@@ -366,7 +366,7 @@ filenames. In addition, replaces * with %2a. See URL
366`http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/ifaces/iitemnamelimits/GetValidCharacters.asp'." 366`http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/ifaces/iitemnamelimits/GetValidCharacters.asp'."
367 (format "%s/%s.png" mh-x-image-cache-directory 367 (format "%s/%s.png" mh-x-image-cache-directory
368 (mh-replace-regexp-in-string 368 (mh-replace-regexp-in-string
369 "\*" "%2a" 369 "\\*" "%2a"
370 (mh-url-hexify-string 370 (mh-url-hexify-string
371 (with-temp-buffer 371 (with-temp-buffer
372 (insert url) 372 (insert url)