aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-09-25 11:15:17 +0000
committerJuanma Barranquero2007-09-25 11:15:17 +0000
commit254fc6616dc09f1348cb7fd0dff0aca0341764a3 (patch)
tree64376cd5b3f76a6604a65b33350ab45b8f01ac75
parente18c18e8709436f35e3c4f9e1c7387e856d2848a (diff)
downloademacs-254fc6616dc09f1348cb7fd0dff0aca0341764a3.tar.gz
emacs-254fc6616dc09f1348cb7fd0dff0aca0341764a3.zip
(tempo-insert-template, tempo-is-user-element, tempo-forward-mark,
tempo-backward-mark): Use `mapc' rather than `mapcar'.
-rw-r--r--lisp/tempo.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/tempo.el b/lisp/tempo.el
index 261dac71818..383dcd40d24 100644
--- a/lisp/tempo.el
+++ b/lisp/tempo.el
@@ -315,9 +315,9 @@ mode, ON-REGION is ignored and assumed true if the region is active."
315 (goto-char tempo-region-start)) 315 (goto-char tempo-region-start))
316 (save-excursion 316 (save-excursion
317 (tempo-insert-mark (point-marker)) 317 (tempo-insert-mark (point-marker))
318 (mapcar (function (lambda (elt) 318 (mapc (function (lambda (elt)
319 (tempo-insert elt on-region))) 319 (tempo-insert elt on-region)))
320 (symbol-value template)) 320 (symbol-value template))
321 (tempo-insert-mark (point-marker))) 321 (tempo-insert-mark (point-marker)))
322 (tempo-forward-mark)) 322 (tempo-forward-mark))
323 (tempo-forget-insertions) 323 (tempo-forget-insertions)
@@ -460,10 +460,10 @@ never prompted."
460 "Tries all the user-defined element handlers in `tempo-user-elements'." 460 "Tries all the user-defined element handlers in `tempo-user-elements'."
461 ;; Sigh... I need (some list) 461 ;; Sigh... I need (some list)
462 (catch 'found 462 (catch 'found
463 (mapcar (function (lambda (handler) 463 (mapc (function (lambda (handler)
464 (let ((result (funcall handler element))) 464 (let ((result (funcall handler element)))
465 (if result (throw 'found result))))) 465 (if result (throw 'found result)))))
466 tempo-user-elements) 466 tempo-user-elements)
467 (throw 'found nil))) 467 (throw 'found nil)))
468 468
469;;; 469;;;
@@ -556,7 +556,7 @@ and insert the results."
556 "Jump to the next mark in `tempo-forward-mark-list'." 556 "Jump to the next mark in `tempo-forward-mark-list'."
557 (interactive) 557 (interactive)
558 (let ((next-mark (catch 'found 558 (let ((next-mark (catch 'found
559 (mapcar 559 (mapc
560 (function 560 (function
561 (lambda (mark) 561 (lambda (mark)
562 (if (< (point) mark) 562 (if (< (point) mark)
@@ -575,7 +575,7 @@ and insert the results."
575 (interactive) 575 (interactive)
576 (let ((prev-mark (catch 'found 576 (let ((prev-mark (catch 'found
577 (let (last) 577 (let (last)
578 (mapcar 578 (mapc
579 (function 579 (function
580 (lambda (mark) 580 (lambda (mark)
581 (if (<= (point) mark) 581 (if (<= (point) mark)