[Top][All Lists]

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

Re: Survival strategies for markers?

From: Pascal J. Bourguignon
Subject: Re: Survival strategies for markers?
Date: Tue, 03 Jun 2014 18:18:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Thorsten Jolitz <address@hidden> writes:

> Hi List, 
> when markers are exposed to extreme conditions
>  - copy buffer substring (with marker m) from buffer A to temporary
>  - buffer B
>  - modify buffer content in B
>  - change major mode in B
> how do they survive? 
> Or, more prosaic, can I do these things and somehow copy (bufferlocal?)
> m from A to B, or do I have to take an indirect approach remembering m's
> position in A in a global var and set a new marker at that position in
> B (or so)?

The later.

Markers are independent objects, they're not embedded in strings.

__Pascal Bourguignon__
"Le mercure monte ?  C'est le moment d'acheter !"

reply via email to

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