[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 6a45c1451a 069/265: inf-ruby-switch-to-compilatio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 6a45c1451a 069/265: inf-ruby-switch-to-compilation: Rename to -maybe-, tweak the docstring |
Date: |
Sat, 9 Jul 2022 21:59:15 -0400 (EDT) |
branch: elpa/inf-ruby
commit 6a45c1451a4d4b8f8dac64ea48167ab3b5bc48fa
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
inf-ruby-switch-to-compilation: Rename to -maybe-, tweak the docstring
and untabify.
---
inf-ruby.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 360ad1a859..093522562c 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -70,7 +70,7 @@ graphical char in all other prompts.")
(define-key map (kbd "C-c C-l") 'ruby-load-file)
(define-key map (kbd "C-x C-e") 'ruby-send-last-sexp)
(define-key map (kbd "TAB") 'inf-ruby-complete)
- (define-key map (kbd "C-x C-q") 'inf-ruby-switch-to-compilation)
+ (define-key map (kbd "C-x C-q") 'inf-ruby-maybe-switch-to-compilation)
map)
"Mode map for inf-ruby-mode")
@@ -457,13 +457,15 @@ interactive mode, i.e. hits a debugger breakpoint."
(delete-region (match-beginning 0) (point))
(comint-output-filter proc line)))))
-(defun inf-ruby-switch-to-compilation ()
- "Switch to compilation mode before switching to `inf-ruby-mode'."
+(defun inf-ruby-maybe-switch-to-compilation ()
+ "Switch to compilation mode this buffer was in before
+`inf-ruby-switch-from-compilation' was called, if it was.
+Otherwise, just toggle read-only status."
(interactive)
(if inf-ruby-orig-compilation-mode
(let ((orig-mode-line-process mode-line-process))
- (funcall inf-ruby-orig-compilation-mode)
- (setq mode-line-process orig-mode-line-process))
+ (funcall inf-ruby-orig-compilation-mode)
+ (setq mode-line-process orig-mode-line-process))
(toggle-read-only)))
;;;###autoload
- [nongnu] elpa/inf-ruby 505b3cd216 023/265: Changed the manual installation comments to reflect the change from inf-ruby-keys to inf-ruby-setup-keybindings, (continued)
- [nongnu] elpa/inf-ruby 505b3cd216 023/265: Changed the manual installation comments to reflect the change from inf-ruby-keys to inf-ruby-setup-keybindings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5d159adddd 030/265: Fix commit 'Store non-whitespace input in the REPL history, ...', ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 87b96ca887 035/265: Drop --inf-ruby-mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby bf49b368a5 047/265: Fix #18, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby cfb1c89a25 038/265: inf-ruby-minor-mode-map: Initialize to the resulting map, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 33b89e654a 048/265: Update comment, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f33b4aa36b 051/265: inf-ruby-switch-from-compilation: enable undo, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 771c7473b9 039/265: Pass --prompt default to ruby and jruby, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6f4e68bb1c 043/265: Set comint-process-echoes on Windows, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 928a5dfd73 059/265: inf-ruby-switch-from-compilation: Call `comint-output-filter` on current line, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6a45c1451a 069/265: inf-ruby-switch-to-compilation: Rename to -maybe-, tweak the docstring,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 350b12fea3 062/265: inf-ruby-prompt-format: Minor cleanup, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby db01e3dd13 092/265: Fix send-region with pure-Pry repl, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e3335232ce 081/265: Add missing code section to comment front-matter, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 87a5fd3038 074/265: Make inf-ruby-minor-mode keymap visible when doing C-h f/C-h m, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 422cc1be93 093/265: Fix #35, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 20585d3983 108/265: Use file-name-as-directory to add a trailing slash, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby dc7df6541e 091/265: inf-ruby-completions: Make safer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 96c48e0270 084/265: Save inf-ruby-orig-process-filter value locally before switching mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e8cd8c4a28 076/265: Touch up README, docstrings and comments, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 24c08fca2a 152/265: Fix the previous commit, ELPA Syncer, 2022/07/09