From: Dmitry Gutov Date: Mon, 7 Oct 2013 23:03:16 +0000 (+0300) Subject: Refine the last change X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1344 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=35ece233a892e0817a79cf63d2da126574b4ef45;p=emacs.git Refine the last change --- diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index c96eccbfecb..b34143dea17 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -293,7 +293,7 @@ Also ignores spaces after parenthesis when 'space." ;; Make sure it's not the end of a regexp. (not (eq (car (syntax-after (1- (point)))) 7))) (and (memq (char-before) '(?\? ?=)) - (let ((tok (ruby-smie--backward-token))) + (let ((tok (save-excursion (ruby-smie--backward-token)))) (or (equal tok "?") (string-match "\\`\\s." tok)))) (save-excursion