Skip to content

Commit

Permalink
Add edts-project-buffer-map
Browse files Browse the repository at this point in the history
  • Loading branch information
tjarvstrand committed Feb 6, 2013
1 parent bd8d3b5 commit b1d8a9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions elisp/edts/edts-project.el
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,14 @@ buffers, for which all PREDICATES hold true."
(buffer-list)
:initial-value nil))

(defun edts-project-buffer-map (project-root function)
"Return the result of running FUNCTION inside each buffer in PROJECT-ROOT."
(let ((res nil))
(with-each-buffer-in-project (gen-sym) project-root
(push (funcall function) res))
(reverse res)))


;;;;;;;;;;;;;;;;;;;;
;; Commands

Expand Down

0 comments on commit b1d8a9a

Please sign in to comment.