Created
September 22, 2012 17:04
-
-
Save fakedrake/3766783 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; I hope this works | |
(defun channel-names (channel) | |
(when (erc-channel-p channel) | |
(with-current-buffer channel | |
(erc-get-channel-nickname-list)))) | |
(defun intersect-lists (head &rest lists) | |
"Intersect any number of lists" | |
(if (consp lists) | |
(let ((operand (car lists)) | |
(rest (cdr lists))) | |
(apply 'intersect-lists (intersection head operand) rest)) | |
head)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment