aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
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/erc
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/erc')
-rw-r--r--lisp/erc/erc-backend.el2
-rw-r--r--lisp/erc/erc-match.el2
-rw-r--r--lisp/erc/erc-services.el2
-rw-r--r--lisp/erc/erc.el2
4 files changed, 4 insertions, 4 deletions
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index 958c5ef8b62..ec45dcfcf24 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -1541,7 +1541,7 @@ A server may send more than one 005 message."
1541 (while (erc-response.command-args parsed) 1541 (while (erc-response.command-args parsed)
1542 (let ((section (pop (erc-response.command-args parsed)))) 1542 (let ((section (pop (erc-response.command-args parsed))))
1543 ;; fill erc-server-parameters 1543 ;; fill erc-server-parameters
1544 (when (string-match "^\\([A-Z]+\\)\=\\(.*\\)$\\|^\\([A-Z]+\\)$" 1544 (when (string-match "^\\([A-Z]+\\)=\\(.*\\)$\\|^\\([A-Z]+\\)$"
1545 section) 1545 section)
1546 (add-to-list 'erc-server-parameters 1546 (add-to-list 'erc-server-parameters
1547 `(,(or (match-string 1 section) 1547 `(,(or (match-string 1 section)
diff --git a/lisp/erc/erc-match.el b/lisp/erc/erc-match.el
index 55f298bbf69..0622b18ca7f 100644
--- a/lisp/erc/erc-match.el
+++ b/lisp/erc/erc-match.el
@@ -84,7 +84,7 @@ Useful to mark nicks from dangerous hosts."
84 84
85(defcustom erc-current-nick-highlight-type 'keyword 85(defcustom erc-current-nick-highlight-type 'keyword
86 "Determines how to highlight text in which your current nickname appears 86 "Determines how to highlight text in which your current nickname appears
87\(does not apply to text sent by you\). 87\(does not apply to text sent by you).
88 88
89The following values are allowed: 89The following values are allowed:
90 90
diff --git a/lisp/erc/erc-services.el b/lisp/erc/erc-services.el
index 2d2fa6230c3..274b01ffbd1 100644
--- a/lisp/erc/erc-services.el
+++ b/lisp/erc/erc-services.el
@@ -280,7 +280,7 @@ Example of use:
280 "IDENTIFY" nil nil nil)) 280 "IDENTIFY" nil nil nil))
281 "Alist of NickServer details, sorted by network. 281 "Alist of NickServer details, sorted by network.
282Every element in the list has the form 282Every element in the list has the form
283 \(SYMBOL NICKSERV REGEXP NICK KEYWORD USE-CURRENT ANSWER SUCCESS-REGEXP) 283 (SYMBOL NICKSERV REGEXP NICK KEYWORD USE-CURRENT ANSWER SUCCESS-REGEXP)
284 284
285SYMBOL is a network identifier, a symbol, as used in `erc-networks-alist'. 285SYMBOL is a network identifier, a symbol, as used in `erc-networks-alist'.
286NICKSERV is the description of the nickserv in the form nick!user@host. 286NICKSERV is the description of the nickserv in the form nick!user@host.
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index b7e880c120a..8e26db1d9d3 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -2973,7 +2973,7 @@ VERSION and so on. It is called with ARGS."
2973If FUNC contains a valid function or variable, help about that 2973If FUNC contains a valid function or variable, help about that
2974will be displayed. If FUNC is empty, display an apropos about 2974will be displayed. If FUNC is empty, display an apropos about
2975ERC commands. Otherwise, do `apropos' in the ERC namespace 2975ERC commands. Otherwise, do `apropos' in the ERC namespace
2976\(\"erc-.*LINE\"\). 2976\(\"erc-.*LINE\").
2977 2977
2978Examples: 2978Examples:
2979To find out about erc and bbdb, do 2979To find out about erc and bbdb, do