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

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

[elpa] externals/objed 5af62e2 35/59: Default to char if current buffer


From: Clemens Radermacher
Subject: [elpa] externals/objed 5af62e2 35/59: Default to char if current buffer has no objed--object set
Date: Sun, 24 Mar 2019 06:06:40 -0400 (EDT)

branch: externals/objed
commit 5af62e21ceab51c775ee976279d47df60b955798
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Default to char if current buffer has no objed--object set
---
 objed-objects.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/objed-objects.el b/objed-objects.el
index 52006d5..8bfabca 100644
--- a/objed-objects.el
+++ b/objed-objects.el
@@ -948,6 +948,8 @@ Update `objed--current-obj' to RANGE which defaults to 
object at
 point. If RANGE is a single item list only update the head of
 current object position data."
   (cond ((null range)
+         (unless objed--object
+           (setq objed--object 'char))
          ;; get current object at point
          (setq objed--current-obj (objed--get)))
         ((and (consp range)



reply via email to

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