diff options
| author | Stefan Monnier | 2014-10-03 23:04:51 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-10-03 23:04:51 -0400 |
| commit | 94ab176a44d514ffebf343d43527d99c13cdfb93 (patch) | |
| tree | 282d32fb20a0674fae8d969ca29740911c2b4957 | |
| parent | cb325041b054c0409bff6dd11e4812b87e628f18 (diff) | |
| download | emacs-94ab176a44d514ffebf343d43527d99c13cdfb93.tar.gz emacs-94ab176a44d514ffebf343d43527d99c13cdfb93.zip | |
* lisp/erc/erc.el (erc-channel-receive-names): Silence compiler warning.
(erc-format-@nick, erc-update-modes): Idem.
| -rw-r--r-- | lisp/erc/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/erc/erc.el | 18 |
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index 300bcfc74da..fd8f83bd78b 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * erc.el (erc-channel-receive-names): Silence compiler warning. | ||
| 4 | (erc-format-@nick, erc-update-modes): Idem. | ||
| 5 | |||
| 1 | 2014-10-03 Kelvin White <kwhite@gnu.org> | 6 | 2014-10-03 Kelvin White <kwhite@gnu.org> |
| 2 | 7 | ||
| 3 | * erc.el (erc-rename-buffers): Use defcustom instead of defvar for | 8 | * erc.el (erc-rename-buffers): Use defcustom instead of defvar for |
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 2825481c2a1..2fd41a34ad4 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -4246,7 +4246,7 @@ See also `erc-format-nick-function'." | |||
| 4246 | (erc-propertize "+" 'help-echo "voice")) | 4246 | (erc-propertize "+" 'help-echo "voice")) |
| 4247 | (t "")))) | 4247 | (t "")))) |
| 4248 | 4248 | ||
| 4249 | (defun erc-format-@nick (&optional user channel-data) | 4249 | (defun erc-format-@nick (&optional user _channel-data) |
| 4250 | "Format the nickname of USER showing if USER has a voice, is an | 4250 | "Format the nickname of USER showing if USER has a voice, is an |
| 4251 | operator, half-op, admin or owner. Owners have \"~\", admins have | 4251 | operator, half-op, admin or owner. Owners have \"~\", admins have |
| 4252 | \"&\", operators have \"@\" and users with voice have \"+\" as a | 4252 | \"&\", operators have \"@\" and users with voice have \"+\" as a |
| @@ -4770,22 +4770,24 @@ channel." | |||
| 4770 | (hop-ch (cdr (assq ?h prefix))) | 4770 | (hop-ch (cdr (assq ?h prefix))) |
| 4771 | (adm-ch (cdr (assq ?a prefix))) | 4771 | (adm-ch (cdr (assq ?a prefix))) |
| 4772 | (own-ch (cdr (assq ?q prefix))) | 4772 | (own-ch (cdr (assq ?q prefix))) |
| 4773 | names name op voice halfop admin owner) | 4773 | (names (delete "" (split-string names-string))) |
| 4774 | (setq names (delete "" (split-string names-string))) | 4774 | name op voice halfop admin owner) |
| 4775 | (let ((erc-channel-members-changed-hook nil)) | 4775 | (let ((erc-channel-members-changed-hook nil)) |
| 4776 | (dolist (item names) | 4776 | (dolist (item names) |
| 4777 | (let ((updatep t)) | 4777 | (let ((updatep t) |
| 4778 | (ch (aref item 0))) | ||
| 4778 | (setq name item op 'off voice 'off halfop 'off admin 'off owner 'off) | 4779 | (setq name item op 'off voice 'off halfop 'off admin 'off owner 'off) |
| 4779 | (if (rassq (elt item 0) prefix) | 4780 | (if (rassq ch prefix) |
| 4780 | (if (= (length item) 1) | 4781 | (if (= (length item) 1) |
| 4781 | (setq updatep nil) | 4782 | (setq updatep nil) |
| 4782 | (setq name (substring item 1)) | 4783 | (setq name (substring item 1)) |
| 4783 | (setf (pcase (aref item 0) | 4784 | (setf (pcase ch |
| 4784 | ((pred (eq voice-ch)) voice) | 4785 | ((pred (eq voice-ch)) voice) |
| 4785 | ((pred (eq hop-ch)) halfop) | 4786 | ((pred (eq hop-ch)) halfop) |
| 4786 | ((pred (eq op-ch)) op) | 4787 | ((pred (eq op-ch)) op) |
| 4787 | ((pred (eq adm-ch)) admin) | 4788 | ((pred (eq adm-ch)) admin) |
| 4788 | ((pred (eq own-ch)) owner)) | 4789 | ((pred (eq own-ch)) owner) |
| 4790 | (_ (error "Unknown prefix char `%S'" ch) voice)) | ||
| 4789 | 'on))) | 4791 | 'on))) |
| 4790 | (when updatep | 4792 | (when updatep |
| 4791 | (puthash (erc-downcase name) t | 4793 | (puthash (erc-downcase name) t |
| @@ -5086,7 +5088,7 @@ arg-modes is a list of triples of the form: | |||
| 5086 | (list add-modes remove-modes arg-modes)) | 5088 | (list add-modes remove-modes arg-modes)) |
| 5087 | nil)) | 5089 | nil)) |
| 5088 | 5090 | ||
| 5089 | (defun erc-update-modes (tgt mode-string &optional nick host login) | 5091 | (defun erc-update-modes (tgt mode-string &optional _nick _host _login) |
| 5090 | "Update the mode information for TGT, provided as MODE-STRING. | 5092 | "Update the mode information for TGT, provided as MODE-STRING. |
| 5091 | Optional arguments: NICK, HOST and LOGIN - the attributes of the | 5093 | Optional arguments: NICK, HOST and LOGIN - the attributes of the |
| 5092 | person who changed the modes." | 5094 | person who changed the modes." |