[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/objed e427899 12/16: Get context object when acting on
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/objed e427899 12/16: Get context object when acting on sexp object (toggle state etc.) |
Date: |
Mon, 4 Feb 2019 07:46:32 -0500 (EST) |
branch: externals/objed
commit e427899060209fb953c0c3032a18e525b49940ac
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Get context object when acting on sexp object (toggle state etc.)
---
objed.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/objed.el b/objed.el
index 1ebb254..e1bba10 100644
--- a/objed.el
+++ b/objed.el
@@ -1739,14 +1739,16 @@ If called from code decide for activation with char
object using
"Activate and move to beginning of object at point."
(interactive)
(objed--init 'char)
- (objed-current-or-previous-context))
+ (when (objed-context-object)
+ (goto-char (objed--beg))))
;;;###autoload
(defun objed-end-of-object-at-point ()
"Activate and move to end of object at point."
(interactive)
(objed--init 'char)
- (objed-current-or-next-context))
+ (when (objed-context-object)
+ (goto-char (objed--end))))
(defun objed-toggle-side ()
"Move to other side of object.
@@ -1780,6 +1782,8 @@ Update to object at current side."
(defun objed-toggle-state ()
"Toggle state of object."
(interactive)
+ (when (eq objed--object 'sexp)
+ (objed-context-object))
(let ((sdiff (abs (- (point) (objed--beg))))
(ediff (abs (- (point) (objed--end)))))
(objed--reverse)
- [elpa] externals/objed updated (799a00e -> c54c8b3), Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 6685081 01/16: Don't throw an error with elisp defun object if not inside a defun, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed b98e4be 02/16: Add melpa stable badge, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed e809d3f 03/16: Add Elpa badge, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 3a26da6 04/16: Change elpa badge, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 4c4ab09 06/16: Add objed-activate example, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed d2fdbe0 05/16: Switch badge order to elpa, melpa stable, melpa, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed a6cebcc 07/16: Mention actual command names to move to prev/next identifier, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed c54c8b3 16/16: Version bump, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed e427899 12/16: Get context object when acting on sexp object (toggle state etc.),
Clemens Radermacher <=
- [elpa] externals/objed f28ee01 11/16: Improve sexp object/movement again, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 1652f3b 10/16: Add two new entry commands (for object-at-point), Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 83d4968 09/16: Improves sexp object/movement, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 54a02c0 13/16: Toggle extend on repeat, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 589d763 14/16: Update desciptions, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 0bfdb3c 15/16: Changing key binding policy, Clemens Radermacher, 2019/02/04
- [elpa] externals/objed 4527af4 08/16: Replace character based movement with sexp movement commands, Clemens Radermacher, 2019/02/04