[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ruby-end 5aba673f0e 85/91: ruby-end-code-at-point-p: Ch
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ruby-end 5aba673f0e 85/91: ruby-end-code-at-point-p: Check syntax-ppss instead of text props |
Date: |
Wed, 25 Jan 2023 19:58:47 -0500 (EST) |
branch: externals/ruby-end
commit 5aba673f0ebbd55e2a2b33aea576717701c08e0e
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
ruby-end-code-at-point-p: Check syntax-ppss instead of text props
Closes #15
---
ruby-end.el | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/ruby-end.el b/ruby-end.el
index 19d4f159a7..c54e642ac4 100644
--- a/ruby-end.el
+++ b/ruby-end.el
@@ -99,7 +99,6 @@ When nil, any `last-command' will do."
"\\(?:^\\|\\s-+\\)\\(?:do\\|def\\|class\\|module\\|case\\|for\\|begin\\)"
"Regular expression matching blocks before point.")
-
(defconst ruby-end-expand-after-re
"\\s-*$"
"Regular expression matching after point.")
@@ -165,10 +164,7 @@ When nil, any `last-command' will do."
(defun ruby-end-code-at-point-p ()
"Check if point is code, or comment or string."
- (let ((properties (text-properties-at (point))))
- (and
- (null (memq 'font-lock-string-face properties))
- (null (memq 'font-lock-comment-face properties)))))
+ (not (nth 8 (syntax-ppss))))
;;;###autoload
(define-minor-mode ruby-end-mode
- [elpa] externals/ruby-end 61a740d02b 87/91: Fix the edmacro warning, (continued)
- [elpa] externals/ruby-end 61a740d02b 87/91: Fix the edmacro warning, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 0d2634e769 41/91: Merge branch 'expand-on-ret', ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 17a6b4eff0 55/91: Make sure we start ruby-end-mode in ruby-mode., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 19037b0c8c 59/91: Add new option, ruby-end-expand-only-for-last-commands, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 01ed4038da 66/91: Add gnu source., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 337ff42f60 72/91: Merge branch 'add_hook_for_enh_ruby_mode', ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end a3d309c8da 80/91: Use generic langauge on Travis, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 95544f5e9e 76/91: Update Travis config, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 6c7c8e5e21 37/91: Require ruby-mode., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 9ec6d1b7e5 54/91: Do not activate ruby-end-mode in features., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5aba673f0e 85/91: ruby-end-code-at-point-p: Check syntax-ppss instead of text props,
ELPA Syncer <=
- [elpa] externals/ruby-end ea453f5ac6 82/91: Use EVM Travis binaries, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 8b2aaf6467 58/91: Add Travis., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 92dd44a4f5 35/91: Update README., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5d302e1b84 43/91: Updated version to 0.2.0., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 8de5a68ff6 45/91: Add pkg file., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 338879148d 47/91: Add Makefile to run tests., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 1aa855419b 50/91: Add link to Youtube video in README., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 2be07b0259 53/91: Update version to v0.2.1., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end cc4b8a42c3 57/91: Migrate from Carton to Cask., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end cf55eff3f8 60/91: Merge branch 'last-command', ELPA Syncer, 2023/01/25