[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: save-excursion and the mark
From: |
Andreas Röhler |
Subject: |
Re: save-excursion and the mark |
Date: |
Wed, 25 Feb 2015 12:49:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.4.0 |
On 25.02.2015 03:59, Stefan Monnier wrote:
See for example indent-code-ridigly.
Can you give more details about how this requires save&restore of the
mark (or its "active" status)?
Stefan
Think a shifting code by TAB in python-mode.
Mark might exist somewhere in line. Shifting will use its own region - but
original region should be restored - if any.
Shifting by itself should not create a region nor clutter the mark-ring.
BTW you didn't tell whats the reason of the change:
Maybe it's worth reconsidering
commit b1d6ddd44614c84746f5ee494e1f29cd9be8a2d8
Notable changes to goto-line, i.e. calling push-mark.
Just an idea,
Andreas
- Re: save-excursion and the mark, (continued)
- Re: save-excursion and the mark, Barry Warsaw, 2015/02/24
- Re: save-excursion and the mark, Stefan Monnier, 2015/02/24
- Re: save-excursion and the mark, Barry Warsaw, 2015/02/24
- Re: save-excursion and the mark, Artur Malabarba, 2015/02/24
- Re: save-excursion and the mark, Stefan Monnier, 2015/02/24
- Re: save-excursion and the mark, Artur Malabarba, 2015/02/24
- Re: save-excursion and the mark, Barry Warsaw, 2015/02/25
- Re: save-excursion and the mark, Stefan Monnier, 2015/02/25
- Re: save-excursion and the mark, Andreas Röhler, 2015/02/24
- Re: save-excursion and the mark, Ivan Shmakov, 2015/02/25