auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Replacing highlighted region with LaTeX-math-* commands


From: Ralf Angeli
Subject: Re: [AUCTeX] Replacing highlighted region with LaTeX-math-* commands
Date: Tue, 26 Aug 2008 22:16:36 +0200

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]