]> git.eshelyaron.com Git - emacs.git/commitdiff
EUDC: Prevent field overlap when query form is reset
authorThomas Fitzsimmons <fitzsim@fitzsim.org>
Thu, 30 Jun 2022 01:37:57 +0000 (21:37 -0400)
committerThomas Fitzsimmons <fitzsim@fitzsim.org>
Thu, 30 Jun 2022 01:37:57 +0000 (21:37 -0400)
* lisp/net/eudc.el (eudc-query-form): Delete all overlays before
erasing buffer.  Remove widget-after-change from
after-change-functions.

lisp/net/eudc.el

index 1d9dbbeb754ec4ae7ed90679153f21593a2e5704..fc35d6a0844af0065be3765d57c0499b74f5c7c3 100644 (file)
@@ -1026,7 +1026,10 @@ queries the server for the existing fields and displays a corresponding form."
        pt)
     (switch-to-buffer buffer)
     (let ((inhibit-read-only t))
+    (remove-hook 'after-change-functions 'widget-after-change t)
+    (delete-all-overlays)
     (erase-buffer)
+    (add-hook 'after-change-functions 'widget-after-change nil t)
     (kill-all-local-variables)
     (make-local-variable 'eudc-form-widget-list)
     (widget-insert "Directory Query Form\n")