* Evgeny Makarov (2008-08-25) writes:

> I am using cua-mode, where typing while a region is active replaces the 
> region with what has been typed. This does not work, however, for 
> LaTeX-math-* commands (for example, LaTeX-math-pi): these commands 
> insert text at the point preserving the region. Is it possible to make 
> them replace highlighted region?

When a macro is inserted it is assumed that the marked region becomes
the argument of the macro.  That's why it is not deleted.  If you call a
LaTeX-math command outside of a math construct the behavior becomes more
apparent because the argument is put into braces.

I can imagine that inside of a math construct it would be less
surprising if the region were replaced when CUA mode is active but I
don't know a way to set `delete-selection' conditionally.

-- 
Ralf


_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to