auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Re: delete-selection mode and macros


From: Piet van Oostrum
Subject: Re: [AUCTeX] Re: delete-selection mode and macros
Date: Tue, 13 Mar 2007 10:22:01 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (darwin)

>>>>> Ralf Angeli <address@hidden> (RA) wrote:

>RA> * Piet van Oostrum (2007-03-12) writes:
>>> OK, I see. I think this could be changed by testing in the beginning of
>>> TeX-electric-macro whether there is an empty region active and then
>>> deactivating it.

>RA> I'm not sure if we want the selection to be deleted -- even with
>RA> Delete Selection mode turned on.  After all, wrapping a macro around a
>RA> selection is an important functionality with respect to convenience.

Yes, I agree. But you usually do this (I think) not by typing a \ but by
using C-c C-m (TeX-insert-macro) or one of the predefined ones, e.g. the
font commands C-c C-f *. With my proposed patch these continue to wrap the
selected text. Only when you type a \ it works similar to any other
self-inserting command.
-- 
Piet van Oostrum <address@hidden>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: address@hidden




reply via email to

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