aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorPaul Eggert2015-09-01 18:21:42 -0700
committerPaul Eggert2015-09-01 18:23:21 -0700
commit19532d147b431a4fe34f088d6de07891c48e2c5c (patch)
tree19baea54fefb82f849ed67e49a287a715fe050cc /lisp/erc
parent5dc644a6b01e2cf950ff617ab15be4bf1917c38c (diff)
downloademacs-19532d147b431a4fe34f088d6de07891c48e2c5c.tar.gz
emacs-19532d147b431a4fe34f088d6de07891c48e2c5c.zip
Escape ` and ' in doc
Escape apostrophes and grave accents in docstrings if they are are supposed to stand for themselves and are not quotes. Remove apostrophes from docstring examples like ‘'(calendar-nth-named-day -1 0 10 year)’ that confuse source code with data. Do some other minor docstring fixups as well, e.g., insert a missing close quote.
Diffstat (limited to 'lisp/erc')
-rw-r--r--lisp/erc/erc-backend.el2
-rw-r--r--lisp/erc/erc-networks.el7
-rw-r--r--lisp/erc/erc-services.el2
-rw-r--r--lisp/erc/erc.el4
4 files changed, 7 insertions, 8 deletions
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index db5f6a63519..eec69256db6 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -1082,7 +1082,7 @@ As an example:
1082Would expand to: 1082Would expand to:
1083 1083
1084 (prog2 1084 (prog2
1085 (defvar erc-server-311-functions 'erc-server-311 1085 (defvar erc-server-311-functions \\='erc-server-311
1086 \"Some non-generic variable documentation. 1086 \"Some non-generic variable documentation.
1087 1087
1088 Hook called upon receiving a 311 server response. 1088 Hook called upon receiving a 311 server response.
diff --git a/lisp/erc/erc-networks.el b/lisp/erc/erc-networks.el
index 9de9b257c10..441663f3b3b 100644
--- a/lisp/erc/erc-networks.el
+++ b/lisp/erc/erc-networks.el
@@ -782,9 +782,9 @@ PORTS should be a list of either:
782 numbers between LOW and HIGH (inclusive) is returned. 782 numbers between LOW and HIGH (inclusive) is returned.
783 783
784As an example: 784As an example:
785 (erc-ports-list '(1)) => (1) 785 (erc-ports-list \\='(1)) => (1)
786 (erc-ports-list '((1 5))) => (1 2 3 4 5) 786 (erc-ports-list \\='((1 5))) => (1 2 3 4 5)
787 (erc-ports-list '(1 (3 5))) => (1 3 4 5)" 787 (erc-ports-list \\='(1 (3 5))) => (1 3 4 5)"
788 (let (result) 788 (let (result)
789 (dolist (p ports) 789 (dolist (p ports)
790 (cond ((numberp p) 790 (cond ((numberp p)
@@ -866,4 +866,3 @@ VALUE is the options value.")
866;; indent-tabs-mode: t 866;; indent-tabs-mode: t
867;; tab-width: 8 867;; tab-width: 8
868;; End: 868;; End:
869
diff --git a/lisp/erc/erc-services.el b/lisp/erc/erc-services.el
index 07a4274dcb6..2d2fa6230c3 100644
--- a/lisp/erc/erc-services.el
+++ b/lisp/erc/erc-services.el
@@ -172,7 +172,7 @@ You can also use M-x erc-nickserv-identify-mode to change modes."
172 172
173Example of use: 173Example of use:
174 (setq erc-nickserv-passwords 174 (setq erc-nickserv-passwords
175 '((freenode ((\"nick-one\" . \"password\") 175 \\='((freenode ((\"nick-one\" . \"password\")
176 (\"nick-two\" . \"password\"))) 176 (\"nick-two\" . \"password\")))
177 (DALnet ((\"nick\" . \"password\")))))" 177 (DALnet ((\"nick\" . \"password\")))))"
178 :group 'erc-services 178 :group 'erc-services
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index f2821798103..726e9ed9a21 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -927,7 +927,7 @@ If no elements match, then the empty string is used.
927 927
928As an example: 928As an example:
929 (setq erc-quit-reason-various-alist 929 (setq erc-quit-reason-various-alist
930 '((\"xmms\" dme:now-playing) 930 \\='((\"xmms\" dme:now-playing)
931 (\"version\" erc-quit-reason-normal) 931 (\"version\" erc-quit-reason-normal)
932 (\"home\" \"Gone home !\") 932 (\"home\" \"Gone home !\")
933 (\"^$\" \"Default Reason\"))) 933 (\"^$\" \"Default Reason\")))
@@ -950,7 +950,7 @@ If no elements match, then the empty string is used.
950 950
951As an example: 951As an example:
952 (setq erc-part-reason-various-alist 952 (setq erc-part-reason-various-alist
953 '((\"xmms\" dme:now-playing) 953 \\='((\"xmms\" dme:now-playing)
954 (\"version\" erc-part-reason-normal) 954 (\"version\" erc-part-reason-normal)
955 (\"home\" \"Gone home !\") 955 (\"home\" \"Gone home !\")
956 (\"^$\" \"Default Reason\"))) 956 (\"^$\" \"Default Reason\")))