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

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

[elpa] externals/objed 213f672 094/166: Use prefixed word of symbol for


From: Clemens Radermacher
Subject: [elpa] externals/objed 213f672 094/166: Use prefixed word of symbol for inner ident object
Date: Sun, 29 Dec 2019 08:21:07 -0500 (EST)

branch: externals/objed
commit 213f672951bf51ad83f605ccc59683df47a6d009
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Use prefixed word of symbol for inner ident object
---
 objed-objects.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/objed-objects.el b/objed-objects.el
index 99a4fa0..40ea5bb 100644
--- a/objed-objects.el
+++ b/objed-objects.el
@@ -2298,7 +2298,10 @@ non-nil the indentation block can contain empty lines."
     (when bounds
       (objed-make-object
        :obounds bounds
-       :ibounds (bounds-of-thing-at-point 'word))))
+       :ibounds (save-excursion
+                  ;; use the symbol prefix by default
+                  (goto-char (car bounds))
+                  (bounds-of-thing-at-point 'word)))))
 
   :try-next
   (objed--next-identifier)



reply via email to

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