aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDmitry Gutov2013-10-08 02:01:23 +0300
committerDmitry Gutov2013-10-08 02:01:23 +0300
commit0ea1599d34414dbdc77c46208535c2ebdb614885 (patch)
tree6e7625116d5ebdca693e9191d709f53ca0408db3 /lisp
parent595e113b15e2ce80b95d39d1851ce78f25ffa1f4 (diff)
downloademacs-0ea1599d34414dbdc77c46208535c2ebdb614885.tar.gz
emacs-0ea1599d34414dbdc77c46208535c2ebdb614885.zip
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Handle the
case of the dot in a chained method call being on the following line.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/ruby-mode.el5
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 520e41afc68..93d09d4b55c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-10-07 Dmitry Gutov <dgutov@yandex.ru>
2
3 * progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Handle the
4 case of the dot in a chained method call being on the following
5 line.
6
12013-10-07 Stefan Monnier <monnier@iro.umontreal.ca> 72013-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * electric.el (electric-indent-inhibit): New var. 9 * electric.el (electric-indent-inhibit): New var.
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 6497fb6b7d0..c96eccbfecb 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -295,7 +295,10 @@ Also ignores spaces after parenthesis when 'space."
295 (and (memq (char-before) '(?\? ?=)) 295 (and (memq (char-before) '(?\? ?=))
296 (let ((tok (ruby-smie--backward-token))) 296 (let ((tok (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
300 (forward-comment 1)
301 (eq (char-after) ?.))))))
299 302
300(defun ruby-smie--redundant-do-p (&optional skip) 303(defun ruby-smie--redundant-do-p (&optional skip)
301 (save-excursion 304 (save-excursion