[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 91bbd7763d 071/265: Avoid error when trying to sw
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 91bbd7763d 071/265: Avoid error when trying to switch to non-existing inf-ruby buffer |
Date: |
Sat, 9 Jul 2022 21:59:15 -0400 (EDT) |
branch: elpa/inf-ruby
commit 91bbd7763dcad9370bf3567fbb012e83ceb8a681
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Avoid error when trying to switch to non-existing inf-ruby buffer
Running `ruby-switch-to-inf` when there is no `inf-ruby-buffer` produces a
hard error due to passing `nil` to `get-buffer`. This commit makes the handling
of this case more robust.
---
inf-ruby.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 15b5795c65..54a5c9b489 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -321,7 +321,7 @@ Must not contain ruby meta characters.")
"Switch to the ruby process buffer.
With argument, positions cursor at end of buffer."
(interactive "P")
- (if (get-buffer inf-ruby-buffer)
+ (if (and inf-ruby-buffer (get-buffer inf-ruby-buffer))
(pop-to-buffer inf-ruby-buffer)
(error "No current process buffer. See variable inf-ruby-buffer."))
(cond (eob-p
- [nongnu] elpa/inf-ruby 4f6a265640 178/265: Add support for zeus console, (continued)
- [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
- [nongnu] elpa/inf-ruby cd50ce8432 249/265: Creating eval overlay feature, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 57642c27fd 053/265: inf-ruby-completions: support non-"current" inf-ruby-mode buffers and Pry, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 33e17e055f 037/265: Move keys to a new minor mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 91bbd7763d 071/265: Avoid error when trying to switch to non-existing inf-ruby buffer,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 54508a9923 011/265: Mac OS: Fix completion output splitting for Ruby 1.8.7 compatibility., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 74e96360b1 034/265: Added macruby to inf-ruby-implementations, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a7bb5f99e3 013/265: Pesky header stuff., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 164f2dda53 065/265: Add commands to launch different types of consoles, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d776551688 087/265: Add pry to inf-ruby-implementations, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 28b84de084 122/265: Advertise using the .pryrc workaround, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 562fa9a422 094/265: Close #37, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 55559dfaac 144/265: fix OpenStruct.new syntax to work with ruby 1.8.7, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 488fc1b129 147/265: Refine the previous change, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby aad537f010 156/265: Merge pull request #82 from mkaschenko/ruby-send-buffer, ELPA Syncer, 2022/07/09