From 7ff9e9ad39b3f52c2ce85b2b7c4224f2414f6f36 Mon Sep 17 00:00:00 2001 From: Magnar Sveen Date: Thu, 7 Jun 2012 22:49:30 +0200 Subject: [PATCH] Only store er/history when it is defined. --- multiple-cursors-core.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el index ebca0b6..ef761e8 100644 --- a/multiple-cursors-core.el +++ b/multiple-cursors-core.el @@ -42,7 +42,7 @@ highlights the entire width of the window." (overlay-put o 'mark (set-marker (make-marker) (mark))) (overlay-put o 'mark-ring mark-ring) (overlay-put o 'mark-active mark-active) - (overlay-put o 'er/history er/history) + (when (boundp er/history) (overlay-put o 'er/history er/history)) o) (defun mc/restore-state-from-overlay (o) @@ -52,7 +52,7 @@ highlights the entire width of the window." (set-marker (mark-marker) (overlay-get o 'mark)) (setq mark-ring (overlay-get o 'mark-ring)) (setq mark-active (overlay-get o 'mark-active)) - (setq er/history (overlay-get o 'er/history))) + (when (boundp er/history) (setq er/history (overlay-get o 'er/history)))) (defun mc/clean-up-state-overlay (o) "Delete overlay with state, including dependent overlays and markers."