<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 15, 2022 at 02:22 Laine Stump <<a href="mailto:laine@redhat.com">laine@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 1/14/22 3:29 PM, Ján Tomko wrote:<br>
> On a Friday in 2022, Laine Stump wrote:<br>
>> Since it's Friday and we're talking about personal preferences - I <br>
>> personally dislike the use of i and j (and anything else with a single <br>
>> letter) as variable names, because it makes using a text search for <br>
>> occurences pointless. Sure, longer variable names could also be a <br>
>> substring of something else, and any variable could be re-used <br>
>> elsewhere, but even then a search is mildly usable.<br>
> <br>
> Well, you need to search for the word i instead of the letter i.<br>
> <br>
> grep has the '-w' switch for that, or you can specify some boundaries:<br>
>     \bi\b<br>
>     \<i\><br>
> <br>
> vim searches for the word under the cursor with '*' by default<br>
> <br>
> Surely other search tools have some equivalent.<br>
<br>
This forced me to go look for it in emacs, and after 28 years, I've <br>
learned about isearch-forward-symbol-at-point, which is by default bound <br>
to [alt-s .]. But that's just another different keystroke I have to <br>
remember. Much easier if I can just use an expansion of the ctl-s <br>
(incremental search) that I already know and use for pretty much all <br>
searching within a single file.</blockquote><div dir="auto"><br></div><div dir="auto">Haha ! I use emacs as well and I never knew about this too. Will try it too. Thanks!</div><div dir="auto"><br></div></div></div>