[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 6d7f1dc10a 085/265: Merge remote-tracking branch
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 6d7f1dc10a 085/265: Merge remote-tracking branch 'bbatsov/style' |
Date: |
Sat, 9 Jul 2022 21:59:16 -0400 (EDT) |
branch: elpa/inf-ruby
commit 6d7f1dc10a09f83aaeb85b38e3777ef7491db04b
Merge: 96c48e0270 27143433e4
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Merge remote-tracking branch 'bbatsov/style'
---
inf-ruby.el | 36 +++++++++++++++++++++++++++++-------
1 file changed, 29 insertions(+), 7 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 2f8ebca462..2f63413d1e 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -12,6 +12,21 @@
;; Keywords: languages ruby
;; Version: 2.3.1
+;; This program is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;; This file is not part of GNU Emacs.
+
;;; Commentary:
;;
;; inf-ruby provides a REPL buffer connected to a Ruby subprocess.
@@ -37,9 +52,12 @@
;; to your init file to easily switch from common Ruby compilation
;; modes to interact with a debugger.
+;;; Code:
+
(require 'comint)
(require 'compile)
(require 'ruby-mode)
+(require 'thingatpt)
(defvar inf-ruby-default-implementation "ruby"
"Which Ruby implementation to use if none is specified.")
@@ -77,7 +95,7 @@ graphical char in all other prompts.")
(define-key map (kbd "TAB") 'inf-ruby-complete)
(define-key map (kbd "C-x C-q") 'inf-ruby-maybe-switch-to-compilation)
map)
- "Mode map for inf-ruby-mode")
+ "Mode map for inf-ruby-mode.")
(defvar inf-ruby-implementations
'(("ruby" . "irb --prompt default -r irb/completion")
@@ -145,8 +163,10 @@ The following commands are available:
A simple IRB process can be fired up with <kbd>M-x inf-ruby</kbd>.
-To launch a REPL with project-specific console instead, type <kbd>M-x
inf-ruby-console-auto</kbd>.
-It recognizes several project types, including Rails, gems and anything with
`racksh` in their Gemfile.
+To launch a REPL with project-specific console instead, type
+<kbd>M-x inf-ruby-console-auto</kbd>. It recognizes several
+project types, including Rails, gems and anything with `racksh`
+in their Gemfile.
Customization: When entered, this mode runs `comint-mode-hook' and
`inf-ruby-mode-hook' (in that order).
@@ -213,7 +233,7 @@ The following commands are available:
(concat rtn-str (substring str start))))
(defun inf-ruby-get-old-input ()
- "Snarf the sexp ending at point"
+ "Snarf the sexp ending at point."
(save-excursion
(let ((end (point)))
(re-search-backward inf-ruby-first-prompt-pattern)
@@ -224,7 +244,7 @@ The following commands are available:
(defun inf-ruby (&optional impl)
"Run an inferior Ruby process in a buffer.
With prefix argument, prompts for which Ruby implementation
-\(from the list `inf-ruby-implementations') to use. Runs the
+\(from the list `inf-ruby-implementations') to use. Runs the
hooks `inf-ruby-mode-hook' \(after the `comint-mode-hook' is
run)."
@@ -259,7 +279,9 @@ of `ruby-program-name'). Runs the hooks
`inferior-ruby-mode-hook'
(pop-to-buffer (setq inf-ruby-buffer (format "*%s*" name))))
(defun inf-ruby-proc ()
- "Returns the current IRB process. See variable inf-ruby-buffer."
+ "Returns the current IRB process.
+
+See variable `inf-ruby-buffer'."
(or (get-buffer-process (if (eq major-mode 'inf-ruby-mode)
(current-buffer)
inf-ruby-buffer))
@@ -542,7 +564,7 @@ and the directory to run it from."
;;;###autoload
(defun inf-ruby-console-gem (dir)
"Run IRB console for the gem in DIR.
-The main module should be loaded automatically. If DIR contains a
+The main module should be loaded automatically. If DIR contains a
Gemfile, it should use the `gemspec' instruction."
(interactive "D")
(let* ((default-directory dir)
- [nongnu] elpa/inf-ruby 1dd007201a 197/265: Do not overwrite inf-ruby-buffer if it's still live, (continued)
- [nongnu] elpa/inf-ruby 1dd007201a 197/265: Do not overwrite inf-ruby-buffer if it's still live, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9bd6d24aca 202/265: inf-ruby-console-gem: Enable completion, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 81adadf0f9 203/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby fd8d392fef 224/265: ruby-print-result: Fallback to inf-ruby-buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 03dd9c9d4e 246/265: Avoid creating duplicates in inf-ruby-buffers, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 3cdf30dc73 251/265: Apply code review - remove cl-lib and optional args, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 3e16215cb2 128/265: Document changing C-c C-s to call inf-ruby-console-auto, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b3ee3093b5 105/265: Autoloading inf-ruby-minor-mode is more important, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c5bfcf59eb 112/265: Turn string into a choice, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f1ea8f8a69 103/265: Restore compatibility with Emacs < 24.4, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6d7f1dc10a 085/265: Merge remote-tracking branch 'bbatsov/style',
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 409fd736d4 104/265: Complete on an empty line, too, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5759a9187c 132/265: Recommend setting Pry.config.correct_indent to false, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1d6fef6eba 171/265: Wrap SMIE tokenizer functions to bind inhibit-field-text-motion, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 12f7f0750c 159/265: Automatically returning to the previous compilation mode after typing, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby df014b0717 177/265: Merge pull request #90 from codeasone/support-single-quoted-gemspec-name, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 74ca3a7f97 191/265: in a{, new} buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5aaa7e879c 193/265: Only launch one console per project, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 62c1c72d8e 205/265: Add autoload, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 86db14c315 022/265: Rename: inf-ruby-keys -> inf-ruby-setup-keybindings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby dfc1d4f19f 033/265: Delete obsolete TODO comment, ELPA Syncer, 2022/07/09