1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
nobu 2008-01-27 13:31:47 +00:00
parent 587167a8cb
commit ce26086b01
2 changed files with 5 additions and 1 deletions

View file

@ -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
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>
* string.c (rb_str_inspect): avoid exception by

View file

@ -272,6 +272,7 @@ The variable ruby-indent-level controls the amount of indentation.
(make-local-variable 'add-log-current-defun-function)
(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)
(run-hooks 'ruby-mode-hook))