Mattias Engdegård writes: > 8 maj 2022 kl. 21.31 skrev Simen Heggestøyl : > >> Am I right in thinking that the use of >> `regexp-quote' in the `csv-set-separator' case gives the right result? > > Yes, I think so. `csv-set-separator` should probably escape the character in `csv--skip-chars`, however: > > (setq-local csv--skip-chars (format "^\n%c" sep)) > > should be > > (setq-local csv--skip-chars (format "^\n\\%c" sep)) > > I'm not sure if a separator can be chosen that needs escaping here but > better be safe; who knows how the code will be used. Ah, thanks, I misread the docstring of `skip-chars-forward': (but not at the end of a range; quoting is never needed there) I somehow misinterpreted that as quoting not being necessary at the end of the string fed to `skip-chars-forward'. Updated patch with your proposed fix attached.