* lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call): Use

`following-char'.
This commit is contained in:
Dmitry Gutov 2013-10-23 06:59:45 +04:00
parent a6462ef558
commit ee4282cde2
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2013-10-22 Stefan Monnier <monnier@iro.umontreal.ca>
2013-10-23 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie--at-dot-call): Use
`following-char'.
2013-10-22 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/smie.el (smie-rule-parent): Fix opener-test.
* progmodes/ruby-mode.el (ruby-smie-rules):

View file

@ -355,7 +355,7 @@ explicitly declared in magic comment."
(memq (char-syntax (char-after pos)) '(?w ?\"))))
(defun ruby-smie--at-dot-call ()
(and (eq ?w (char-syntax (char-after)))
(and (eq ?w (char-syntax (following-char)))
(eq (char-before) ?.)
(not (eq (char-before (1- (point))) ?.))))