On 06.06.2022 15:44, Lars Ingebrigtsen wrote: > Dmitry Gutov 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)).