From: Mauro Aranda Date: Thu, 12 Oct 2023 13:17:57 +0000 (-0300) Subject: Fix a defcustom :type X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce3ed6e019cdb5f8fd831e35c04832aaa2c768b6;p=emacs.git Fix a defcustom :type * lisp/progmodes/ruby-mode.el (ruby-insert-encoding-magic-comment): Allow always-utf8. (Bug#66498) --- 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 @@ is customizable via `ruby-encoding-magic-comment-style'. 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."