emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/inf-ruby 106972ded1 165/265: Touch up docstrings and renam


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 106972ded1 165/265: Touch up docstrings and rename MODE-VAR to MODE
Date: Sat, 9 Jul 2022 21:59:23 -0400 (EDT)

branch: elpa/inf-ruby
commit 106972ded1186ebc53dcbf409177b048c5fbc88c
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Touch up docstrings and rename MODE-VAR to MODE
---
 inf-ruby.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 142433d8e0..bdd20718f1 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -735,14 +735,14 @@ Gemfile, it should use the `gemspec' instruction."
   (let ((default-directory (file-name-as-directory dir)))
     (run-ruby "bundle exec racksh" "racksh")))
 
-(defun inf-ruby-in-ruby-compilation-modes (mode-var)
-  "Check if MODE-VAR is a ruby compilation mode"
-  (member mode-var '(rspec-compilation-mode
-                     ruby-compilation-mode
-                     projectile-rails-server-mode)))
+(defun inf-ruby-in-ruby-compilation-modes (mode)
+  "Check if MODE is a Ruby compilation mode."
+  (member mode '(rspec-compilation-mode
+                 ruby-compilation-mode
+                 projectile-rails-server-mode)))
 
 (defun inf-ruby-auto-enter ()
-  "Automatically enter inf-ruby mode if the breakpoint pattern matches the 
current line."
+  "Switch to `inf-ruby-mode' if the breakpoint pattern matches the current 
line."
   (when (inf-ruby-in-ruby-compilation-modes major-mode)
     (save-excursion
       (beginning-of-line)
@@ -751,7 +751,7 @@ Gemfile, it should use the `gemspec' instruction."
         (inf-ruby-switch-from-compilation)))))
 
 (defun inf-ruby-auto-exit (input)
-  "Check the current input is a debugger exit command and return to the 
previous compilation mode if t."
+  "Return to the previous compilation mode if INPUT is a debugger exit 
command."
   (when (inf-ruby-in-ruby-compilation-modes inf-ruby-orig-compilation-mode)
     (if (member input '("quit" "exit" ""))
         (inf-ruby-maybe-switch-to-compilation))))



reply via email to

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