diff --git a/lisp/electric.el b/lisp/electric.el index e8ceaa6..874ec09 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -176,7 +176,7 @@ (defun electric--after-char-pos () "Return the position after the char we just inserted. Returns nil when we can't find this char." - (let ((pos (point))) + (let ((pos (point-marker))) (when (or (eq (char-before) last-command-event) ;; Sanity check. (save-excursion (or (progn (skip-chars-backward " \t")