]> code.delx.au - gnu-emacs/commitdiff
complete-tag fix for bug#9526
authorGlenn Morris <rgm@gnu.org>
Sat, 17 Sep 2011 19:05:52 +0000 (12:05 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 17 Sep 2011 19:05:52 +0000 (12:05 -0700)
* lisp/progmodes/etags.el (complete-tag):
Fix call to completion-in-region. (cf info-complete).

lisp/ChangeLog
lisp/progmodes/etags.el

index 49a8f931fb2767ac369d1eb56ba58d972f3fc277..cf549a936fb37570a11cffdb858e53ea85bb49e6 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-17  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/etags.el (complete-tag):
+       Fix call to completion-in-region.  (Bug#9526)
+
 2011-09-17  Juri Linkov  <juri@jurta.org>
 
        * textmodes/ispell.el (ispell-word): Add to the error message
index a33000779091c57ae96462c4550d7ea1d2be79c1..d321e9c1388ea0475118de5d352149b9cd16e998 100644 (file)
@@ -2070,7 +2070,9 @@ for \\[find-tag] (which see)."
   (let ((comp-data (tags-completion-at-point-function)))
     (if (null comp-data)
        (error "Nothing to complete")
-      (apply 'completion-in-region comp-data))))
+      (completion-in-region (car comp-data) (cadr comp-data)
+                           (nth 2 comp-data)
+                           (plist-get (nthcdr 3 comp-data) :predicate)))))
 
 (dolist (x '("^No tags table in use; use .* to select one$"
             "^There is no default tag$"