diff options
| author | Stefan Monnier | 2010-06-03 11:51:38 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-06-03 11:51:38 -0400 |
| commit | a91dedc456aaa355360d29fd95fcc4e55d81b81a (patch) | |
| tree | 2d610a553fa5c682f500a0834fc2d14f04ab3139 | |
| parent | c62bf05a3723508124eda3bc4e208b112520eaad (diff) | |
| download | emacs-a91dedc456aaa355360d29fd95fcc4e55d81b81a.tar.gz emacs-a91dedc456aaa355360d29fd95fcc4e55d81b81a.zip | |
* net/rcirc.el (rcirc-sort-nicknames): Change default.
(rcirc-sort-nicknames-join): Avoid setq.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 05904bef28e..a74c3999b42 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-06-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * net/rcirc.el (rcirc-sort-nicknames): Change default. | ||
| 4 | (rcirc-sort-nicknames-join): Avoid setq. | ||
| 5 | |||
| 1 | 2010-06-03 Deniz Dogan <deniz.a.m.dogan@gmail.com> | 6 | 2010-06-03 Deniz Dogan <deniz.a.m.dogan@gmail.com> |
| 2 | 7 | ||
| 3 | * net/rcirc.el (rcirc-sort-nicknames): New custom. | 8 | * net/rcirc.el (rcirc-sort-nicknames): New custom. |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index ba2d3f130c6..0317cac3219 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -281,7 +281,8 @@ Called with 5 arguments, PROCESS, SENDER, RESPONSE, TARGET and TEXT." | |||
| 281 | :type 'hook | 281 | :type 'hook |
| 282 | :group 'rcirc) | 282 | :group 'rcirc) |
| 283 | 283 | ||
| 284 | (defcustom rcirc-sort-nicknames nil | 284 | ;; Does this really merit a config variable? |
| 285 | (defcustom rcirc-sort-nicknames t | ||
| 285 | "If non-nil, sorts nickname listings." | 286 | "If non-nil, sorts nickname listings." |
| 286 | :type 'boolean | 287 | :type 'boolean |
| 287 | :group 'rcirc) | 288 | :group 'rcirc) |
| @@ -1682,10 +1683,9 @@ nicknames sorted. | |||
| 1682 | INPUT is a string containing nicknames separated by SEP. | 1683 | INPUT is a string containing nicknames separated by SEP. |
| 1683 | 1684 | ||
| 1684 | This function is non-destructive, sorting a copy of the input." | 1685 | This function is non-destructive, sorting a copy of the input." |
| 1685 | (let ((parts (split-string input sep t)) | 1686 | (let* ((parts (split-string input sep t)) |
| 1686 | copy) | 1687 | (sorted (sort parts 'rcirc-nickname<))) |
| 1687 | (setq copy (sort parts 'rcirc-nickname<)) | 1688 | (mapconcat 'identity sorted sep))) |
| 1688 | (mapconcat 'identity copy sep))) | ||
| 1689 | 1689 | ||
| 1690 | ;;; activity tracking | 1690 | ;;; activity tracking |
| 1691 | (defvar rcirc-track-minor-mode-map (make-sparse-keymap) | 1691 | (defvar rcirc-track-minor-mode-map (make-sparse-keymap) |