I have been having a problem where I want an
up-sexp command that treats paired delimiters like
$ in LaTeX-mode just as if they were pairs of balanced parentheses. There are hacks I can use that get me some useful information, but I'd much rather use a built-in command, if one exists.
My problem is that functions like
syntax-ppss don't care about paired delimiters: for example
(nth 0 syntax-ppss) returns 0 if I'm in paired delimiters but no parentheses, and there's no special part of the list for paired delimiters like there is for strings. Is there any standard way to get this information?
sp-up-sexp and similar commands don't help me, because they also ignore paired delimiters.
Of course, I can write a function to do something like count
$s in my buffer up to the point, but the problem with this approach is that, for example,
$$ is a separate paired delimiter in LaTeX. It's not a practical problem for me because I never use that notation (it's deprecated and very much not recommended), but I want to get this information from a syntax parser that understands the whole syntax table, not from a hack.