Bug: Auto-completion of a local variable for a system function messes up.
Remy Horton <[email protected]> Fri, 19 Jun 2015 15:41:45 +0100
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <CAGTQw7r9-MrQdbKhWNxOpmdeiKKHDV0ysV_sO0XpKeB-1kyj=g@mail.gmail.com> |
'noon,
I was using the devel version of CEDIT (git commit
45e9545c25ae9489c7e401012d9d2876fac75bb1) with Emacs 24.3.1 and came across
the following auto-completion error. Given this sample C code:
#include <stdio.h>
#include <stdlib.h>
int foo()
{
int idProcess2 = 42;
int idProcess3 = 43;
int idProcess4 = 44;
printf(">%i\n", idPr
return 0;
}
If semantic-ia-complete-symbol-menu is used to complete idPr, the result is
the following:
#include <stdio.h>
#include <stdlib.h>
int foo()
{
int idProcess2 = 42;
int idProcess3 = 43;
idProcess2int idProcess4 = 44;
printf(">%i\n",
return 0;
}
However, if the headers are commented out, or if I was to misspell printf
so that it did not match anything in the headers, idPr is auto-competed as
expected. I suspect the lookup that goes into the headers is clobbering
something, but I know minimal Lisp so couldn't track down the root cause..
Regards,
..Remy
------------------------------------------------------------------------------
_______________________________________________
Cedet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-devel