ruby-changes:47980
From: nobu <ko1@a...>
Date: Mon, 2 Oct 2017 13:06:59 +0900 (JST)
Subject: [ruby-changes:47980] nobu:r60094 (trunk): ruby-additional.el: shorten here-doc markers
nobu 2017-10-02 13:06:55 +0900 (Mon, 02 Oct 2017) New Revision: 60094 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60094 Log: ruby-additional.el: shorten here-doc markers Modified files: trunk/misc/ruby-additional.el Index: misc/ruby-additional.el =================================================================== --- misc/ruby-additional.el (revision 60093) +++ misc/ruby-additional.el (revision 60094) @@ -162,11 +162,11 @@ Emacs to Ruby." https://github.com/ruby/ruby/blob/trunk/misc/ruby-additional.el#L162 "Insert indented here document code block" (interactive "P") (let ((c (if arg "~" "-"))) - (insert "\"#{<<" c "\"begin\;\"}\\n#{<<" c "'end;'}\"")) + (insert "\"#{<<" c "\"{#\"}\\n#{<<" c "'};'}\"")) (end-of-line) (if (eobp) (insert "\n") (forward-char)) (indent-region (point) - (progn (insert "begin;\n" "end;\n") (point))) + (progn (insert "{#\n" "};\n") (point))) (beginning-of-line 0)) (define-key ruby-mode-map "\C-cH" 'ruby-insert-heredoc-code-block) )) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/