+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.
: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)
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)))
\f
;;; activity tracking
(defvar rcirc-track-minor-mode-map (make-sparse-keymap)