aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorDeepak Goel2009-03-13 20:45:14 +0000
committerDeepak Goel2009-03-13 20:45:14 +0000
commit7db26af03bba81ef4e2c899586443458f8ccdf19 (patch)
tree637e30ed26796a2c4289eacbe834d74961dbc731 /lisp/erc
parentb3f5a84631ed93ed59075a7eb9dfd63dca6bad79 (diff)
downloademacs-7db26af03bba81ef4e2c899586443458f8ccdf19.tar.gz
emacs-7db26af03bba81ef4e2c899586443458f8ccdf19.zip
M-v corrections.
Diffstat (limited to 'lisp/erc')
-rw-r--r--lisp/erc/ChangeLog8
-rw-r--r--lisp/erc/erc-backend.el44
-rw-r--r--lisp/erc/erc.el2
3 files changed, 31 insertions, 23 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index 1543a41cafb..f2260637007 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,11 @@
12009-03-13 D. Goel <deego3@gmail.com>
2
3
4 * erc-backend.el: In (multiple-value-bind/setq .. ls),
5 ls-> (values-list ls) throughout.
6 * erc.el: Ditto.
7
8
12009-01-18 Michael Olson <mwolson@gnu.org> 92009-01-18 Michael Olson <mwolson@gnu.org>
2 10
3 * erc.el (erc-header-line-uses-tabbar-p): Set to nil by default. 11 * erc.el (erc-header-line-uses-tabbar-p): Set to nil by default.
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index 01b95272357..ba031971222 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -1163,7 +1163,7 @@ add things to `%s' instead."
1163 (let ((target (first (erc-response.command-args parsed))) 1163 (let ((target (first (erc-response.command-args parsed)))
1164 (chnl (erc-response.contents parsed))) 1164 (chnl (erc-response.contents parsed)))
1165 (multiple-value-bind (nick login host) 1165 (multiple-value-bind (nick login host)
1166 (erc-parse-user (erc-response.sender parsed)) 1166 (values-list (erc-parse-user (erc-response.sender parsed)))
1167 (setq erc-invitation chnl) 1167 (setq erc-invitation chnl)
1168 (when (string= target (erc-current-nick)) 1168 (when (string= target (erc-current-nick))
1169 (erc-display-message 1169 (erc-display-message
@@ -1177,7 +1177,7 @@ add things to `%s' instead."
1177 (let ((chnl (erc-response.contents parsed)) 1177 (let ((chnl (erc-response.contents parsed))
1178 (buffer nil)) 1178 (buffer nil))
1179 (multiple-value-bind (nick login host) 1179 (multiple-value-bind (nick login host)
1180 (erc-parse-user (erc-response.sender parsed)) 1180 (values-list (erc-parse-user (erc-response.sender parsed)))
1181 ;; strip the stupid combined JOIN facility (IRC 2.9) 1181 ;; strip the stupid combined JOIN facility (IRC 2.9)
1182 (if (string-match "^\\(.*\\)?\^g.*$" chnl) 1182 (if (string-match "^\\(.*\\)?\^g.*$" chnl)
1183 (setq chnl (match-string 1 chnl))) 1183 (setq chnl (match-string 1 chnl)))
@@ -1218,7 +1218,7 @@ add things to `%s' instead."
1218 (reason (erc-trim-string (erc-response.contents parsed))) 1218 (reason (erc-trim-string (erc-response.contents parsed)))
1219 (buffer (erc-get-buffer ch proc))) 1219 (buffer (erc-get-buffer ch proc)))
1220 (multiple-value-bind (nick login host) 1220 (multiple-value-bind (nick login host)
1221 (erc-parse-user (erc-response.sender parsed)) 1221 (values-list (erc-parse-user (erc-response.sender parsed)))
1222 (erc-remove-channel-member buffer tgt) 1222 (erc-remove-channel-member buffer tgt)
1223 (cond 1223 (cond
1224 ((string= tgt (erc-current-nick)) 1224 ((string= tgt (erc-current-nick))
@@ -1245,7 +1245,7 @@ add things to `%s' instead."
1245 (mode (mapconcat 'identity (cdr (erc-response.command-args parsed)) 1245 (mode (mapconcat 'identity (cdr (erc-response.command-args parsed))
1246 " "))) 1246 " ")))
1247 (multiple-value-bind (nick login host) 1247 (multiple-value-bind (nick login host)
1248 (erc-parse-user (erc-response.sender parsed)) 1248 (values-list (erc-parse-user (erc-response.sender parsed)))
1249 (erc-log (format "MODE: %s -> %s: %s" nick tgt mode)) 1249 (erc-log (format "MODE: %s -> %s: %s" nick tgt mode))
1250 ;; dirty hack 1250 ;; dirty hack
1251 (let ((buf (cond ((erc-channel-p tgt) 1251 (let ((buf (cond ((erc-channel-p tgt)
@@ -1270,7 +1270,7 @@ add things to `%s' instead."
1270 (let ((nn (erc-response.contents parsed)) 1270 (let ((nn (erc-response.contents parsed))
1271 bufs) 1271 bufs)
1272 (multiple-value-bind (nick login host) 1272 (multiple-value-bind (nick login host)
1273 (erc-parse-user (erc-response.sender parsed)) 1273 (values-list (erc-parse-user (erc-response.sender parsed)))
1274 (setq bufs (erc-buffer-list-with-nick nick proc)) 1274 (setq bufs (erc-buffer-list-with-nick nick proc))
1275 (erc-log (format "NICK: %s -> %s" nick nn)) 1275 (erc-log (format "NICK: %s -> %s" nick nn))
1276 ;; if we had a query with this user, make sure future messages will be 1276 ;; if we had a query with this user, make sure future messages will be
@@ -1308,7 +1308,7 @@ add things to `%s' instead."
1308 (reason (erc-trim-string (erc-response.contents parsed))) 1308 (reason (erc-trim-string (erc-response.contents parsed)))
1309 (buffer (erc-get-buffer chnl proc))) 1309 (buffer (erc-get-buffer chnl proc)))
1310 (multiple-value-bind (nick login host) 1310 (multiple-value-bind (nick login host)
1311 (erc-parse-user (erc-response.sender parsed)) 1311 (values-list (erc-parse-user (erc-response.sender parsed)))
1312 (erc-remove-channel-member buffer nick) 1312 (erc-remove-channel-member buffer nick)
1313 (erc-display-message parsed 'notice buffer 1313 (erc-display-message parsed 'notice buffer
1314 'PART ?n nick ?u login 1314 'PART ?n nick ?u login
@@ -1416,7 +1416,7 @@ add things to `%s' instead."
1416 (let ((reason (erc-response.contents parsed)) 1416 (let ((reason (erc-response.contents parsed))
1417 bufs) 1417 bufs)
1418 (multiple-value-bind (nick login host) 1418 (multiple-value-bind (nick login host)
1419 (erc-parse-user (erc-response.sender parsed)) 1419 (values-list (erc-parse-user (erc-response.sender parsed)))
1420 (setq bufs (erc-buffer-list-with-nick nick proc)) 1420 (setq bufs (erc-buffer-list-with-nick nick proc))
1421 (erc-remove-user nick) 1421 (erc-remove-user nick)
1422 (setq reason (erc-wash-quit-reason reason nick login host)) 1422 (setq reason (erc-wash-quit-reason reason nick login host))
@@ -1430,7 +1430,7 @@ add things to `%s' instead."
1430 (topic (erc-trim-string (erc-response.contents parsed))) 1430 (topic (erc-trim-string (erc-response.contents parsed)))
1431 (time (format-time-string "%T %m/%d/%y" (current-time)))) 1431 (time (format-time-string "%T %m/%d/%y" (current-time))))
1432 (multiple-value-bind (nick login host) 1432 (multiple-value-bind (nick login host)
1433 (erc-parse-user (erc-response.sender parsed)) 1433 (values-list (erc-parse-user (erc-response.sender parsed)))
1434 (erc-update-channel-member ch nick nick nil nil nil host login) 1434 (erc-update-channel-member ch nick nick nil nil nil host login)
1435 (erc-update-channel-topic ch (format "%s\C-o (%s, %s)" topic nick time)) 1435 (erc-update-channel-topic ch (format "%s\C-o (%s, %s)" topic nick time))
1436 (erc-display-message parsed 'notice (erc-get-buffer ch proc) 1436 (erc-display-message parsed 'notice (erc-get-buffer ch proc)
@@ -1441,7 +1441,7 @@ add things to `%s' instead."
1441 "Display a WALLOPS message." nil 1441 "Display a WALLOPS message." nil
1442 (let ((message (erc-response.contents parsed))) 1442 (let ((message (erc-response.contents parsed)))
1443 (multiple-value-bind (nick login host) 1443 (multiple-value-bind (nick login host)
1444 (erc-parse-user (erc-response.sender parsed)) 1444 (values-list (erc-parse-user (erc-response.sender parsed)))
1445 (erc-display-message 1445 (erc-display-message
1446 parsed 'notice nil 1446 parsed 'notice nil
1447 'WALLOPS ?n nick ?m message)))) 1447 'WALLOPS ?n nick ?m message))))
@@ -1471,7 +1471,7 @@ add things to `%s' instead."
1471(define-erc-response-handler (004) 1471(define-erc-response-handler (004)
1472 "Display the server's identification." nil 1472 "Display the server's identification." nil
1473 (multiple-value-bind (server-name server-version) 1473 (multiple-value-bind (server-name server-version)
1474 (cdr (erc-response.command-args parsed)) 1474 (values-list (cdr (erc-response.command-args parsed)))
1475 (setq erc-server-version server-version) 1475 (setq erc-server-version server-version)
1476 (setq erc-server-announced-name server-name) 1476 (setq erc-server-announced-name server-name)
1477 (erc-update-mode-line-buffer (process-buffer proc)) 1477 (erc-update-mode-line-buffer (process-buffer proc))
@@ -1540,7 +1540,7 @@ See `erc-display-server-message'." nil
1540(define-erc-response-handler (275) 1540(define-erc-response-handler (275)
1541 "Display secure connection message." nil 1541 "Display secure connection message." nil
1542 (multiple-value-bind (nick user message) 1542 (multiple-value-bind (nick user message)
1543 (cdr (erc-response.command-args parsed)) 1543 (values-list (cdr (erc-response.command-args parsed)))
1544 (erc-display-message 1544 (erc-display-message
1545 parsed 'notice 'active 's275 1545 parsed 'notice 'active 's275
1546 ?n nick 1546 ?n nick
@@ -1576,7 +1576,7 @@ See `erc-display-server-message'." nil
1576(define-erc-response-handler (307) 1576(define-erc-response-handler (307)
1577 "Display nick-identified message." nil 1577 "Display nick-identified message." nil
1578 (multiple-value-bind (nick user message) 1578 (multiple-value-bind (nick user message)
1579 (cdr (erc-response.command-args parsed)) 1579 (values-list (cdr (erc-response.command-args parsed)))
1580 (erc-display-message 1580 (erc-display-message
1581 parsed 'notice 'active 's307 1581 parsed 'notice 'active 's307
1582 ?n nick 1582 ?n nick
@@ -1588,7 +1588,7 @@ See `erc-display-server-message'." nil
1588 (let ((fname (erc-response.contents parsed)) 1588 (let ((fname (erc-response.contents parsed))
1589 (catalog-entry (intern (format "s%s" (erc-response.command parsed))))) 1589 (catalog-entry (intern (format "s%s" (erc-response.command parsed)))))
1590 (multiple-value-bind (nick user host) 1590 (multiple-value-bind (nick user host)
1591 (cdr (erc-response.command-args parsed)) 1591 (values-list (cdr (erc-response.command-args parsed)))
1592 (erc-update-user-nick nick nick host nil fname user) 1592 (erc-update-user-nick nick nick host nil fname user)
1593 (erc-display-message 1593 (erc-display-message
1594 parsed 'notice 'active catalog-entry 1594 parsed 'notice 'active catalog-entry
@@ -1597,7 +1597,7 @@ See `erc-display-server-message'." nil
1597(define-erc-response-handler (312) 1597(define-erc-response-handler (312)
1598 "Server name response in WHOIS." nil 1598 "Server name response in WHOIS." nil
1599 (multiple-value-bind (nick server-host) 1599 (multiple-value-bind (nick server-host)
1600 (cdr (erc-response.command-args parsed)) 1600 (values-list (cdr (erc-response.command-args parsed)))
1601 (erc-display-message 1601 (erc-display-message
1602 parsed 'notice 'active 's312 1602 parsed 'notice 'active 's312
1603 ?n nick ?s server-host ?c (erc-response.contents parsed)))) 1603 ?n nick ?s server-host ?c (erc-response.contents parsed))))
@@ -1619,7 +1619,7 @@ See `erc-display-server-message'." nil
1619(define-erc-response-handler (317) 1619(define-erc-response-handler (317)
1620 "IDLE notice." nil 1620 "IDLE notice." nil
1621 (multiple-value-bind (nick seconds-idle on-since time) 1621 (multiple-value-bind (nick seconds-idle on-since time)
1622 (cdr (erc-response.command-args parsed)) 1622 (values-list (cdr (erc-response.command-args parsed)))
1623 (setq time (when on-since 1623 (setq time (when on-since
1624 (format-time-string "%T %Y/%m/%d" 1624 (format-time-string "%T %Y/%m/%d"
1625 (erc-string-to-emacs-time on-since)))) 1625 (erc-string-to-emacs-time on-since))))
@@ -1660,7 +1660,7 @@ See `erc-display-server-message'." nil
1660 "LIST notice." nil 1660 "LIST notice." nil
1661 (let ((topic (erc-response.contents parsed))) 1661 (let ((topic (erc-response.contents parsed)))
1662 (multiple-value-bind (channel num-users) 1662 (multiple-value-bind (channel num-users)
1663 (cdr (erc-response.command-args parsed)) 1663 (values-list (cdr (erc-response.command-args parsed)))
1664 (add-to-list 'erc-channel-list (list channel)) 1664 (add-to-list 'erc-channel-list (list channel))
1665 (erc-update-channel-topic channel topic)))) 1665 (erc-update-channel-topic channel topic))))
1666 1666
@@ -1668,7 +1668,7 @@ See `erc-display-server-message'." nil
1668 "Display a message for the 322 event." 1668 "Display a message for the 322 event."
1669 (let ((topic (erc-response.contents parsed))) 1669 (let ((topic (erc-response.contents parsed)))
1670 (multiple-value-bind (channel num-users) 1670 (multiple-value-bind (channel num-users)
1671 (cdr (erc-response.command-args parsed)) 1671 (values-list (cdr (erc-response.command-args parsed)))
1672 (erc-display-message 1672 (erc-display-message
1673 parsed 'notice proc 's322 1673 parsed 'notice proc 's322
1674 ?c channel ?u num-users ?t (or topic ""))))) 1674 ?c channel ?u num-users ?t (or topic "")))))
@@ -1734,7 +1734,7 @@ See `erc-display-server-message'." nil
1734(define-erc-response-handler (333) 1734(define-erc-response-handler (333)
1735 "Who set the topic, and when." nil 1735 "Who set the topic, and when." nil
1736 (multiple-value-bind (channel nick time) 1736 (multiple-value-bind (channel nick time)
1737 (cdr (erc-response.command-args parsed)) 1737 (values-list (cdr (erc-response.command-args parsed)))
1738 (setq time (format-time-string "%T %Y/%m/%d" 1738 (setq time (format-time-string "%T %Y/%m/%d"
1739 (erc-string-to-emacs-time time))) 1739 (erc-string-to-emacs-time time)))
1740 (erc-update-channel-topic channel 1740 (erc-update-channel-topic channel
@@ -1747,14 +1747,14 @@ See `erc-display-server-message'." nil
1747 "Let user know when an INVITE attempt has been sent successfully." 1747 "Let user know when an INVITE attempt has been sent successfully."
1748 nil 1748 nil
1749 (multiple-value-bind (nick channel) 1749 (multiple-value-bind (nick channel)
1750 (cdr (erc-response.command-args parsed)) 1750 (values-list (cdr (erc-response.command-args parsed)))
1751 (erc-display-message parsed 'notice (erc-get-buffer channel proc) 1751 (erc-display-message parsed 'notice (erc-get-buffer channel proc)
1752 's341 ?n nick ?c channel))) 1752 's341 ?n nick ?c channel)))
1753 1753
1754(define-erc-response-handler (352) 1754(define-erc-response-handler (352)
1755 "WHO notice." nil 1755 "WHO notice." nil
1756 (multiple-value-bind (channel user host server nick away-flag) 1756 (multiple-value-bind (channel user host server nick away-flag)
1757 (cdr (erc-response.command-args parsed)) 1757 (values-list (cdr (erc-response.command-args parsed)))
1758 (let ((full-name (erc-response.contents parsed)) 1758 (let ((full-name (erc-response.contents parsed))
1759 hopcount) 1759 hopcount)
1760 (when (string-match "\\(^[0-9]+ \\)\\(.*\\)$" full-name) 1760 (when (string-match "\\(^[0-9]+ \\)\\(.*\\)$" full-name)
@@ -1784,7 +1784,7 @@ See `erc-display-server-message'." nil
1784(define-erc-response-handler (367) 1784(define-erc-response-handler (367)
1785 "Channel ban list entries." nil 1785 "Channel ban list entries." nil
1786 (multiple-value-bind (channel banmask setter time) 1786 (multiple-value-bind (channel banmask setter time)
1787 (cdr (erc-response.command-args parsed)) 1787 (values-list (cdr (erc-response.command-args parsed)))
1788 ;; setter and time are not standard 1788 ;; setter and time are not standard
1789 (if setter 1789 (if setter
1790 (erc-display-message parsed 'notice 'active 's367-set-by 1790 (erc-display-message parsed 'notice 'active 's367-set-by
@@ -1808,7 +1808,7 @@ See `erc-display-server-message'." nil
1808 ;; command takes two arguments, and doesn't have any "contents". -- 1808 ;; command takes two arguments, and doesn't have any "contents". --
1809 ;; Lawrence 2004/05/10 1809 ;; Lawrence 2004/05/10
1810 (multiple-value-bind (from to) 1810 (multiple-value-bind (from to)
1811 (cdr (erc-response.command-args parsed)) 1811 (values-list (cdr (erc-response.command-args parsed)))
1812 (erc-display-message parsed 'notice 'active 1812 (erc-display-message parsed 'notice 'active
1813 's379 ?c from ?f to))) 1813 's379 ?c from ?f to)))
1814 1814
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 445ce7c33c5..5066efa3bed 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -4185,7 +4185,7 @@ See also: `erc-echo-notice-in-user-buffers',
4185(defun erc-banlist-store (proc parsed) 4185(defun erc-banlist-store (proc parsed)
4186 "Record ban entries for a channel." 4186 "Record ban entries for a channel."
4187 (multiple-value-bind (channel mask whoset) 4187 (multiple-value-bind (channel mask whoset)
4188 (cdr (erc-response.command-args parsed)) 4188 (values-list (cdr (erc-response.command-args parsed)))
4189 ;; Determine to which buffer the message corresponds 4189 ;; Determine to which buffer the message corresponds
4190 (let ((buffer (erc-get-buffer channel proc))) 4190 (let ((buffer (erc-get-buffer channel proc)))
4191 (with-current-buffer buffer 4191 (with-current-buffer buffer