Commit a91dedc4 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* net/rcirc.el (rcirc-sort-nicknames): Change default.

(rcirc-sort-nicknames-join): Avoid setq.
parent c62bf05a
2010-06-03 Stefan Monnier <monnier@iro.umontreal.ca>
* net/rcirc.el (rcirc-sort-nicknames): Change default.
(rcirc-sort-nicknames-join): Avoid setq.
2010-06-03 Deniz Dogan <deniz.a.m.dogan@gmail.com>
 
* net/rcirc.el (rcirc-sort-nicknames): New custom.
......
......@@ -281,7 +281,8 @@ Called with 5 arguments, PROCESS, SENDER, RESPONSE, TARGET and TEXT."
:type 'hook
:group 'rcirc)
(defcustom rcirc-sort-nicknames nil
;; Does this really merit a config variable?
(defcustom rcirc-sort-nicknames t
"If non-nil, sorts nickname listings."
:type 'boolean
:group 'rcirc)
......@@ -1682,10 +1683,9 @@ nicknames sorted.
INPUT is a string containing nicknames separated by SEP.
This function is non-destructive, sorting a copy of the input."
(let ((parts (split-string input sep t))
copy)
(setq copy (sort parts 'rcirc-nickname<))
(mapconcat 'identity copy sep)))
(let* ((parts (split-string input sep t))
(sorted (sort parts 'rcirc-nickname<)))
(mapconcat 'identity sorted sep)))
;;; activity tracking
(defvar rcirc-track-minor-mode-map (make-sparse-keymap)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment