From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: function for inserting a block Date: Sun, 03 Sep 2017 10:23:57 +0200 Message-ID: <87y3pwkx5u.fsf@nicolasgoaziou.fr> References: <877exghblx.fsf@ericabrahamsen.net> <87efromccg.fsf@nicolasgoaziou.fr> <878thwdwif.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doQCK-0005gp-D2 for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 04:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doQCF-000305-U2 for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 04:24:04 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:45594) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doQCF-0002zT-Nh for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 04:23:59 -0400 In-Reply-To: <878thwdwif.fsf@alphapapa.net> (Adam Porter's message of "Sun, 03 Sep 2017 03:19:52 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter Cc: emacs-orgmode@gnu.org Adam Porter writes: > "...it is a good idea to make a marker point nowhere if you are sure you > don=E2=80=99t need it any more. Markers that can no longer be accessed a= re > eventually removed (*note Garbage Collection::)." > > I asked on /r/emacs about this but never got a firm answer; some thought > that they are never collected and require manual clearing, others > thought that ones that go out-of-scope are eventually collected and that > it's not typically necessary to clear them manually. I also recall > seeing some code recently that didn't manually clear the markers it > created, so I wonder if that is true. The are not collected as long as the buffer they point to is alive. If they are not attached to any buffer, they are marked for garbage collection. Regards,