* misc/ruby-mode.el (ruby-mode): set ruby-mode-set-encoding to buffer
local before-save-hook. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
587167a8cb
commit
ce26086b01
@ -1,8 +1,11 @@
|
|||||||
Sun Jan 27 21:48:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jan 27 22:31:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* misc/ruby-mode.el (ruby-mode-set-encoding): automatically insert
|
* misc/ruby-mode.el (ruby-mode-set-encoding): automatically insert
|
||||||
encoding magic comment.
|
encoding magic comment.
|
||||||
|
|
||||||
|
* misc/ruby-mode.el (ruby-mode): set ruby-mode-set-encoding to buffer
|
||||||
|
local before-save-hook.
|
||||||
|
|
||||||
Sun Jan 27 19:51:15 2008 Tanaka Akira <akr@fsij.org>
|
Sun Jan 27 19:51:15 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* string.c (rb_str_inspect): avoid exception by
|
* string.c (rb_str_inspect): avoid exception by
|
||||||
|
@ -272,6 +272,7 @@ The variable ruby-indent-level controls the amount of indentation.
|
|||||||
(make-local-variable 'add-log-current-defun-function)
|
(make-local-variable 'add-log-current-defun-function)
|
||||||
(setq add-log-current-defun-function 'ruby-add-log-current-method)
|
(setq add-log-current-defun-function 'ruby-add-log-current-method)
|
||||||
|
|
||||||
|
(make-local-variable 'before-save-hook)
|
||||||
(add-hook 'before-save-hook 'ruby-mode-set-encoding)
|
(add-hook 'before-save-hook 'ruby-mode-set-encoding)
|
||||||
|
|
||||||
(run-hooks 'ruby-mode-hook))
|
(run-hooks 'ruby-mode-hook))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user