On 4/9/08, Herve Pages <[EMAIL PROTECTED]> wrote:

[...]

>  BTW are there any plans to deal with backquoted symbols/names?
>  There are currently 2 problems with this:
>
>   1. Completion will work and expand symbols or names that contain special
>      characters but without backquoting them:
>
>        xxx <- as.list(11:13)
>        names(xxx) <- letters[1:3]
>        names(xxx)[2] <- "2b"
>
>        > xxx$<TAB><TAB>    # <TAB> stands for a hit on the Tab key
>        xxx$2b  xxx$a   xxx$c
>        > xxx$2b            # I hit 2, then <TAB> gives me the b
>
>     Now if I hit <Enter>, of course I get:
>
>        Error: unexpected numeric constant in "xxx$2"
>
>   2. Completion of names after $ will not work if I've already backquoted
>      the partial name:
>
>        > xxx$`2<TAB><TAB><TAB>...  # nothing happens

1 will be hard to ``fix'' because of limitations in the various
backends (some of which are unable to insert text before the cursor).
Also, more checks will presumably slow things down, and it's not clear
that the benefits would be worth it.

2 might be doable; I'll look into it.

-Deepayan

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to