Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Make ruby-compilation-extract-output-matches public for use in rinari…

… and elsewhere
  • Loading branch information...
commit 7f5c120dab7ccb8f25deaae84dcd9be36e0d6503 1 parent 49bdf3b
@purcell purcell authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 util/ruby-compilation.el
8 util/ruby-compilation.el
@@ -204,12 +204,12 @@ buffer."
;;; Special handling for rake and capistrano
-(defun ruby-compilation--extract-matches (command pattern)
+(defun ruby-compilation-extract-output-matches (command pattern)
"Run COMMAND, and return all the matching strings for PATTERN."
(delq nil (mapcar #'(lambda(line)
(when (string-match pattern line)
(match-string 1 line)))
- (split-string (shell-command-to-string command) "[\n]"))))
+ (split-string (shell-command-to-string command) "[\n]"))))
(defun ruby-compilation--format-env-vars (pairs)
"Convert PAIRS of (name . value) into a list of name=value strings."
@@ -219,7 +219,7 @@ buffer."
(defun pcmpl-rake-tasks ()
"Return a list of all the rake tasks defined in the current projects."
- (ruby-compilation--extract-matches "rake -T" "rake \\([^ ]+\\)"))
+ (ruby-compilation-extract-output-matches "rake -T" "rake \\([^ ]+\\)"))
(defun pcomplete/rake ()
@@ -248,7 +248,7 @@ optional list of (name . value) pairs which will be passed to rake."
(defun pcmpl-cap-tasks ()
"Return a list of all the cap tasks defined in the current project."
- (ruby-compilation--extract-matches "cap -T" "cap \\([^ ]+\\)"))
+ (ruby-compilation-extract-output-matches "cap -T" "cap \\([^ ]+\\)"))
(defun pcomplete/cap ()

0 comments on commit 7f5c120

Please sign in to comment.
Something went wrong with that request. Please try again.