diff options
| -rw-r--r-- | lisp/erc/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/erc/erc.el | 28 |
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 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-05-15 Glenn Morris <rgm@gnu.org> | 9 | 2013-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 | ||
| 900 | As an example: | 900 | As 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\"))) |
| 907 | If the user types \"/quit zippy\", then a Zippy the Pinhead quotation | 906 | If the user types \"/quit home\", then \"Gone home !\" will be used |
| 908 | will be used as the quit message." | 907 | as 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 | ||
| 924 | As an example: | 923 | As 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\"))) |
| 931 | If the user types \"/part zippy\", then a Zippy the Pinhead quotation | 929 | If the user types \"/part home\", then \"Gone home !\" will be used |
| 932 | will be used as the part message." | 930 | as 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 | |||
| 940 | user after \"/quit\"." | 938 | user 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 | |||
| 951 | user after \"/PART\"." | 948 | user 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 | ||
| 3399 | If S is non-nil, it will be used as the quit reason." | 3395 | If 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 | ||
| 3426 | If S is non-nil, it will be used as the quit reason." | 3426 | If 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)." |