aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-09-26 00:31:44 +0000
committerJuanma Barranquero2007-09-26 00:31:44 +0000
commitb5242984f98edf4fc7b81d5a1b37fdcebcae2519 (patch)
tree1cab7fd010bb43e8bf0563c585ee8f4744e3889b
parente2c527c5794cb714731ad6b062d871f5100bbbf4 (diff)
downloademacs-b5242984f98edf4fc7b81d5a1b37fdcebcae2519.tar.gz
emacs-b5242984f98edf4fc7b81d5a1b37fdcebcae2519.zip
(artist-mt-get-symbol-from-keyword-sub, artist-go-retrieve-from-symbol-sub,
artist-go-get-symbol-shift-sub, artist-fc-retrieve-from-symbol-sub, artist-vaporize-line, artist-vaporize-lines, artist-ellipse-compute-fill-info, artist-submit-bug-report): Use `mapc' rather than `mapcar'.
-rw-r--r--lisp/textmodes/artist.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index 274de28e6a0..bc0434e151a 100644
--- a/lisp/textmodes/artist.el
+++ b/lisp/textmodes/artist.el
@@ -1562,7 +1562,7 @@ The returned value is suitable for the `x-popup-menu' function."
1562(defun artist-mt-get-symbol-from-keyword-sub (table kwd) 1562(defun artist-mt-get-symbol-from-keyword-sub (table kwd)
1563 "Search TABLE for keyword KWD and return its symbol." 1563 "Search TABLE for keyword KWD and return its symbol."
1564 (catch 'found 1564 (catch 'found
1565 (mapcar 1565 (mapc
1566 (lambda (element) 1566 (lambda (element)
1567 (let ((element-tag (artist-mt-get-tag element))) 1567 (let ((element-tag (artist-mt-get-tag element)))
1568 (cond ((eq element-tag 'graphics-operation) 1568 (cond ((eq element-tag 'graphics-operation)
@@ -1611,7 +1611,7 @@ info-variant-part."
1611Calls RETRIEVE-FN to retrieve information from that symbol's 1611Calls RETRIEVE-FN to retrieve information from that symbol's
1612info-variant-part." 1612info-variant-part."
1613 (catch 'found 1613 (catch 'found
1614 (mapcar 1614 (mapc
1615 (lambda (element) 1615 (lambda (element)
1616 (let ((element-tag (artist-mt-get-tag element))) 1616 (let ((element-tag (artist-mt-get-tag element)))
1617 (cond ((eq element-tag 'graphics-operation) 1617 (cond ((eq element-tag 'graphics-operation)
@@ -1700,7 +1700,7 @@ otherwise the shifted symbol."
1700If IS-SHIFTED is non-nil, return the shifted symbol, 1700If IS-SHIFTED is non-nil, return the shifted symbol,
1701otherwise the shifted symbol." 1701otherwise the shifted symbol."
1702 (catch 'found 1702 (catch 'found
1703 (mapcar 1703 (mapc
1704 (lambda (element) 1704 (lambda (element)
1705 (let ((element-tag (artist-mt-get-tag element))) 1705 (let ((element-tag (artist-mt-get-tag element)))
1706 (cond ((eq element-tag 'graphics-operation) 1706 (cond ((eq element-tag 'graphics-operation)
@@ -1737,7 +1737,7 @@ info-variant-part."
1737Calls RETRIEVE-FN to retrieve information from that symbol's 1737Calls RETRIEVE-FN to retrieve information from that symbol's
1738info-variant-part." 1738info-variant-part."
1739 (catch 'found 1739 (catch 'found
1740 (mapcar 1740 (mapc
1741 (lambda (element) 1741 (lambda (element)
1742 (let ((element-tag (artist-mt-get-tag element))) 1742 (let ((element-tag (artist-mt-get-tag element)))
1743 (cond ((eq element-tag 'function-call) 1743 (cond ((eq element-tag 'function-call)
@@ -3160,7 +3160,7 @@ Do this by replacing the characters that forms the line with
3160`artist-erase-char'. Output is a list of endpoints for lines 3160`artist-erase-char'. Output is a list of endpoints for lines
3161through X1, Y1. An endpoint is a cons pair, (ENDPOINT-X . ENDPOINT-Y)." 3161through X1, Y1. An endpoint is a cons pair, (ENDPOINT-X . ENDPOINT-Y)."
3162 (let ((endpoints (artist-vap-find-endpoints x1 y1))) 3162 (let ((endpoints (artist-vap-find-endpoints x1 y1)))
3163 (mapcar 3163 (mapc
3164 (lambda (endpoints) 3164 (lambda (endpoints)
3165 (let ((ep1 (car endpoints)) 3165 (let ((ep1 (car endpoints))
3166 (ep2 (car (cdr endpoints)))) 3166 (ep2 (car (cdr endpoints))))
@@ -3213,14 +3213,14 @@ through X1, Y1. An endpoint is a cons pair, (ENDPOINT-X . ENDPOINT-Y)."
3213(defun artist-vaporize-lines (x1 y1) 3213(defun artist-vaporize-lines (x1 y1)
3214 "Vaporize lines reachable from point X1, Y1." 3214 "Vaporize lines reachable from point X1, Y1."
3215 (let ((ep-stack nil)) 3215 (let ((ep-stack nil))
3216 (mapcar 3216 (mapc
3217 (lambda (ep) (push ep ep-stack)) 3217 (lambda (ep) (push ep ep-stack))
3218 (artist-vap-find-endpoints x1 y1)) 3218 (artist-vap-find-endpoints x1 y1))
3219 (while (not (null ep-stack)) 3219 (while (not (null ep-stack))
3220 (let* ((vaporize-point (pop ep-stack)) 3220 (let* ((vaporize-point (pop ep-stack))
3221 (new-endpoints (artist-vaporize-line (car vaporize-point) 3221 (new-endpoints (artist-vaporize-line (car vaporize-point)
3222 (cdr vaporize-point)))) 3222 (cdr vaporize-point))))
3223 (mapcar 3223 (mapc
3224 (lambda (endpoint) (push endpoint ep-stack)) 3224 (lambda (endpoint) (push endpoint ep-stack))
3225 new-endpoints))))) 3225 new-endpoints)))))
3226 3226
@@ -3340,7 +3340,7 @@ The POINT-LIST is expected to cover the first quadrant."
3340 3340
3341 ;; Create first half (the lower one (since y grows downwards)) from 3341 ;; Create first half (the lower one (since y grows downwards)) from
3342 ;; the first quadrant. 3342 ;; the first quadrant.
3343 (mapcar 3343 (mapc
3344 (lambda (coord) 3344 (lambda (coord)
3345 (let* ((x (artist-coord-get-x coord)) 3345 (let* ((x (artist-coord-get-x coord))
3346 (y (artist-coord-get-y coord)) 3346 (y (artist-coord-get-y coord))
@@ -3359,7 +3359,7 @@ The POINT-LIST is expected to cover the first quadrant."
3359 ;; Create the other half by mirroring the first half. 3359 ;; Create the other half by mirroring the first half.
3360 (setq both-halves 3360 (setq both-halves
3361 (append first-half 3361 (append first-half
3362 (mapcar 3362 (mapc
3363 (lambda (i) 3363 (lambda (i)
3364 (artist-new-fill-item (artist-fill-item-get-x i) 3364 (artist-new-fill-item (artist-fill-item-get-x i)
3365 (- (artist-fill-item-get-y i)) 3365 (- (artist-fill-item-get-y i))
@@ -5361,7 +5361,7 @@ The event, EV, is the mouse event."
5361 artist-arrow-point-1 5361 artist-arrow-point-1
5362 artist-arrow-point-2))) 5362 artist-arrow-point-2)))
5363 ;; Remove those variables from vars that are not bound 5363 ;; Remove those variables from vars that are not bound
5364 (mapcar 5364 (mapc
5365 (function 5365 (function
5366 (lambda (x) 5366 (lambda (x)
5367 (if (not (and (boundp x) (symbol-value x))) 5367 (if (not (and (boundp x) (symbol-value x)))