Created
January 6, 2013 15:30
-
-
Save v2e4lisp/4467928 to your computer and use it in GitHub Desktop.
plist-to-alist fix the bug of the color-theme for emacs 24
This file contains hidden or 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
(defun plist-to-alist (the-plist) | |
(defsubst get-tuple-from-plist (the-plist) | |
(when the-plist | |
(cons (car the-plist) (cadr the-plist)))) | |
(let ((alist '())) | |
(while the-plist | |
(add-to-list 'alist (get-tuple-from-plist the-plist)) | |
(setq the-plist (cddr the-plist))) | |
alist)) | |
(plist-to-alist '(1 2 1 3)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment