diff lisp/x-faces.el @ 5267:668c73e222fd

Change forms like (delq nil (mapcar ...)) to (mapcan ...). lisp/ChangeLog addition: 2010-09-16 Aidan Kehoe <kehoea@parhasard.net> * x-faces.el (x-available-font-sizes): * specifier.el (let-specifier): * package-ui.el (pui-add-required-packages): * msw-faces.el (mswindows-available-font-sizes): * modeline.el (modeline-minor-mode-menu): * minibuf.el (minibuf-directory-files): Replace the O2N (delq nil (mapcar (lambda (W) (and X Y)) Z)) with the ON (mapcan (lambda (W) (and X (list Y))) Z) in these files.
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 16 Sep 2010 15:06:38 +0100
parents 8b2f75cecb89
children 308d34e9f07d
line wrap: on
line diff
--- a/lisp/x-faces.el	Thu Sep 16 14:31:40 2010 +0100
+++ b/lisp/x-faces.el	Thu Sep 16 15:06:38 2010 +0100
@@ -434,17 +434,17 @@
 	       (concat (substring font 0 (match-beginning 1)) "*"
 		       (substring font (match-end 1) (match-end 0))))))
   (sort
-   (delq nil
-	 (mapcar (function
-		  (lambda (name)
-		    (and (string-match x-font-regexp name)
-			 (list
-			  (string-to-int (substring name (match-beginning 5)
-						    (match-end 5)))
-			  (string-to-int (substring name (match-beginning 6)
-						    (match-end 6)))
-			  name))))
-		 (font-list font device)))
+   (mapcan (function
+            (lambda (name)
+              (and (string-match x-font-regexp name)
+                   (list
+                    (list
+                     (string-to-int (substring name (match-beginning 5)
+                                               (match-end 5)))
+                     (string-to-int (substring name (match-beginning 6)
+                                               (match-end 6)))
+                     name)))))
+           (font-list font device))
    (function (lambda (x y) (if (= (nth 1 x) (nth 1 y))
 			       (< (nth 0 x) (nth 0 y))
 			       (< (nth 1 x) (nth 1 y)))))))