aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-21 00:15:59 -0700
committerGlenn Morris2013-05-21 00:15:59 -0700
commitdc2f2f9988c9931f563969de2b8d4dcc09835d2b (patch)
treed3992e3180524cf696e93f06c65f8b184b492f76
parentecc3c6edd7422fa14b525461d0b5c288690b9b89 (diff)
downloademacs-dc2f2f9988c9931f563969de2b8d4dcc09835d2b.tar.gz
emacs-dc2f2f9988c9931f563969de2b8d4dcc09835d2b.zip
Make some trivial erc.el functions obsolete
* lisp/erc/erc.el (erc-quit-reason-various-alist) (erc-part-reason-various-alist): Don't mention zippy. (erc-quit-reason, erc-part-reason): Remove zippy options. (erc-quit-reason-zippy, erc-part-reason-zippy): Make obsolete. If yow is not defined, fall back to -normal versions.
-rw-r--r--lisp/erc/ChangeLog8
-rw-r--r--lisp/erc/erc.el28
2 files changed, 24 insertions, 12 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index f4293c8f083..5a6ac93edd0 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,11 @@
12013-05-21 Glenn Morris <rgm@gnu.org>
2
3 * erc.el (erc-quit-reason-various-alist)
4 (erc-part-reason-various-alist): Don't mention zippy.
5 (erc-quit-reason, erc-part-reason): Remove zippy options.
6 (erc-quit-reason-zippy, erc-part-reason-zippy): Make obsolete.
7 If yow is not defined, fall back to -normal versions.
8
12013-05-15 Glenn Morris <rgm@gnu.org> 92013-05-15 Glenn Morris <rgm@gnu.org>
2 10
3 * erc-list.el (erc-list): 11 * erc-list.el (erc-list):
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 042ad09decf..b2724b9737f 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -899,13 +899,12 @@ If no elements match, then the empty string is used.
899 899
900As an example: 900As an example:
901 (setq erc-quit-reason-various-alist 901 (setq erc-quit-reason-various-alist
902 '((\"zippy\" erc-quit-reason-zippy) 902 '((\"xmms\" dme:now-playing)
903 (\"xmms\" dme:now-playing)
904 (\"version\" erc-quit-reason-normal) 903 (\"version\" erc-quit-reason-normal)
905 (\"home\" \"Gone home !\") 904 (\"home\" \"Gone home !\")
906 (\"^$\" \"Default Reason\"))) 905 (\"^$\" \"Default Reason\")))
907If the user types \"/quit zippy\", then a Zippy the Pinhead quotation 906If the user types \"/quit home\", then \"Gone home !\" will be used
908will be used as the quit message." 907as the quit message."
909 :group 'erc-quit-and-part 908 :group 'erc-quit-and-part
910 :type '(repeat (list regexp (choice (string) (function))))) 909 :type '(repeat (list regexp (choice (string) (function)))))
911 910
@@ -923,13 +922,12 @@ If no elements match, then the empty string is used.
923 922
924As an example: 923As an example:
925 (setq erc-part-reason-various-alist 924 (setq erc-part-reason-various-alist
926 '((\"zippy\" erc-part-reason-zippy) 925 '((\"xmms\" dme:now-playing)
927 (\"xmms\" dme:now-playing)
928 (\"version\" erc-part-reason-normal) 926 (\"version\" erc-part-reason-normal)
929 (\"home\" \"Gone home !\") 927 (\"home\" \"Gone home !\")
930 (\"^$\" \"Default Reason\"))) 928 (\"^$\" \"Default Reason\")))
931If the user types \"/part zippy\", then a Zippy the Pinhead quotation 929If the user types \"/part home\", then \"Gone home !\" will be used
932will be used as the part message." 930as the part message."
933 :group 'erc-quit-and-part 931 :group 'erc-quit-and-part
934 :type '(repeat (list regexp (choice (string) (function))))) 932 :type '(repeat (list regexp (choice (string) (function)))))
935 933
@@ -940,7 +938,6 @@ The function is passed a single argument, the string typed by the
940user after \"/quit\"." 938user after \"/quit\"."
941 :group 'erc-quit-and-part 939 :group 'erc-quit-and-part
942 :type '(choice (const erc-quit-reason-normal) 940 :type '(choice (const erc-quit-reason-normal)
943 (const erc-quit-reason-zippy)
944 (const erc-quit-reason-various) 941 (const erc-quit-reason-various)
945 (symbol))) 942 (symbol)))
946 943
@@ -951,7 +948,6 @@ The function is passed a single argument, the string typed by the
951user after \"/PART\"." 948user after \"/PART\"."
952 :group 'erc-quit-and-part 949 :group 'erc-quit-and-part
953 :type '(choice (const erc-part-reason-normal) 950 :type '(choice (const erc-part-reason-normal)
954 (const erc-part-reason-zippy)
955 (const erc-part-reason-various) 951 (const erc-part-reason-various)
956 (symbol))) 952 (symbol)))
957 953
@@ -3398,7 +3394,11 @@ If S is non-nil, it will be used as the quit reason."
3398 3394
3399If S is non-nil, it will be used as the quit reason." 3395If S is non-nil, it will be used as the quit reason."
3400 (or s 3396 (or s
3401 (erc-replace-regexp-in-string "\n" "" (yow)))) 3397 (if (fboundp 'yow)
3398 (erc-replace-regexp-in-string "\n" "" (yow))
3399 (erc-quit-reason-normal))))
3400
3401(make-obsolete 'erc-quit-reason-zippy "it will be removed." "24.4")
3402 3402
3403(defun erc-quit-reason-various (s) 3403(defun erc-quit-reason-various (s)
3404 "Choose a quit reason based on S (a string)." 3404 "Choose a quit reason based on S (a string)."
@@ -3425,7 +3425,11 @@ If S is non-nil, it will be used as the quit reason."
3425 3425
3426If S is non-nil, it will be used as the quit reason." 3426If S is non-nil, it will be used as the quit reason."
3427 (or s 3427 (or s
3428 (erc-replace-regexp-in-string "\n" "" (yow)))) 3428 (if (fboundp 'yow)
3429 (erc-replace-regexp-in-string "\n" "" (yow))
3430 (erc-part-reason-normal))))
3431
3432(make-obsolete 'erc-part-reason-zippy "it will be removed." "24.4")
3429 3433
3430(defun erc-part-reason-various (s) 3434(defun erc-part-reason-various (s)
3431 "Choose a part reason based on S (a string)." 3435 "Choose a part reason based on S (a string)."