]> git.eshelyaron.com Git - emacs.git/commitdiff
(eudc-expand-inline): If the `eudc-multiple-match-handling-method' is
authorJohn Wiegley <johnw@newartisans.com>
Tue, 1 Nov 2005 07:07:25 +0000 (07:07 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 1 Nov 2005 07:07:25 +0000 (07:07 +0000)
set to `all', delete the query string before inserting the query
result.

lisp/net/eudc.el

index 1c5fb7fbbcf668d3cc3709d9a6b58f8eaa0e57dc..6c877df6ea4fa10dcc376d654a4e980cc810313f 100644 (file)
@@ -380,7 +380,7 @@ The translation is done according to
 BEG and END delimit the text which is to be replaced."
   (let ((replacement))
    (setq replacement
-        (completing-read "Multiple matches found; choose one:"
+        (completing-read "Multiple matches found; choose one: "
                          (mapcar 'list choices)))
    (delete-region beg end)
    (insert replacement)))
@@ -923,6 +923,7 @@ see `eudc-inline-expansion-servers'"
             ((eq eudc-multiple-match-handling-method 'select)
              (eudc-select response-strings beg end))
             ((eq eudc-multiple-match-handling-method 'all)
+             (delete-region beg end)
              (insert (mapconcat 'identity response-strings ", ")))
             ((eq eudc-multiple-match-handling-method 'abort)
              (error "There is more than one match for the query"))))