diff options
| author | Chong Yidong | 2010-06-03 11:58:20 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-06-03 11:58:20 -0400 |
| commit | 44ea155d1327710cc6bbf7d83c1b060f19c9ff9d (patch) | |
| tree | 712d7dcd866fa995440297c2591050a9c1b5a1ee | |
| parent | a91dedc456aaa355360d29fd95fcc4e55d81b81a (diff) | |
| download | emacs-44ea155d1327710cc6bbf7d83c1b060f19c9ff9d.tar.gz emacs-44ea155d1327710cc6bbf7d83c1b060f19c9ff9d.zip | |
* net/rcirc.el (rcirc-nickname<, rcirc-sort-nicknames-join): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 18 |
2 files changed, 11 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a74c3999b42..dc4a5e21192 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-06-03 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * net/rcirc.el (rcirc-nickname<, rcirc-sort-nicknames-join): Doc | ||
| 4 | fix. | ||
| 5 | |||
| 1 | 2010-06-03 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-06-03 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * net/rcirc.el (rcirc-sort-nicknames): Change default. | 8 | * net/rcirc.el (rcirc-sort-nicknames): Change default. |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 0317cac3219..c45fdaaf8ad 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -1657,13 +1657,10 @@ if NICK is also on `rcirc-ignore-list-automatic'." | |||
| 1657 | (delete nick rcirc-ignore-list)))) | 1657 | (delete nick rcirc-ignore-list)))) |
| 1658 | 1658 | ||
| 1659 | (defun rcirc-nickname< (s1 s2) | 1659 | (defun rcirc-nickname< (s1 s2) |
| 1660 | "Compares two IRC nicknames. Operator nicknames (@) are | 1660 | "Return t if IRC nickname S1 is less than S2, and nil otherwise. |
| 1661 | considered less than voiced nicknames (+). Any other nicknames | 1661 | Operator nicknames (@) are considered less than voiced |
| 1662 | are greater than voiced nicknames. | 1662 | nicknames (+). Any other nicknames are greater than voiced |
| 1663 | 1663 | nicknames. The comparison is case-insensitive." | |
| 1664 | Returns t if S1 is less than S2, otherwise nil. | ||
| 1665 | |||
| 1666 | The comparison is case-insensitive." | ||
| 1667 | (setq s1 (downcase s1) | 1664 | (setq s1 (downcase s1) |
| 1668 | s2 (downcase s2)) | 1665 | s2 (downcase s2)) |
| 1669 | (let* ((s1-op (eq ?@ (string-to-char s1))) | 1666 | (let* ((s1-op (eq ?@ (string-to-char s1))) |
| @@ -1677,12 +1674,9 @@ The comparison is case-insensitive." | |||
| 1677 | (string< s1 s2))))) | 1674 | (string< s1 s2))))) |
| 1678 | 1675 | ||
| 1679 | (defun rcirc-sort-nicknames-join (input sep) | 1676 | (defun rcirc-sort-nicknames-join (input sep) |
| 1680 | "Takes a string of nicknames and returns the string with the | 1677 | "Return a string of sorted nicknames. |
| 1681 | nicknames sorted. | ||
| 1682 | |||
| 1683 | INPUT is a string containing nicknames separated by SEP. | 1678 | INPUT is a string containing nicknames separated by SEP. |
| 1684 | 1679 | This function does not alter the INPUT string." | |
| 1685 | This function is non-destructive, sorting a copy of the input." | ||
| 1686 | (let* ((parts (split-string input sep t)) | 1680 | (let* ((parts (split-string input sep t)) |
| 1687 | (sorted (sort parts 'rcirc-nickname<))) | 1681 | (sorted (sort parts 'rcirc-nickname<))) |
| 1688 | (mapconcat 'identity sorted sep))) | 1682 | (mapconcat 'identity sorted sep))) |