aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
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/mail
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/mail')
-rw-r--r--lisp/mail/feedmail.el45
-rw-r--r--lisp/mail/mail-extr.el30
-rw-r--r--lisp/mail/mailclient.el2
-rw-r--r--lisp/mail/mspools.el2
-rw-r--r--lisp/mail/rmail.el6
-rw-r--r--lisp/mail/rmailmm.el12
6 files changed, 49 insertions, 48 deletions
diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el
index 368e2ab8982..aec93db3fa6 100644
--- a/lisp/mail/feedmail.el
+++ b/lisp/mail/feedmail.el
@@ -438,7 +438,7 @@ shuttled robotically onward."
438If a positive number, it's a timeout before sending. If a negative 438If a positive number, it's a timeout before sending. If a negative
439number, it's a timeout before not sending. This will not work if your 439number, it's a timeout before not sending. This will not work if your
440version of Emacs doesn't include the function `y-or-n-p-with-timeout' 440version of Emacs doesn't include the function `y-or-n-p-with-timeout'
441\(e.g., some versions of XEmacs\)." 441\(e.g., some versions of XEmacs)."
442 :version "24.1" 442 :version "24.1"
443 :group 'feedmail-misc 443 :group 'feedmail-misc
444 :type '(choice (const nil) integer) 444 :type '(choice (const nil) integer)
@@ -449,7 +449,7 @@ version of Emacs doesn't include the function `y-or-n-p-with-timeout'
449 "If non-nil remove Bcc: lines from the message headers. 449 "If non-nil remove Bcc: lines from the message headers.
450In any case, the Bcc: lines do participate in the composed address 450In any case, the Bcc: lines do participate in the composed address
451list. You may want to leave them in if you're using sendmail 451list. You may want to leave them in if you're using sendmail
452\(see `feedmail-buffer-eating-function'\)." 452\(see `feedmail-buffer-eating-function')."
453 :group 'feedmail-headers 453 :group 'feedmail-headers
454 :type 'boolean 454 :type 'boolean
455 ) 455 )
@@ -459,7 +459,7 @@ list. You may want to leave them in if you're using sendmail
459 "If non-nil remove Resent-Bcc: lines from the message headers. 459 "If non-nil remove Resent-Bcc: lines from the message headers.
460In any case, the Resent-Bcc: lines do participate in the composed 460In any case, the Resent-Bcc: lines do participate in the composed
461address list. You may want to leave them in if you're using sendmail 461address list. You may want to leave them in if you're using sendmail
462\(see `feedmail-buffer-eating-function'\)." 462\(see `feedmail-buffer-eating-function')."
463 :group 'feedmail-headers 463 :group 'feedmail-headers
464 :type 'boolean 464 :type 'boolean
465 ) 465 )
@@ -645,7 +645,7 @@ is not an option for many users. As this is the default behavior of most
645sendmail installations, one can mostly only wish it were otherwise. If feedmail 645sendmail installations, one can mostly only wish it were otherwise. If feedmail
646believes the sendmail program will sell you out this way, it won't use the \"-f\" 646believes the sendmail program will sell you out this way, it won't use the \"-f\"
647option when calling sendmail. If it doesn't think sendmail will sell you out, 647option when calling sendmail. If it doesn't think sendmail will sell you out,
648it will use the \"-f\" \(since it is a handy feature\). You control what 648it will use the \"-f\" \(since it is a handy feature). You control what
649feedmail thinks with this variable. The default is nil, meaning that feedmail 649feedmail thinks with this variable. The default is nil, meaning that feedmail
650will believe that sendmail will sell you out." 650will believe that sendmail will sell you out."
651 :version "24.1" 651 :version "24.1"
@@ -861,7 +861,7 @@ as well."
861 "User-supplied specification for a crude form of mailmerge capability. 861 "User-supplied specification for a crude form of mailmerge capability.
862When spraying is enabled, feedmail composes a list of envelope addresses. 862When spraying is enabled, feedmail composes a list of envelope addresses.
863In turn, `feedmail-spray-this-address' is temporarily set to each address 863In turn, `feedmail-spray-this-address' is temporarily set to each address
864\(stripped of any comments and angle brackets\) and a function is called which 864\(stripped of any comments and angle brackets) and a function is called which
865fiddles message headers according to this variable. See the documentation for 865fiddles message headers according to this variable. See the documentation for
866`feedmail-fiddle-plex-blurb', for an overview of fiddle-plex data structures. 866`feedmail-fiddle-plex-blurb', for an overview of fiddle-plex data structures.
867 867
@@ -1313,7 +1313,7 @@ of `buffer-file-name' to nil because that will defeat feedmail's file
1313management features. Instead, arrange for this variable to be set to 1313management features. Instead, arrange for this variable to be set to
1314the value of `buffer-file-name' before setting that to nil. An easy way 1314the value of `buffer-file-name' before setting that to nil. An easy way
1315to do that would be with defadvice on `mail-send' \(undoing the 1315to do that would be with defadvice on `mail-send' \(undoing the
1316assignments in a later advice\). 1316assignments in a later advice).
1317 1317
1318feedmail will pretend that `buffer-file-name', if nil, has the value 1318feedmail will pretend that `buffer-file-name', if nil, has the value
1319assigned of `feedmail-queue-buffer-file-name' and carry out its normal 1319assigned of `feedmail-queue-buffer-file-name' and carry out its normal
@@ -1507,7 +1507,7 @@ The default action is an anonymous function which gets rid of the file
1507from the queue directory. With a non-nil second argument, a brief 1507from the queue directory. With a non-nil second argument, a brief
1508message is give for each file deleted. You could replace this 1508message is give for each file deleted. You could replace this
1509function, for example, to archive all of your sent messages someplace 1509function, for example, to archive all of your sent messages someplace
1510\(though there are better ways to get that particular result\)." 1510\(though there are better ways to get that particular result)."
1511 :group 'feedmail-queue 1511 :group 'feedmail-queue
1512 :type 'function 1512 :type 'function
1513 ) 1513 )
@@ -1715,7 +1715,7 @@ for ACTION (default is `supplement'):
1715 VAL-LIKE is not used. Else, if VAL-LIKE is a function, 1715 VAL-LIKE is not used. Else, if VAL-LIKE is a function,
1716 it is called with two arguments: NAME and the 1716 it is called with two arguments: NAME and the
1717 aggregate like values. Else, if VAL-LIKE is a string, it is 1717 aggregate like values. Else, if VAL-LIKE is a string, it is
1718 used as a format string where a single \%s will be 1718 used as a format string where a single %s will be
1719 replaced by the aggregate values of like fields. 1719 replaced by the aggregate values of like fields.
1720 1720
1721 VAL-PRE, the results of using VAL-LIKE, and VAL-POST 1721 VAL-PRE, the results of using VAL-LIKE, and VAL-POST
@@ -1745,7 +1745,8 @@ applied to a file after you've just read it from disk: for example, a
1745feedmail FQM message file from a queue. You could use something like 1745feedmail FQM message file from a queue. You could use something like
1746this: 1746this:
1747 1747
1748\(setq auto-mode-alist \(cons \\='\(\"\\\\.fqm$\" . feedmail-vm-mail-mode\) auto-mode-alist\)\) 1748\(setq auto-mode-alist
1749 (cons \\='(\"\\\\.fqm$\" . feedmail-vm-mail-mode) auto-mode-alist))
1749" 1750"
1750 (feedmail-say-debug ">in-> feedmail-vm-mail-mode") 1751 (feedmail-say-debug ">in-> feedmail-vm-mail-mode")
1751 (let ((the-buf (current-buffer))) 1752 (let ((the-buf (current-buffer)))
@@ -1894,26 +1895,26 @@ You're dispatching a message and feedmail queuing is enabled.
1894Typing ? again will normally scroll this help buffer. 1895Typing ? again will normally scroll this help buffer.
1895 1896
1896Choices: 1897Choices:
1897 q QUEUE for later sending \(via feedmail-run-the-queue\) 1898 q QUEUE for later sending (via feedmail-run-the-queue)
1898 Q QUEUE! like \"q\", but always make a new file 1899 Q QUEUE! like \"q\", but always make a new file
1899 i IMMEDIATELY send this \(but not the other queued messages\) 1900 i IMMEDIATELY send this (but not the other queued messages)
1900 I IMMEDIATELY! like \"i\", but skip following confirmation prompt 1901 I IMMEDIATELY! like \"i\", but skip following confirmation prompt
1901 d DRAFT queue in the draft directory 1902 d DRAFT queue in the draft directory
1902 D DRAFT! like \"d\", but always make a new file 1903 D DRAFT! like \"d\", but always make a new file
1903 e EDIT return to the message edit buffer \(don't send or queue\) 1904 e EDIT return to the message edit buffer (don't send or queue)
1904 * SPRAY toggle spray mode \(individual message transmissions\) 1905 * SPRAY toggle spray mode (individual message transmissions)
1905 > SCROLL UP scroll message up \(toward end of message\) 1906 > SCROLL UP scroll message up (toward end of message)
1906 < SCROLL DOWN scroll message down \(toward beginning of message\) 1907 < SCROLL DOWN scroll message down (toward beginning of message)
1907 ? HELP show or scroll this help buffer 1908 ? HELP show or scroll this help buffer
1908 1909
1909Synonyms: 1910Synonyms:
1910 s SEND immediately \(same as \"i\"\) 1911 s SEND immediately (same as \"i\")
1911 S SEND! immediately \(same as \"I\"\) 1912 S SEND! immediately (same as \"I\")
1912 r ROUGH draft \(same as \"d\"\) 1913 r ROUGH draft (same as \"d\")
1913 R ROUGH! draft \(same as \"D\"\) 1914 R ROUGH! draft (same as \"D\")
1914 n NOPE didn't mean it \(same as \"e\"\) 1915 n NOPE didn't mean it (same as \"e\")
1915 y YUP do the default behavior \(same as \"C-m\"\) 1916 y YUP do the default behavior (same as \"C-m\")
1916 SPC SCROLL UP \(same as \">\"\) 1917 SPC SCROLL UP (same as \">\")
1917 1918
1918The user-configurable default is currently \"")) 1919The user-configurable default is currently \""))
1919 (princ d-string) 1920 (princ d-string)
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el
index 5164ea1bfed..a7057ca21c8 100644
--- a/lisp/mail/mail-extr.el
+++ b/lisp/mail/mail-extr.el
@@ -329,7 +329,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
329;; Matches an embedded or leading nickname that should be removed. 329;; Matches an embedded or leading nickname that should be removed.
330;; (defconst mail-extr-nickname-pattern 330;; (defconst mail-extr-nickname-pattern
331;; (purecopy 331;; (purecopy
332;; (format "\\([ .]\\|\\`\\)[\"'`\[\(]\\([ .%s]+\\)[\]\"'\)] " 332;; (format "\\([ .]\\|\\`\\)[\"'`[(]\\([ .%s]+\\)[]\"')] "
333;; mail-extr-all-letters))) 333;; mail-extr-all-letters)))
334 334
335;; Matches the occurrence of a generational name suffix, and the last 335;; Matches the occurrence of a generational name suffix, and the last
@@ -369,7 +369,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
369;; Matches a variety of trailing comments not including comma-delimited 369;; Matches a variety of trailing comments not including comma-delimited
370;; comments. 370;; comments.
371(defconst mail-extr-trailing-comment-start-pattern 371(defconst mail-extr-trailing-comment-start-pattern
372 (purecopy " [-{]\\|--\\|[+@#></\;]")) 372 (purecopy " [-{]\\|--\\|[+@#></;]"))
373 373
374;; Matches a name (not an initial). 374;; Matches a name (not an initial).
375;; This doesn't force a word boundary at the end because sometimes a 375;; This doesn't force a word boundary at the end because sometimes a
@@ -456,7 +456,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
456;; mode from GB back to ASCII. (Note that the escape-from-GB code '~}' 456;; mode from GB back to ASCII. (Note that the escape-from-GB code '~}'
457;; ($7E7D) is outside the defined GB range.) 457;; ($7E7D) is outside the defined GB range.)
458(defconst mail-extr-hz-embedded-gb-encoded-chinese-pattern 458(defconst mail-extr-hz-embedded-gb-encoded-chinese-pattern
459 (purecopy "~{\\([^~].\\|~[^\}]\\)+~}")) 459 (purecopy "~{\\([^~].\\|~[^}]\\)+~}"))
460 460
461;; The leading optional lowercase letters are for a bastardized version of 461;; The leading optional lowercase letters are for a bastardized version of
462;; the encoding, as is the optional nature of the final slash. 462;; the encoding, as is the optional nature of the final slash.
@@ -543,8 +543,8 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
543 (?\t " ") 543 (?\t " ")
544 (?\r " ") 544 (?\r " ")
545 (?\n " ") 545 (?\n " ")
546 (?\( "\(\)") 546 (?\( "()")
547 (?\) "\)\(") 547 (?\) ")(")
548 (?\\ "\\")) 548 (?\\ "\\"))
549 (mail-extr-address-domain-literal-syntax-table 549 (mail-extr-address-domain-literal-syntax-table
550 (?\000 ?\377 "w") 550 (?\000 ?\377 "w")
@@ -553,8 +553,8 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
553 (?\t " ") 553 (?\t " ")
554 (?\r " ") 554 (?\r " ")
555 (?\n " ") 555 (?\n " ")
556 (?\[ "\(\]") ;?????? 556 (?\[ "(]") ;??????
557 (?\] "\)\[") ;?????? 557 (?\] ")[") ;??????
558 (?\\ "\\")) 558 (?\\ "\\"))
559 (mail-extr-address-text-comment-syntax-table 559 (mail-extr-address-text-comment-syntax-table
560 (?\000 ?\377 "w") 560 (?\000 ?\377 "w")
@@ -563,16 +563,16 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"."
563 (?\t " ") 563 (?\t " ")
564 (?\r " ") 564 (?\r " ")
565 (?\n " ") 565 (?\n " ")
566 (?\( "\(\)") 566 (?\( "()")
567 (?\) "\)\(") 567 (?\) ")(")
568 (?\[ "\(\]") 568 (?\[ "(]")
569 (?\] "\)\[") 569 (?\] ")[")
570 (?\{ "\(\}") 570 (?\{ "(}")
571 (?\} "\)\{") 571 (?\} "){")
572 (?\\ "\\") 572 (?\\ "\\")
573 (?\" "\"") 573 (?\" "\"")
574 ;; (?\' "\)\`") 574 ;; (?\' ")`")
575 ;; (?\` "\(\'") 575 ;; (?\` "('")
576 ) 576 )
577 (mail-extr-address-text-syntax-table 577 (mail-extr-address-text-syntax-table
578 (?\000 ?\177 ".") 578 (?\000 ?\177 ".")
diff --git a/lisp/mail/mailclient.el b/lisp/mail/mailclient.el
index 2fb944bdc76..5bc1d3129ea 100644
--- a/lisp/mail/mailclient.el
+++ b/lisp/mail/mailclient.el
@@ -95,7 +95,7 @@ supported. Defaults to non-nil on Windows, nil otherwise."
95 recp))) 95 recp)))
96 (setq first nil)) 96 (setq first nil))
97 (split-string 97 (split-string
98 (mail-strip-quoted-names field) "\, *")) 98 (mail-strip-quoted-names field) ", *"))
99 result))))) 99 result)))))
100 100
101(declare-function clipboard-kill-ring-save "menu-bar.el" 101(declare-function clipboard-kill-ring-save "menu-bar.el"
diff --git a/lisp/mail/mspools.el b/lisp/mail/mspools.el
index ddd5414de76..f22222ad552 100644
--- a/lisp/mail/mspools.el
+++ b/lisp/mail/mspools.el
@@ -309,7 +309,7 @@ Buffer is not displayed if SHOW is non-nil."
309;; to file name. 309;; to file name.
310;(defun get-folder-from-spool-safe (name) 310;(defun get-folder-from-spool-safe (name)
311; "Return the folder name corresponding to the spool file NAME." 311; "Return the folder name corresponding to the spool file NAME."
312; (if (string-match "^\\(.*\\)\.spool$" name) 312; (if (string-match "^\\(.*\\)\\.spool$" name)
313; (substring name (match-beginning 1) (match-end 1)) 313; (substring name (match-beginning 1) (match-end 1))
314; (error "Could not extract folder name from spool name %s" name))) 314; (error "Could not extract folder name from spool name %s" name)))
315 315
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 67b04b56968..8e38564b14a 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -316,7 +316,7 @@ Currently known variants are 'emacs and 'mailutils."
316If non-nil, this variable is used to identify the correspondent 316If non-nil, this variable is used to identify the correspondent
317when receiving new mail. If it matches the address of the sender, 317when receiving new mail. If it matches the address of the sender,
318the recipient is taken as correspondent of a mail. 318the recipient is taken as correspondent of a mail.
319If nil \(default value\), your `user-login-name' and `user-mail-address' 319If nil \(default value), your `user-login-name' and `user-mail-address'
320are used to exclude yourself as correspondent. 320are used to exclude yourself as correspondent.
321 321
322Usually you don't have to set this variable, except if you collect mails 322Usually you don't have to set this variable, except if you collect mails
@@ -4778,7 +4778,7 @@ With prefix argument N moves forward N messages with these labels.
4778 4778
4779;;;*** 4779;;;***
4780 4780
4781;;;### (autoloads nil "rmailmm" "rmailmm.el" "e5b89eed8afb278cc8881f2208382c7c") 4781;;;### (autoloads nil "rmailmm" "rmailmm.el" "36f518e036612a33eb436cb267fd39c7")
4782;;; Generated autoloads from rmailmm.el 4782;;; Generated autoloads from rmailmm.el
4783 4783
4784(autoload 'rmail-mime "rmailmm" "\ 4784(autoload 'rmail-mime "rmailmm" "\
@@ -4922,7 +4922,7 @@ SENDERS is a regular expression.
4922 4922
4923;;;*** 4923;;;***
4924 4924
4925;;;### (autoloads nil "undigest" "undigest.el" "912d4d3bf762991df5d4d02f42358025") 4925;;;### (autoloads nil "undigest" "undigest.el" "c0ddfad4fe34ef9c1e790c2cc72b571d")
4926;;; Generated autoloads from undigest.el 4926;;; Generated autoloads from undigest.el
4927 4927
4928(autoload 'undigestify-rmail-message "undigest" "\ 4928(autoload 'undigestify-rmail-message "undigest" "\
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el
index 3dd57b9bab7..16f62154fbc 100644
--- a/lisp/mail/rmailmm.el
+++ b/lisp/mail/rmailmm.el
@@ -172,7 +172,7 @@ The value is usually nil, and bound to non-nil while inserting
172MIME entities.") 172MIME entities.")
173 173
174(defvar rmail-mime-searching nil 174(defvar rmail-mime-searching nil
175 "Bound to T inside `rmail-search-mime-message' to suppress expensive 175 "Bound to T inside `rmail-search-mime-message' to suppress expensive
176operations such as HTML decoding") 176operations such as HTML decoding")
177 177
178;;; MIME-entity object 178;;; MIME-entity object
@@ -190,7 +190,7 @@ A MIME-entity is a vector of 10 elements:
190TYPE and DISPOSITION correspond to MIME headers Content-Type and 190TYPE and DISPOSITION correspond to MIME headers Content-Type and
191Content-Disposition respectively, and have this format: 191Content-Disposition respectively, and have this format:
192 192
193 \(VALUE (ATTRIBUTE . VALUE) (ATTRIBUTE . VALUE) ...) 193 (VALUE (ATTRIBUTE . VALUE) (ATTRIBUTE . VALUE) ...)
194 194
195Each VALUE is a string and each ATTRIBUTE is a string. 195Each VALUE is a string and each ATTRIBUTE is a string.
196 196
@@ -202,7 +202,7 @@ Content-Type: multipart/mixed;
202The corresponding TYPE argument must be: 202The corresponding TYPE argument must be:
203 203
204\(\"multipart/mixed\" 204\(\"multipart/mixed\"
205 \(\"boundary\" . \"----=_NextPart_000_0104_01C617E4.BDEC4C40\")) 205 (\"boundary\" . \"----=_NextPart_000_0104_01C617E4.BDEC4C40\"))
206 206
207TRANSFER-ENCODING corresponds to MIME header 207TRANSFER-ENCODING corresponds to MIME header
208Content-Transfer-Encoding, and is a lower-case string. 208Content-Transfer-Encoding, and is a lower-case string.
@@ -1119,11 +1119,11 @@ are the values of the respective parsed headers. The latter should
1119be lower-case. The parsed headers for CONTENT-TYPE and CONTENT-DISPOSITION 1119be lower-case. The parsed headers for CONTENT-TYPE and CONTENT-DISPOSITION
1120have the form 1120have the form
1121 1121
1122 \(VALUE . ALIST) 1122 (VALUE . ALIST)
1123 1123
1124In other words: 1124In other words:
1125 1125
1126 \(VALUE (ATTRIBUTE . VALUE) (ATTRIBUTE . VALUE) ...) 1126 (VALUE (ATTRIBUTE . VALUE) (ATTRIBUTE . VALUE) ...)
1127 1127
1128VALUE is a string and ATTRIBUTE is a symbol. 1128VALUE is a string and ATTRIBUTE is a symbol.
1129 1129
@@ -1135,7 +1135,7 @@ Content-Type: multipart/mixed;
1135The parsed header value: 1135The parsed header value:
1136 1136
1137\(\"multipart/mixed\" 1137\(\"multipart/mixed\"
1138 \(\"boundary\" . \"----=_NextPart_000_0104_01C617E4.BDEC4C40\"))" 1138 (\"boundary\" . \"----=_NextPart_000_0104_01C617E4.BDEC4C40\"))"
1139 ;; Handle the content transfer encodings we know. Unknown transfer 1139 ;; Handle the content transfer encodings we know. Unknown transfer
1140 ;; encodings will be passed on to the various handlers. 1140 ;; encodings will be passed on to the various handlers.
1141 (cond ((string= content-transfer-encoding "base64") 1141 (cond ((string= content-transfer-encoding "base64")