From: Per Abrahamsen Date: Thu, 19 Jun 1997 15:31:34 +0000 (+0000) Subject: Don't delete nil overlays. X-Git-Tag: emacs-20.1~1608 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=208920be0d721170cfd7684a5e387659b3b9fb31;p=emacs.git Don't delete nil overlays. --- 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.