emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ce3ed6e019c: Fix a defcustom :type


From: Dmitry Gutov
Subject: master ce3ed6e019c: Fix a defcustom :type
Date: Thu, 12 Oct 2023 12:11:09 -0400 (EDT)

branch: master
commit ce3ed6e019cdb5f8fd831e35c04832aaa2c768b6
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Dmitry Gutov <dmitry@gutov.dev>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]