[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 9bfbce42be 241/265: Untabify and reformat the new
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 9bfbce42be 241/265: Untabify and reformat the new code a little |
Date: |
Sat, 9 Jul 2022 21:59:29 -0400 (EDT) |
branch: elpa/inf-ruby
commit 9bfbce42be5fd3dbd8386687efd60450388f6978
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Untabify and reformat the new code a little
---
inf-ruby.el | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index de63949014..fb5c26b724 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -509,23 +509,25 @@ Must not contain ruby meta characters.")
(interactive)
(save-excursion
(let ((orig-start (point))
- (adjust-lineno 0)
- prefix suffix defun-start)
+ (adjust-lineno 0)
+ prefix suffix defun-start)
(save-excursion
- (end-of-line)
- (ruby-beginning-of-defun)
- (setq defun-start (point))
- (unless (ruby-block-contains-point orig-start)
- (error "point is not within a definition"))
- (while (and (ignore-errors (backward-up-list) t)
- (looking-at "\\s-*\\(class\\|module\\)\\s-"))
- (let ((line (buffer-substring-no-properties
(line-beginning-position)(1+ (line-end-position)))))
- (if prefix
- (setq prefix (concat line prefix)
- suffix (concat suffix "end\n"))
- (setq prefix line
- suffix "end\n"))
- (setq adjust-lineno (1- adjust-lineno)))))
+ (end-of-line)
+ (ruby-beginning-of-defun)
+ (setq defun-start (point))
+ (unless (ruby-block-contains-point orig-start)
+ (error "Point is not within a definition"))
+ (while (and (ignore-errors (backward-up-list) t)
+ (looking-at "\\s-*\\(class\\|module\\)\\s-"))
+ (let ((line (buffer-substring-no-properties
+ (line-beginning-position)
+ (1+ (line-end-position)))))
+ (if prefix
+ (setq prefix (concat line prefix)
+ suffix (concat suffix "end\n"))
+ (setq prefix line
+ suffix "end\n"))
+ (setq adjust-lineno (1- adjust-lineno)))))
(end-of-defun)
(ruby-send-region defun-start (point) nil prefix suffix adjust-lineno))))
- [nongnu] elpa/inf-ruby a85ae010c6 046/265: Handle different prompts, not just the IRB default, (continued)
- [nongnu] elpa/inf-ruby a85ae010c6 046/265: Handle different prompts, not just the IRB default, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 310da805b6 129/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 67629312ad 120/265: Work around pry/pry#1267, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 866483eecc 190/265: Fix a comment, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c45cd825e0 195/265: inf-ruby-mode: Use define-derived-mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby bf380c13e5 198/265: Support JRuby 9000 RVM prompt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a4b1c40202 204/265: inf-ruby-console-script: Extract from ...-default, and up its priority, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 674a2a837f 209/265: Drop a newline and link to the wiki page directly, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1a5aebea0d 213/265: Bring back interactive run-ruby, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby fe1ea9925c 226/265: Restore original compilation-error-regexp-alist, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9bfbce42be 241/265: Untabify and reformat the new code a little,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 92d5d122fa 245/265: Use 'bundle exec' in nomultiline check when needed, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby bcdb97983c 257/265: Merge pull request #154 from tunnes/feature-create-load-current-ruby-file, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5143c84f91 189/265: inf-ruby-proc: Fall back to inf-ruby-buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5b24985b0e 135/265: Check IRB is defined before using it, fixes #64, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f908b1f506 136/265: Merge pull request #65 from iqbalansari/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 0af69257a4 138/265: Clarify the "usage" section, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 12d1d35f73 153/265: Add ruby-send-buffer function, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d39ea0bd59 212/265: Use a more common idea of prefix, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 227a80fc52 176/265: Correct regexp, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby ca10d72e0c 220/265: Merge pull request #118 from marsam/master, ELPA Syncer, 2022/07/09