diff options
| author | Dmitry Gutov | 2013-10-08 02:03:16 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2013-10-08 02:03:16 +0300 |
| commit | 35ece233a892e0817a79cf63d2da126574b4ef45 (patch) | |
| tree | 3a500fedf7f8fd1a88a36a45159242e4263f3157 | |
| parent | 0ea1599d34414dbdc77c46208535c2ebdb614885 (diff) | |
| download | emacs-35ece233a892e0817a79cf63d2da126574b4ef45.tar.gz emacs-35ece233a892e0817a79cf63d2da126574b4ef45.zip | |
Refine the last change
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 293 | ;; Make sure it's not the end of a regexp. | 293 | ;; Make sure it's not the end of a regexp. |
| 294 | (not (eq (car (syntax-after (1- (point)))) 7))) | 294 | (not (eq (car (syntax-after (1- (point)))) 7))) |
| 295 | (and (memq (char-before) '(?\? ?=)) | 295 | (and (memq (char-before) '(?\? ?=)) |
| 296 | (let ((tok (ruby-smie--backward-token))) | 296 | (let ((tok (save-excursion (ruby-smie--backward-token)))) |
| 297 | (or (equal tok "?") | 297 | (or (equal tok "?") |
| 298 | (string-match "\\`\\s." tok)))) | 298 | (string-match "\\`\\s." tok)))) |
| 299 | (save-excursion | 299 | (save-excursion |