aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2006-03-16 17:01:12 +0000
committerBill Wohler2006-03-16 17:01:12 +0000
commit8d1ada5345b7192b2ee3cb7286b1f54738a70d8a (patch)
treedd06f0c8f5f2538750903253240d754c6ff3345d
parente8b5a7cebf76fb97b7da34d63837bcd2c55d310a (diff)
downloademacs-8d1ada5345b7192b2ee3cb7286b1f54738a70d8a.tar.gz
emacs-8d1ada5345b7192b2ee3cb7286b1f54738a70d8a.zip
(mh-list-to-string-1): Use dolist.
-rw-r--r--lisp/mh-e/ChangeLog2
-rw-r--r--lisp/mh-e/mh-e.el28
2 files changed, 16 insertions, 14 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index f9c392724ae..6bec45ec143 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,5 +1,7 @@
12006-03-16 Bill Wohler <wohler@newt.com> 12006-03-16 Bill Wohler <wohler@newt.com>
2 2
3 * mh-e.el (mh-list-to-string-1): Use dolist.
4
3 * mh-compat.el (mh-image-load-path-for-library): Prefer user's 5 * mh-compat.el (mh-image-load-path-for-library): Prefer user's
4 images. 6 images.
5 7
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index 0b8961470a7..84e569bab81 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -427,20 +427,20 @@ gnus-version)
427 427
428(defun mh-list-to-string-1 (l) 428(defun mh-list-to-string-1 (l)
429 "Flatten the list L and make every element of the new list into a string." 429 "Flatten the list L and make every element of the new list into a string."
430 (let ((new-list nil)) 430 (let (new-list)
431 (while l 431 (dolist (element l)
432 (cond ((null (car l))) 432 (cond ((null element))
433 ((symbolp (car l)) 433 ((symbolp element)
434 (setq new-list (cons (symbol-name (car l)) new-list))) 434 (push (symbol-name element) new-list))
435 ((numberp (car l)) 435 ((numberp element)
436 (setq new-list (cons (int-to-string (car l)) new-list))) 436 (push (int-to-string element) new-list))
437 ((equal (car l) "")) 437 ((equal element ""))
438 ((stringp (car l)) (setq new-list (cons (car l) new-list))) 438 ((stringp element)
439 ((listp (car l)) 439 (push element new-list))
440 (setq new-list (nconc (mh-list-to-string-1 (car l)) 440 ((listp element)
441 new-list))) 441 (setq new-list (nconc (mh-list-to-string-1 element) new-list)))
442 (t (error "Bad element in `mh-list-to-string': %s" (car l)))) 442 (t
443 (setq l (cdr l))) 443 (error "Bad element: %s" element))))
444 new-list)) 444 new-list))
445 445
446 446