From: John Foerch Date: Tue, 7 Dec 2010 20:21:56 +0000 (-0500) Subject: use mapc instead of mapcar where appropriate X-Git-Tag: v0.1~12 X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=35c4acf67e2cc237b82e128157b63e10add87053;p=visible-mark use mapc instead of mapcar where appropriate --- diff --git a/visible-mark.el b/visible-mark.el index 1ca0419..8bc719a 100644 --- a/visible-mark.el +++ b/visible-mark.el @@ -67,7 +67,7 @@ :type '(repeat regexp)) (defun visible-mark-initialize-overlays () - (mapcar 'delete-overlay visible-mark-overlays) + (mapc 'delete-overlay visible-mark-overlays) (let (overlays) (dotimes (i visible-mark-max) (let ((overlay (make-overlay (point-min) (point-min)))) @@ -138,7 +138,7 @@ (progn (visible-mark-initialize-overlays) (add-hook 'post-command-hook 'visible-mark-move-overlays nil t)) - (mapcar 'delete-overlay visible-mark-overlays) + (mapc 'delete-overlay visible-mark-overlays) (setq visible-mark-overlays nil) (remove-hook 'post-command-hook 'visible-mark-move-overlays t)))