aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/ruby-mode.el6
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 926bd1091c0..cc302daa9cf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-10-24 Dmitry Gutov <dgutov@yandex.ru>
2
3 * progmodes/ruby-mode.el (ruby-smie-rules): Fix the "curly block
4 with parameters" example. Simplify the "is it block or is it
5 hash" check, but also make it more thorough.
6
12013-10-23 Masashi Fujimoto <masfj.dev@gmail.com> (tiny change) 72013-10-23 Masashi Fujimoto <masfj.dev@gmail.com> (tiny change)
2 8
3 * battery.el (battery-pmset): Handle OS X Mavericks. (Bug#15694) 9 * battery.el (battery-pmset): Handle OS X Mavericks. (Bug#15694)
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 88820a4a942..5f553b94ba7 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -449,7 +449,7 @@ explicitly declared in magic comment."
449 ((smie-rule-parent-p "def" "begin" "do" "class" "module" "for" 449 ((smie-rule-parent-p "def" "begin" "do" "class" "module" "for"
450 "while" "until" "unless" 450 "while" "until" "unless"
451 "if" "then" "elsif" "else" "when" 451 "if" "then" "elsif" "else" "when"
452 "rescue" "ensure") 452 "rescue" "ensure" "{")
453 (smie-rule-parent ruby-indent-level)) 453 (smie-rule-parent ruby-indent-level))
454 ;; For (invalid) code between switch and case. 454 ;; For (invalid) code between switch and case.
455 ;; (if (smie-parent-p "switch") 4) 455 ;; (if (smie-parent-p "switch") 4)
@@ -457,9 +457,7 @@ explicitly declared in magic comment."
457 (`(:before . ,(or `"(" `"[" `"{")) 457 (`(:before . ,(or `"(" `"[" `"{"))
458 (cond 458 (cond
459 ((and (equal token "{") 459 ((and (equal token "{")
460 (not (smie-rule-prev-p "(" "{" "[" "," "=>")) 460 (not (smie-rule-prev-p "(" "{" "[" "," "=>" "=" "return" ";")))
461 (or (smie-rule-hanging-p)
462 (smie-rule-next-p "opening-|")))
463 ;; Curly block opener. 461 ;; Curly block opener.
464 (smie-rule-parent)) 462 (smie-rule-parent))
465 ((smie-rule-hanging-p) 463 ((smie-rule-hanging-p)