From 4e9fc48c06eef312b81764ff235293bfe2be594b Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Tue, 26 Nov 2013 12:38:19 +0200 Subject: [PATCH] Improve a couple of changelog entries. --- lisp/ChangeLog | 20 ++++++++++++++------ test/ChangeLog | 7 +++++-- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e6442f8952..25dcbc67ab7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -307,9 +307,13 @@ * subr.el (version-regexp-alist): Recognize hg, svn and darcs versions as snapshot versions. - * progmodes/ruby-mode.el (ruby-mode-set-encoding): - Add the ability to always insert an utf-8 encoding comment. - Fix and simplify coding comment update logic. + * progmodes/ruby-mode.el (ruby--detect-encoding): Make aware of + 'always-utf8 value of `ruby-insert-encoding-magic-comment'. + (ruby--encoding-comment-required-p): Extract from + `ruby-mode-set-encoding'. + (ruby-mode-set-encoding): Add the ability to always insert an + utf-8 encoding comment. Fix and simplify coding comment update + logic. 2013-11-14 Michael Albinus @@ -455,9 +459,13 @@ 2013-11-08 Bozhidar Batsov - * progmodes/ruby-mode.el (ruby-mode-set-encoding): - Use `ruby-encoding-magic-comment-style' to control the - style of the auto-inserted encoding comment. + * progmodes/ruby-mode.el: Improve encoding comment handling. + (ruby-encoding-magic-comment-style): New option. + (ruby-custom-encoding-magic-comment-template): New option. + (ruby--insert-coding-comment, ruby--detect-encoding): New + functions extracted from `ruby-mode-set-encoding'. + (ruby-mode-set-encoding): Use `ruby-encoding-magic-comment-style' + to control the style of the auto-inserted encoding comment. 2013-11-08 Dmitry Gutov diff --git a/test/ChangeLog b/test/ChangeLog index a0c17f6cfb7..d22c47f62df 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -28,9 +28,12 @@ 2013-11-20 Bozhidar Batsov - * test/automated/ruby-mode-tests.el: + * test/automated/ruby-mode-tests.el (ruby-exit!-font-lock): Add a failing test for Bug#15874. - * test/automated/ruby-mode-tests.el: + * test/automated/ruby-mode-tests.el + (ruby--insert-coding-comment-ruby-style) + (ruby--insert-coding-comment-emacs-style) + (ruby--insert-coding-comment-custom-style): Add a few tests for `ruby--insert-coding-comment'. 2013-11-18 Paul Eggert -- 2.39.2