1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Fix a defcustom :type

* lisp/progmodes/ruby-mode.el (ruby-insert-encoding-magic-comment):
Allow always-utf8.  (Bug#66498)
This commit is contained in:
Mauro Aranda 2023-10-12 10:17:57 -03:00 committed by Dmitry Gutov
parent 57ffdfb59b
commit ce3ed6e019

View file

@ -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."