From 213d8abe991e72a1f29e1018184427b287036f7f Mon Sep 17 00:00:00 2001 From: Mauro Aranda Date: Thu, 12 Oct 2023 10:17:57 -0300 Subject: [PATCH] Fix a defcustom :type * lisp/progmodes/ruby-mode.el (ruby-insert-encoding-magic-comment): Allow always-utf8. (Bug#66498) --- lisp/progmodes/ruby-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 9d80bbd72dd..5c34ddc562b 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -516,7 +516,9 @@ ruby-insert-encoding-magic-comment When set to `always-utf8' an utf-8 comment will always be added, even if it's not required." - :type 'boolean :group 'ruby) + :type '(choice (const :tag "Don't insert" nil) + (const :tag "Insert utf-8 comment always" always-utf8) + (const :tag "Insert only when required" t))) (defcustom ruby-encoding-magic-comment-style 'ruby "The style of the magic encoding comment to use." -- 2.34.1