131026 kansai-emacs

Download 131026 kansai-emacs

Post on 17-Dec-2014

649 views

Category:

Technology

0 download

Embed Size (px)

DESCRIPTION

 

TRANSCRIPT

  • 1. Emacs
  • 2. shiba_yu36
  • 3.
  • 4. Emacs
  • 5. (defun run-perl-test () "test" (interactive) (compile (format "prove -v %s" (buffer-file-name (current-buffer)))))
  • 6.
  • 7. 1
  • 8. PerlTest::Class (defun run-perl-method-test () (interactive) (let ( (command compile-command) (test-method nil)) (save-excursion (when (or (re-search-backward "bsubs+([_[:alpha:]]+)s*:s*Test" nil t) (re-search-forward "bsubs+([_[:alpha:]]+)s*:s*Test" nil t)) (setq test-method (match-string 1)))) (if test-method (compile (format "cd %s; TEST_METHOD=%s perl -M'Project::Libs lib_dirs => [qw(modules/*/lib local/lib/perl5)]' %s" (replace-regexp-in-string "n+$" "" (shell-command-to-string "git rev-parse --show-cdup")) test-method (buffer-file-name (current-buffer)))) (compile (format "cd %s; perl -M'Project::Libs lib_dirs => [qw(modules/*/lib local/lib/ perl5)]' %s" (replace-regexp-in-string "n+$" "" (shell-command-to-string "git rev-parse --show-cdup")) (buffer-file-name (current-buffer)))))))
  • 9.
  • 10. emacsTest::Class proveTEST_METHOD compile
  • 11. (buer-le-name (current-buer))
  • 12. save-excursion + re-searchbackword + match-string Test::Class
  • 13. (compile ) compile quick-run
  • 14. ?? ruby
  • 15.