all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Make buffer- and frame-locals a misc object
Date: Wed, 15 Aug 2012 18:33:23 +0400	[thread overview]
Message-ID: <502BB333.70306@yandex.ru> (raw)
In-Reply-To: <jwvhas4z19f.fsf-monnier+emacs@gnu.org>

On 08/15/2012 06:20 PM, Stefan Monnier wrote:

>> This patch converts Lisp_Buffer_Local_Value to misc object (for the
>> sake of GC-aware management) and provides simple inline access
>> functions (for the sake of further GC development).
>
> No, that's going backward.
> Please explain why you think you need that, so we can find alternatives.

This patch 1) converts Lisp_Buffer_Local_Value to misc object (for the
sake of GC-aware management) and 2) provides simple inline access
functions (for the sake of further GC development).

What's going backward - 1) or 2) or both?

For 1), my previous (and inglorious) attempt to hack around save-excursion
shows that mixing explicitly allocated/freed objects with GC-managed objects
is poor idea, so getting rid of xmalloc/xfree makes the things more predictable.

For 2), the usual purpose is to prepare the hooks for the write barrier.

Dmitry




  reply	other threads:[~2012-08-15 14:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-15 10:50 Make buffer- and frame-locals a misc object Dmitry Antipov
2012-08-15 14:20 ` Stefan Monnier
2012-08-15 14:33   ` Dmitry Antipov [this message]
2012-08-15 16:02     ` Stefan Monnier
2012-08-16  4:10       ` Buffer-/frame-local variables [Was: Re: Make buffer- and frame-locals a misc object] Dmitry Antipov
2012-08-17 13:20         ` Stefan Monnier
2012-08-17 14:29           ` Dmitry Antipov
2012-08-21 17:35             ` Stefan Monnier
2012-08-17 17:11           ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=502BB333.70306@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.