[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Re: delete-selection mode and macros
From: |
Ralf Angeli |
Subject: |
Re: [AUCTeX] Re: delete-selection mode and macros |
Date: |
Tue, 13 Mar 2007 19:03:52 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
* Piet van Oostrum (2007-03-13) writes:
>>>>>> 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 `TeX-electric-escape' set to t, typing \ basically does the same.
> 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.
The solution I'd favor is that typing \ will delete the selection only
if `TeX-electric-escape' is nil.
--
Ralf