[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 70da83f8e4 131/265: Merge pull request #54 from w
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 70da83f8e4 131/265: Merge pull request #54 from wasamasa/feature-defcustom |
Date: |
Sat, 9 Jul 2022 21:59:20 -0400 (EDT) |
branch: elpa/inf-ruby
commit 70da83f8e497ad78420527e8231278cb230e1db4
Merge: 310da805b6 00237986d8
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Merge pull request #54 from wasamasa/feature-defcustom
Apply `defcustom` fixes
---
inf-ruby.el | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index a5dc00a6f5..f9ed36e4e6 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -77,10 +77,26 @@
(defcustom inf-ruby-prompt-read-only t
"If non-nil, the prompt will be read-only.
-Also see the description of `ielm-prompt-read-only'.")
+Also see the description of `ielm-prompt-read-only'."
+ :type 'boolean
+ :group 'inf-ruby)
-(defvar inf-ruby-default-implementation "ruby"
- "Which Ruby implementation to use if none is specified.")
+(defcustom inf-ruby-implementations
+ '(("ruby" . "irb --prompt default --noreadline -r irb/completion")
+ ("jruby" . "jruby -S irb --prompt default --noreadline -r
irb/completion")
+ ("rubinius" . "rbx -r irb/completion")
+ ("yarv" . "irb1.9 -r irb/completion")
+ ("macruby" . "macirb -r irb/completion")
+ ("pry" . "pry"))
+ "An alist of ruby implementations to irb executable names."
+ :type '(repeat (cons string string))
+ :group 'inf-ruby)
+
+(defcustom inf-ruby-default-implementation "ruby"
+ "Which Ruby implementation to use if none is specified."
+ :type `(choice ,@(mapcar (lambda (item) (list 'const (car item)))
+ inf-ruby-implementations))
+ :group 'inf-ruby)
(defconst inf-ruby-prompt-format
(concat
@@ -119,15 +135,6 @@ graphical char in all other prompts.")
map)
"Mode map for `inf-ruby-mode'.")
-(defvar inf-ruby-implementations
- '(("ruby" . "irb --prompt default --noreadline -r irb/completion")
- ("jruby" . "jruby -S irb --prompt default --noreadline -r
irb/completion")
- ("rubinius" . "rbx -r irb/completion")
- ("yarv" . "irb1.9 -r irb/completion")
- ("macruby" . "macirb -r irb/completion")
- ("pry" . "pry"))
- "An alist of ruby implementations to irb executable names.")
-
;;;###autoload
(defvar ruby-source-modes '(ruby-mode enh-ruby-mode)
"Used to determine if a buffer contains Ruby source code.
- [nongnu] elpa/inf-ruby 8c0aa0911b 118/265: Add "Bugs" section, (continued)
- [nongnu] elpa/inf-ruby 8c0aa0911b 118/265: Add "Bugs" section, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b3747e9574 127/265: Merge pull request #59 from proofit404/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9157d9c561 115/265: inf-ruby-console-gem: when gemspec doesn't modify LOAD_PATH, -I lib, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4da1cca555 079/265: Set process filter in inf-ruby-switch-to-compilation, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a960434970 096/265: run-ruby: write better docstring, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby dbb8d63324 082/265: Add missing license section to comment front-matter, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 27143433e4 083/265: A few doc fixes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d91f395070 080/265: Add missing require for thingatpt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4c39cd1509 123/265: Fix a couple of compilation warnings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 00237986d8 130/265: Turn `inf-ruby-implementations` into custom form, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 70da83f8e4 131/265: Merge pull request #54 from wasamasa/feature-defcustom,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby f6a6b89e08 161/265: Adapting code to use looking-at over re-search-forward., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 505a7bc140 170/265: Merge pull request #84 from janpath/patch-1, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4d82095424 174/265: inf-ruby-console-gem: Only try to load Ruby files, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4f6a265640 178/265: Add support for zeus console, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby af4f238ef4 200/265: Merge pull request #99 from dgopstein/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4893dd6426 208/265: Describe how to add custom prompt patterns (#108), ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 49d59a7897 216/265: Merge pull request #115 from p-sdk/add-ruby-send-and-go-commands, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a4c766e605 231/265: Use pry_instance, _pry_ is not in Pry 0.13 anymore, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9f0f79ff45 232/265: inf-ruby-console-rails: Try to handle IRB's "multiline" thing here, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c2a28ef6a1 242/265: Replace toggle-read-only-mode with read-only-mode, ELPA Syncer, 2022/07/09