From 208920be0d721170cfd7684a5e387659b3b9fb31 Mon Sep 17 00:00:00 2001 From: Per Abrahamsen Date: Thu, 19 Jun 1997 15:31:34 +0000 Subject: [PATCH] Don't delete nil overlays. --- lisp/wid-edit.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 20e3780a2c3..f5ae7eaef0b 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -815,8 +815,10 @@ button end points." (children (widget-get widget :children))) (set-marker from nil) (set-marker to nil) - (delete-overlay button) - (delete-overlay field) + (when button + (delete-overlay button)) + (when field + (delete-overlay field)) (mapcar 'widget-leave-text children))) ;;; Keymap and Commands. -- 2.39.2