diff options
| author | Michael Olson | 2008-02-23 18:58:56 +0000 |
|---|---|---|
| committer | Michael Olson | 2008-02-23 18:58:56 +0000 |
| commit | 2a927019fa311d838d972f2a29a30617d9a547c5 (patch) | |
| tree | 6c62846dafe2f8eba9dd5006095a83308bb41f59 /lisp | |
| parent | 0103690ed263ca1c44c45dac2fa94405923f5be1 (diff) | |
| download | emacs-2a927019fa311d838d972f2a29a30617d9a547c5.tar.gz emacs-2a927019fa311d838d972f2a29a30617d9a547c5.zip | |
ERC: Sync from upstream.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/erc/ChangeLog | 36 | ||||
| -rw-r--r-- | lisp/erc/erc-dcc.el | 14 | ||||
| -rw-r--r-- | lisp/erc/erc-track.el | 13 | ||||
| -rw-r--r-- | lisp/erc/erc.el | 6 |
4 files changed, 57 insertions, 12 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index 23057faa0b6..1a0b49676ae 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog | |||
| @@ -1,3 +1,36 @@ | |||
| 1 | 2008-02-20 Michael Olson <mwolson@gnu.org> | ||
| 2 | |||
| 3 | * erc.el (erc-notice-face): Fix this face for Emacs 21 users. | ||
| 4 | |||
| 5 | 2008-02-04 Jeremy Maitin-Shepard <jbms@cmu.edu> | ||
| 6 | |||
| 7 | * erc.el (erc-cmd-QUERY): Bind the value of `erc-auto-query' to | ||
| 8 | `erc-query-display' rather than `erc-join-buffer'. This fixes a | ||
| 9 | bug where the value of erc-auto-query was being ignored. | ||
| 10 | |||
| 11 | 2008-01-31 Michael Olson <mwolson@gnu.org> | ||
| 12 | |||
| 13 | * erc-dcc.el (erc-dcc-do-GET-command, erc-dcc-do-SEND-command): | ||
| 14 | Improve docstring. If FILE argument is split into multiple | ||
| 15 | arguments, re-join them into a single string, separated by a | ||
| 16 | space. This fixes an issue where the user wants to send or | ||
| 17 | receive a file with spaces in its name. It is assumed that no one | ||
| 18 | will try sending or receiving a file with multiple consecutive | ||
| 19 | spaces in its name, otherwise this fix will fail. | ||
| 20 | |||
| 21 | * erc.el (erc-mode-map): Add binding for C-c C-x to | ||
| 22 | erc-quit-server, since rcirc.el binds its quit command in a | ||
| 23 | similar manner. Thanks to Jari Aalto for the suggestion. | ||
| 24 | |||
| 25 | 2008-01-28 Diane Murray <disumu@x3y2z1.net> | ||
| 26 | |||
| 27 | * erc-list-old.el (list-old): Define module as list-old, not list. | ||
| 28 | This fixes a bug where an unknown module error would occur when | ||
| 29 | starting ERC and using the list-old module. | ||
| 30 | |||
| 31 | * erc-track.el (erc-track-find-face): If no choice was found | ||
| 32 | return nil to use the default mode-line faces. | ||
| 33 | |||
| 1 | 2008-01-26 Michael Olson <mwolson@gnu.org> | 34 | 2008-01-26 Michael Olson <mwolson@gnu.org> |
| 2 | 35 | ||
| 3 | * erc.el (erc-version-string): Release ERC 5.3. | 36 | * erc.el (erc-version-string): Release ERC 5.3. |
| @@ -7,9 +40,12 @@ | |||
| 7 | users of the version that comes with Emacs, and they will have | 40 | users of the version that comes with Emacs, and they will have |
| 8 | erc-list.el by Emacs 23. | 41 | erc-list.el by Emacs 23. |
| 9 | (MISC): Add ChangeLog.07. | 42 | (MISC): Add ChangeLog.07. |
| 43 | (elpa): Fix build issue. Add proper version to erc-pkg.el. | ||
| 10 | 44 | ||
| 11 | * README.extras: Mention Emacs 23. | 45 | * README.extras: Mention Emacs 23. |
| 12 | 46 | ||
| 47 | * erc-pkg.el: Make the version string a template. | ||
| 48 | |||
| 13 | * erc.texi (Obtaining ERC): Update extras URLs for 5.3. | 49 | * erc.texi (Obtaining ERC): Update extras URLs for 5.3. |
| 14 | (Development): Write instructions for git, and remove those for | 50 | (Development): Write instructions for git, and remove those for |
| 15 | Arch. | 51 | Arch. |
diff --git a/lisp/erc/erc-dcc.el b/lisp/erc/erc-dcc.el index 2aca06479f6..a31f87b4933 100644 --- a/lisp/erc/erc-dcc.el +++ b/lisp/erc/erc-dcc.el | |||
| @@ -474,7 +474,12 @@ type and nick are optional." | |||
| 474 | ?n (erc-extract-nick (plist-get ret :nick)))))) | 474 | ?n (erc-extract-nick (plist-get ret :nick)))))) |
| 475 | t)) | 475 | t)) |
| 476 | 476 | ||
| 477 | (defun erc-dcc-do-GET-command (proc nick &optional file) | 477 | (defun erc-dcc-do-GET-command (proc nick &rest file) |
| 478 | "Do a DCC GET command. NICK is the person who is sending the file. | ||
| 479 | FILE is the filename. If FILE is split into multiple arguments, | ||
| 480 | re-join the arguments, separated by a space. | ||
| 481 | PROC is the server process." | ||
| 482 | (setq file (and file (mapconcat #'identity file " "))) | ||
| 478 | (let* ((elt (erc-dcc-member :nick nick :type 'GET)) | 483 | (let* ((elt (erc-dcc-member :nick nick :type 'GET)) |
| 479 | (filename (or file (plist-get elt :file) "unknown"))) | 484 | (filename (or file (plist-get elt :file) "unknown"))) |
| 480 | (if elt | 485 | (if elt |
| @@ -547,8 +552,11 @@ It lists the current state of `erc-dcc-list' in an easy to read manner." | |||
| 547 | 'dcc-list-end) | 552 | 'dcc-list-end) |
| 548 | t)) | 553 | t)) |
| 549 | 554 | ||
| 550 | (defun erc-dcc-do-SEND-command (proc nick file) | 555 | (defun erc-dcc-do-SEND-command (proc nick &rest file) |
| 551 | "Offer FILE to NICK by sending a ctcp dcc send message." | 556 | "Offer FILE to NICK by sending a ctcp dcc send message. |
| 557 | If FILE is split into multiple arguments, re-join the arguments, | ||
| 558 | separated by a space." | ||
| 559 | (setq file (and file (mapconcat #'identity file " "))) | ||
| 552 | (if (file-exists-p file) | 560 | (if (file-exists-p file) |
| 553 | (progn | 561 | (progn |
| 554 | (erc-display-message | 562 | (erc-display-message |
diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index 360d92c32c5..3a7511cad49 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el | |||
| @@ -854,7 +854,7 @@ Use `erc-make-mode-line-buffer-name' to create buttons." | |||
| 854 | (when (featurep 'xemacs) | 854 | (when (featurep 'xemacs) |
| 855 | (erc-modified-channels-object nil)) | 855 | (erc-modified-channels-object nil)) |
| 856 | (setq erc-modified-channels-object | 856 | (setq erc-modified-channels-object |
| 857 | (erc-modified-channels-object strings)))))) | 857 | (erc-modified-channels-object strings)))))) |
| 858 | 858 | ||
| 859 | (defun erc-modified-channels-remove-buffer (buffer) | 859 | (defun erc-modified-channels-remove-buffer (buffer) |
| 860 | "Remove BUFFER from `erc-modified-channels-alist'." | 860 | "Remove BUFFER from `erc-modified-channels-alist'." |
| @@ -867,17 +867,16 @@ Use `erc-make-mode-line-buffer-name' to create buttons." | |||
| 867 | 867 | ||
| 868 | (defun erc-track-find-face (faces) | 868 | (defun erc-track-find-face (faces) |
| 869 | "Return the face to use in the modeline from the faces in FACES. | 869 | "Return the face to use in the modeline from the faces in FACES. |
| 870 | If `erc-track-faces-priority-list' is set, the one from FACES who is | 870 | If `erc-track-faces-priority-list' is set, the one from FACES who |
| 871 | first in that list will be used. | 871 | is first in that list will be used. If nothing matches or if |
| 872 | `erc-track-faces-priority-list' is not set, the default mode-line | ||
| 873 | faces will be used. | ||
| 872 | 874 | ||
| 873 | If `erc-track-faces-normal-list' is non-nil, use it to produce a | 875 | If `erc-track-faces-normal-list' is non-nil, use it to produce a |
| 874 | blinking effect that indicates channel activity when the first | 876 | blinking effect that indicates channel activity when the first |
| 875 | element in FACES and the highest-ranking face among the rest of | 877 | element in FACES and the highest-ranking face among the rest of |
| 876 | FACES are both members of `erc-track-faces-normal-list'. | 878 | FACES are both members of `erc-track-faces-normal-list'. |
| 877 | 879 | ||
| 878 | If `erc-track-faces-priority-list' is not set, the first element | ||
| 879 | in FACES will be used. | ||
| 880 | |||
| 881 | If one of the faces is a list, then it will be ranked according | 880 | If one of the faces is a list, then it will be ranked according |
| 882 | to its highest-tanking face member. A list of faces including | 881 | to its highest-tanking face member. A list of faces including |
| 883 | that member will take priority over just the single member | 882 | that member will take priority over just the single member |
| @@ -892,7 +891,7 @@ element." | |||
| 892 | (when (member candidate (cdr faces)) | 891 | (when (member candidate (cdr faces)) |
| 893 | (throw 'face candidate))))))) | 892 | (throw 'face candidate))))))) |
| 894 | (cond ((null choice) | 893 | (cond ((null choice) |
| 895 | (car faces)) | 894 | nil) |
| 896 | ((and (member choice erc-track-faces-normal-list) | 895 | ((and (member choice erc-track-faces-normal-list) |
| 897 | (member no-first erc-track-faces-normal-list)) | 896 | (member no-first erc-track-faces-normal-list)) |
| 898 | no-first) | 897 | no-first) |
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index e98c9d29baa..6cbf5f0b7a0 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -1110,6 +1110,7 @@ which the local user typed." | |||
| 1110 | (define-key map "\C-c\C-r" 'erc-remove-text-properties-region) | 1110 | (define-key map "\C-c\C-r" 'erc-remove-text-properties-region) |
| 1111 | (define-key map "\C-c\C-t" 'erc-set-topic) | 1111 | (define-key map "\C-c\C-t" 'erc-set-topic) |
| 1112 | (define-key map "\C-c\C-u" 'erc-kill-input) | 1112 | (define-key map "\C-c\C-u" 'erc-kill-input) |
| 1113 | (define-key map "\C-c\C-x" 'erc-quit-server) | ||
| 1113 | (define-key map "\M-\t" 'ispell-complete-word) | 1114 | (define-key map "\M-\t" 'ispell-complete-word) |
| 1114 | (define-key map "\t" 'erc-complete-word) | 1115 | (define-key map "\t" 'erc-complete-word) |
| 1115 | 1116 | ||
| @@ -1168,7 +1169,8 @@ See the variable `erc-command-indicator'." | |||
| 1168 | :group 'erc-faces) | 1169 | :group 'erc-faces) |
| 1169 | 1170 | ||
| 1170 | (defface erc-notice-face | 1171 | (defface erc-notice-face |
| 1171 | (if (featurep 'xemacs) | 1172 | (if (or (featurep 'xemacs) |
| 1173 | (< emacs-major-version 22)) | ||
| 1172 | '((t (:bold t :foreground "blue"))) | 1174 | '((t (:bold t :foreground "blue"))) |
| 1173 | '((((class color) (min-colors 88)) | 1175 | '((((class color) (min-colors 88)) |
| 1174 | (:bold t :foreground "SlateBlue")) | 1176 | (:bold t :foreground "SlateBlue")) |
| @@ -4026,7 +4028,7 @@ and as second argument the event parsed as a vector." | |||
| 4026 | (string= target (erc-current-nick))) | 4028 | (string= target (erc-current-nick))) |
| 4027 | (not (erc-get-buffer query proc)) | 4029 | (not (erc-get-buffer query proc)) |
| 4028 | (not (erc-is-message-ctcp-and-not-action-p msg)) | 4030 | (not (erc-is-message-ctcp-and-not-action-p msg)) |
| 4029 | (let ((erc-join-buffer erc-auto-query)) | 4031 | (let ((erc-query-display erc-auto-query)) |
| 4030 | (erc-cmd-QUERY query)) | 4032 | (erc-cmd-QUERY query)) |
| 4031 | nil)))) | 4033 | nil)))) |
| 4032 | 4034 | ||