misc/ruby-electric.el: Import version 2.1.1.

* ruby-electric-delete-backward-char: Enable support for number
    prefix.

  * ruby-electric-curlies: Fix electric operation after an open
    curly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2013-12-17 08:33:01 +00:00
Родитель a98e343d39
Коммит f38a2926e0
2 изменённых файлов: 17 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,14 @@
Tue Dec 17 17:30:56 2013 Akinori MUSHA <knu@iDaemons.org>
* misc/ruby-electric.el: Import version 2.1.1 from
https://github.com/knu/ruby-electric.el.
* ruby-electric-delete-backward-char: Enable support for number
prefix.
* ruby-electric-curlies: Fix electric operation after an open
curly.
Tue Dec 17 16:19:09 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_trace.c (rb_postponed_job_flush): isolate exceptions in

Просмотреть файл

@ -10,7 +10,7 @@
;; URL: https://github.com/knu/ruby-electric.el
;; Keywords: languages ruby
;; License: The same license terms as Ruby
;; Version: 2.1
;; Version: 2.1.1
;;; Commentary:
;;
@ -366,7 +366,9 @@ enabled."
(t
(insert "#")
(forward-char 1)
(insert "}"))))))))
(insert "}")))))
(t
(setq this-command 'self-insert-command)))))
(defun ruby-electric-hash(arg)
(interactive "*P")
@ -447,7 +449,7 @@ enabled."
(setq this-command 'self-insert-command)))))
(defun ruby-electric-delete-backward-char(arg)
(interactive "*P")
(interactive "*p")
(cond ((memq last-command '(ruby-electric-matching-char
ruby-electric-bar))
(delete-char 1))
@ -466,7 +468,7 @@ enabled."
((eq last-command 'ruby-electric-hash)
(and (char-equal (preceding-char) ?{)
(delete-char 1))))
(delete-char -1))
(delete-char (- arg)))
(provide 'ruby-electric)