[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: icomplete-mode deactivates region
From: |
Ralf Angeli |
Subject: |
Re: icomplete-mode deactivates region |
Date: |
Mon, 21 Mar 2005 21:01:54 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
* Stefan Monnier (2005-03-21) writes:
>> icomplete-mode somehow deactivates an activated region when
>> transient-mark-mode is active. In order to see this behavior, start
>> Emacs with `emacs -Q' and copy the following function into the
>> *scratch* buffer.
>
>> (defun foo ()
>> (interactive)
>> (icomplete-mode 1)
>> (transient-mark-mode 1)
>> (set-mark (point))
>> (beginning-of-line 0))
>
> I must say I don't understand the above code.
> Does AUCTeX's code do something like the above? If not, could you try to
> give a description closer to what AUCTeX does?
AUCTeX searches for the end of a LaTeX environment, sets mark there,
then searches for the start of the environment and leaves point there.
That means the interesting bits in the example above are these:
(set-mark (point))
(beginning-of-line 0))
... set the mark and move point. (Using `push-mark' instead of
`set-mark' doesn't seem to make a difference.)
--
Ralf
- icomplete-mode deactivates region, Ralf Angeli, 2005/03/21
- Re: icomplete-mode deactivates region, Stefan Monnier, 2005/03/21
- Re: icomplete-mode deactivates region,
Ralf Angeli <=
- Re: icomplete-mode deactivates region, Stefan Monnier, 2005/03/21
- Re: icomplete-mode deactivates region, Richard Stallman, 2005/03/22
- Re: icomplete-mode deactivates region, Ralf Angeli, 2005/03/25
- Re: icomplete-mode deactivates region, Richard Stallman, 2005/03/26
- Re: icomplete-mode deactivates region, Stefan Monnier, 2005/03/27
Re: icomplete-mode deactivates region, Stefan Monnier, 2005/03/21