|
From: | Dmitry Gutov |
Subject: | bug#55491: All completion fragments get added to obarray |
Date: | Tue, 7 Jun 2022 00:30:00 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 06.06.2022 15:44, Lars Ingebrigtsen wrote:
Dmitry Gutov<dgutov@yandex.ru> writes:Looking at the possible problems, I guess the regexp doesn't account for possible escapings? Like a symbol 'let\ s\ go\ to\ the\ mall', which shouldn't be mistaken for 'let'. That would require a more complex regexp.Yes, so that won't be the right thing. It'd be nice if we had a version of `read' that's more like "read the next symbol but return nil if it's not interned already" for these cases.
How about this, then?Too bad 'forward-symbol' doesn't handle escapings, otherwise we could just do (intern-soft (thing-at-point 'symbol)).
elisp-c-a-p-no-read-v2.diff
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |