From 5e389092a70d92641b6376bc9c62d58af7eaaa49 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 6 Sep 2008 22:30:34 +0000 Subject: * misc/*.el: merged the following patches from Nathan Weizenbaum . [ruby-core:18424] * misc/ruby-mode.el: improve here-doc performance. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-style.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'misc/ruby-style.el') diff --git a/misc/ruby-style.el b/misc/ruby-style.el index 191541905..b99e71b35 100644 --- a/misc/ruby-style.el +++ b/misc/ruby-style.el @@ -21,7 +21,7 @@ (save-excursion (back-to-indentation) (unless (progn (backward-up-list) (back-to-indentation) - (> (point) (cdr x))) + (> (point) (cdr x))) (goto-char (cdr x)) (if (looking-at "\\") '*)))) @@ -29,14 +29,14 @@ (save-excursion (back-to-indentation) (unless (progn (backward-up-list) (back-to-indentation) - (>= (point) (cdr x))) + (>= (point) (cdr x))) (goto-char (cdr x)) (condition-case () - (progn - (backward-up-list) - (backward-sexp 2) - (if (looking-at "\\") '/)) - (error))))) + (progn + (backward-up-list) + (backward-sexp 2) + (if (looking-at "\\") '/)) + (error))))) (require 'cc-styles) (c-add-style -- cgit