diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2012-09-09 03:32:25 +0400 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2012-09-09 03:32:25 +0400 |
commit | c3268831411fd68ce4f6f84ecda5eda2814a59a8 (patch) | |
tree | 73bf19e8bfbead6b975c923d0df4d7d44ae4a7bf /lisp/emacs-lisp/cl-extra.el | |
parent | 9d7f18633a3f36de96bb42d856355c5ce12f2b5d (diff) | |
download | emacs-c3268831411fd68ce4f6f84ecda5eda2814a59a8.tar.gz emacs-c3268831411fd68ce4f6f84ecda5eda2814a59a8.tar.bz2 emacs-c3268831411fd68ce4f6f84ecda5eda2814a59a8.zip |
* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Guess the current block,
not just expect to be at its beginning. Adjust callees.
Succeed when do-end block has no space before the pipe character.
(ruby-brace-to-do-end): When the original block is one-liner,
convert to multiline. Reindent the result.
* test/automated/ruby-mode-tests.el:
(ruby-toggle-block-to-multiline): New test.
(ruby-should-indent-buffer, ruby-toggle-block-to-do-end)
(ruby-toggle-block-to-brace): Use buffer-string.
Diffstat (limited to 'lisp/emacs-lisp/cl-extra.el')
0 files changed, 0 insertions, 0 deletions