Hi Paul,

Creating a new TeX-fold-macro-spec-list item with

("“{1}”" ("enquote"))

together with removing TeX-fold-quotes works perfectly! Thank you for the great 
suggestion.

I took the suggestion about making " produce \enquote{ from StackExchange. But 
to be honest I'm not fully convinced it's the right thing to do. The csquotes 
package is effectively rethinking in-text quoting as a form of environment, and 
that's bound to break many things with editing programs. My main reason to use 
\enquote{} is that if I decide to change quoting style from British to American or 
vice versa (what's best really depends on the kind of document and text), I can do 
so at one place in the preamble, rather than launching a query-replace.

Thanks again!
Luca


On 250929 13:10, Paul D. Nelson wrote:
Thanks Luca.

I see that the folding of quotes is indeed brittle when applied to quote
pairs such as "\enquote{" and "}", for the reason you say, that closing
brackets "}" appear in many more places than just quotes.

Perhaps it would be more robust to restrict quote folding to the
standard pairs by default.  After all, one can always fold \enquote{...}
macros directly, by customizing TeX-fold-macro-spec-list.

I'll confess that I wasn't familiar with the sorts of settings people
might use for quotes.  Are there popular options besides ("``", "''")
and ("\\enquote", "}")?  If not, then I'm inclined to install the
attached patch to avoid issues like what Luca encountered.  Any thoughts
welcome.

Paul



Reply via email to