[ESS] Tab completion for CamelCase

Naresh Gurbuxani n@re@h_gurbux@n| @end|ng |rom hotm@||@com
Fri Nov 11 19:36:39 CET 2022


> 
> GNU Emacs 28.1 (build 2, x86_64-w64-mingw32) of 2022-04-21
> ess-version: 18.10.2 [<unknown>] (loaded from
> c:/Users/ngurbuxani/AppData/Roaming/.emacs.d/elpa/)
> 
> When I define a CamelCase variable, tab completion works well.
> 
> myLongNameVar <- 23
> myL <tab> completes variable name in CamelCase.
> 
> When I have CamelCase variables in a string, then tab completion ignores
> CamelCase.
> 
> myquery <- "
> SELECT aLongFieldName
> FROM myDataTable"
> 
> "aLon <tab> completes variable name in lower case (aLongfieldname).
> 
> Is it possible to use tab completion to get CamelCase variables inside a
> string?
> 
> Thanks,
Naresh  Sent from my iPhone

> On Nov 8, 2022, at 11:09 AM, Martin Maechler <maechler using stat.math.ethz.ch> wrote:
> 
> 
>> 
>>>>>> Naresh Gurbuxani via ESS-help 
>>>>>>    on Mon, 7 Nov 2022 17:54:58 +0000 writes:
> 
>> My ess setup on mac works well with tab completion of CamelCase variable names.  However, on Windows, tab completes variable names with all lowercase letters.  So it does give me complete variable name, which needs some letters to be converted to uppercase.
> 
> This is strange.
> At least on regular platform, i.e., non-Windows,  ESS really
> uses base R's own completion engine and that will definitely
> differentiate lower- and upper-case,  and hence correctly treat
> CamelCase.
> 
> Which Version of ESS (and Emacs) are you talking about?
> (M-x emacs-version  /  M-x ess-version)
> 
> Martin
> 
>> Can tab completion on Windows give proper CamelCase variables?
> 
>> Thanks,
>> Naresh


More information about the ESS-help mailing list