On 2023-08-26 12:16, Ihor Radchenko wrote: > Jens Schmidt <jschmidt4...@vodafonemail.de> writes: >> #+begin_example >> -+-long-and-twisted-property-name-="foo" >> +\-long\=and\\twisted\:property\.name\*="foo" >> #+end_example > > This actually feels rather cubersome.
That particular example looks awkward, but pls don't forget that users (mostly) have been happy without any option of quoting so far. IOW, there shouldn't be much to quote in real life. I can provide a simpler example in the manual, but that's probably not what you meant :-) > I am now wondering if we could instead do something like > "-long=and\twisted:property.name*"="foo" > Then, we will just have to quote the " itself, not all > non-alphanumerics. > > Although, using " might be tricky. Agreed. It introduces more context, and longer context, than a simple backslash. Plus double quotes are already used for other purposes in the larger regexp, which could introduce more ambiguities. Finally, a term "foo-bar"="foo-bar" looks, er, tautologically? at best.