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

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

[elpa] externals/ruby-end a762ab34ac 86/91: Add the recommended second a


From: ELPA Syncer
Subject: [elpa] externals/ruby-end a762ab34ac 86/91: Add the recommended second arg to looking-back calls
Date: Wed, 25 Jan 2023 19:58:47 -0500 (EST)

branch: externals/ruby-end
commit a762ab34ac09e0147fac113b7f789b349c8ee0f8
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Add the recommended second arg to looking-back calls
---
 ruby-end.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ruby-end.el b/ruby-end.el
index c54e642ac4..4c1ae60834 100644
--- a/ruby-end.el
+++ b/ruby-end.el
@@ -158,8 +158,10 @@ When nil, any `last-command' will do."
          (memq last-command ruby-end-expand-only-for-last-commands))
      (ruby-end-code-at-point-p)
      (or
-      (looking-back ruby-end-expand-statement-modifiers-before-re)
-      (looking-back ruby-end-expand-keywords-before-re))
+      (looking-back ruby-end-expand-statement-modifiers-before-re
+                    (line-beginning-position))
+      (looking-back ruby-end-expand-keywords-before-re
+                    (line-beginning-position)))
      (looking-at ruby-end-expand-after-re))))
 
 (defun ruby-end-code-at-point-p ()



reply via email to

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