[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC, experimental] save_{excursion,restriction}
From: |
Dmitry Antipov |
Subject: |
Re: [RFC, experimental] save_{excursion,restriction} |
Date: |
Tue, 24 Jul 2012 15:28:56 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
On 07/24/2012 01:37 PM, Stefan Monnier wrote:
BTW, why use an extra `excursions' field rather than just use a new
Lisp_Object type for "struct excursion"?
I think that would be cleaner to either make them into
Lisp_Pseudovector or Lisp_Misc.
1) "excursion state" is not visible to Lisp programs and so not referenced
via Lisp_Objects, it's just a service thing related to save-excursion
primitive and buffer internals. Just like buffer text for the basic editing
primitives.
2) Lisp_XXX things are designed to be managed by GC, and other use of them
is suspicious and discouraged (embedding Lisp_Markers into struct excursion
is the poor solution in the absence of better alternatives). But, the
main purpose of this design is to avoid any dependency from GC to achieve
the lowest possible overhead of save-excursion.
Dmitry
excursion_3.patch
Description: Text document
- [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/23
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/23
- Re: [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/24
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/24
- Re: [RFC, experimental] save_{excursion,restriction},
Dmitry Antipov <=
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/24
- Re: [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/25
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/25
- Re: [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/26
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/26
Re: [RFC, experimental] save_{excursion,restriction}, Ivan Andrus, 2012/07/24
Re: [RFC, experimental] save_{excursion,restriction}, Chong Yidong, 2012/07/26