From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: garbace collection of point-markers Date: 31 Jan 2003 11:10:34 +0100 Organization: informatimago.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87znphzl2d.fsf@thalassa.informatimago.com> References: <62ede926.0301310049.17611c1a@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044008061 2425 80.91.224.249 (31 Jan 2003 10:14:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2003 10:14:21 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18eYBg-0000cz-00 for ; Fri, 31 Jan 2003 11:14:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eYD6-0003sV-08 for gnu-help-gnu-emacs@m.gmane.org; Fri, 31 Jan 2003 05:15:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!thalassa.informatimago.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: thalassa.informatimago.com (212.87.205.57) Original-X-Trace: fu-berlin.de 1044007839 35455057 212.87.205.57 (16 [41911]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:109631 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6148 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6148 kamphausen@creativepharma.com (Stefan Kamphausen) writes: > Dear ElispWizards, > > when I call (point-marker) and don't store the return value in a > variable will that marker be removed at the next garbage collection? It seems so: (show (let ((curpt (point))) (set-marker (make-marker) curpt) (cons (buffer-has-markers-at curpt) (progn (garbage-collect) (buffer-has-markers-at curpt))))) ==> (t . t) > Or does the DONT-COPY-P argument achieve this? Not even needed. What is it? Note that in emacs, the reader does not convert-case the symbols. So (not (eq 'DONT-COPY-P 'dont-copy-p)) -- __Pascal_Bourguignon__ http://www.informatimago.com/ ---------------------------------------------------------------------- There is a fault in reality. Do not adjust your minds. -- Salman Rushdie