Permalink
Browse files

just some tweaks

git-svn-id: http://yasnippet.googlecode.com/svn/trunk@630 b2103351-7347-0410-aa0e-656c9fbaa8cf
  • Loading branch information...
1 parent 078ffc8 commit 6c41a62e7d3b1e0ef5bf332557052a9f79e27c0f joaotavora committed Apr 20, 2010
Showing with 9 additions and 3 deletions.
  1. +9 −3 extras/imported/ruby-mode/.yas-setup.el
@@ -213,10 +213,15 @@
(region-end))
(point-max)))
(orig (point))
- (orig-line (count-screen-lines (window-start) (point))))
- (shell-command-on-region start end "xmpfilter" (current-buffer) t (get-buffer-create "*xmpfilter errors*") t)
+ retval
+ (orig-line (count-screen-lines (window-start) (line-beginning-position))))
+
+ (unless (zerop (shell-command-on-region start end "xmpfilter" (get-buffer-create "*xmpfilter*") t (get-buffer-create "*xmpfilter errors*") t))
+ ;;some undo actions here
+ )
(goto-char (min (point-max) orig))
- (recenter (1- orig-line))))
+ (recenter orig-line)
+ retval))
;; conditions
;;
@@ -279,6 +284,7 @@
;; Substitutions for: condition
;;
;; 7990EE60-C850-4779-A8C0-7FD2C853B99B =yyas> 'force-in-comment
+;; FBFC214F-B019-4967-95D2-028F374A3221 =yyas> 'force-in-comment
;; 88BC3896-DC39-4307-A271-21D33340F15A =yyas> 'force-in-comment
;; 0F940CBC-2173-49FF-B6FD-98A62863F8F2 =yyas> 'force-in-comment
;; 451A0596-1F72-4AFB-AF2F-45900FABB0F7 =yyas> (not (yas/ruby-end-is-block-end-p))

0 comments on commit 6c41a62

Please sign in to comment.