зеркало из https://github.com/github/ruby.git
ruby-electric.el: use kill-region
* misc/ruby-electric.el (ruby-electric-curlies): use kill-region instead of interactive command delete-backward-char. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5852d901b5
Коммит
f9aef18497
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 1 17:16:54 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* misc/ruby-electric.el (ruby-electric-curlies): use kill-region
|
||||
instead of interactive command delete-backward-char.
|
||||
|
||||
Sat Dec 1 17:12:55 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* misc/inf-ruby.el (inferior-ruby-mode): fix the
|
||||
|
|
|
@ -174,7 +174,7 @@ strings. Note that you must have Font Lock enabled."
|
|||
(if (eq last-command-event ?{)
|
||||
(save-excursion
|
||||
(when (not (char-equal ?\# (preceding-char)))
|
||||
(delete-backward-char)
|
||||
(kill-region (point) (1- (point)))
|
||||
(insert "#"))))
|
||||
(save-excursion
|
||||
(backward-char 1)
|
||||
|
|
Загрузка…
Ссылка в новой задаче