From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#17893: 24.4.50; (error "Marker does not point anywhere") Date: Mon, 20 Nov 2017 21:01:58 +0100 Message-ID: References: <8facd635-be88-4990-8e7d-538db19c3e1a@default> <04af8576-c419-4d35-9c6e-7170828ac949@default> <83h8tpdkd4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1511208137 16302 195.159.176.226 (20 Nov 2017 20:02:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 20:02:17 +0000 (UTC) Cc: 17893@debbugs.gnu.org, monnier@IRO.UMontreal.CA To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 20 21:02:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGsGb-0003R7-IX for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 21:02:05 +0100 Original-Received: from localhost ([::1]:59459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGsGi-0004XU-Ot for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 15:02:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGsGb-0004XI-HE for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 15:02:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGsGY-00035j-SE for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 15:02:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40780) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGsGY-00035W-O2 for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 15:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eGsGW-0003XW-LV for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 15:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Nov 2017 20:02:00 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17893-submit@debbugs.gnu.org id=B17893.151120806410421 (code B ref 17893); Mon, 20 Nov 2017 20:02:00 +0000 Original-Received: (at 17893) by debbugs.gnu.org; 20 Nov 2017 20:01:04 +0000 Original-Received: from localhost ([127.0.0.1]:49461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGsFc-0002ho-6f for submit@debbugs.gnu.org; Mon, 20 Nov 2017 15:01:04 -0500 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:49283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGsFa-0002Zy-4j for 17893@debbugs.gnu.org; Mon, 20 Nov 2017 15:01:02 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 11D8B225C8 for <17893@debbugs.gnu.org>; Mon, 20 Nov 2017 19:53:42 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1511207621; x=1512071622; bh=DV0MIFS+hfDMd 2/MlWyy0V8PpRCz9ZsqweYU0IqcT1A=; b=vdfda8AKsidbJbCXNpT5mSYWabRVl prr/oQopV/zR51BZ+LmMPhlj4mJw5BMiOPexKGxsn72hcI/vXWGJIPpJ+QSvMK+R 3DIVCIhPEiN0SV64KvXpNLXmMYMbAZM51E2D5+xFE5wzcOhaK0SSRtLoF0FL0b78 Tm1PMj2NpjSrrs= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xNuPix23Jw5P for <17893@debbugs.gnu.org>; Mon, 20 Nov 2017 19:53:41 +0000 (UTC) Original-Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 71F09225C1; Mon, 20 Nov 2017 19:53:39 +0000 (UTC) In-reply-to: <83h8tpdkd4.fsf@gnu.org> (message from Eli Zaretskii on Mon, 20 Nov 2017 17:45:43 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140165 Archived-At: > Bother: this is actually the tip of an iceberg. Buffer local > variables that get cloned by clone-buffer could hold any number of > markers pointing into the original buffer. E.g., info.el itself > maintains a per-buffer marker in Info-tag-table-marker; evaluate it > after M-n and see what it tells you. > For mark-ring, I think it's easier to just reset it to nil in the new > clone (it's arguably even more correct, since this is a fresh buffer), > but in general this is a ticking bomb, unless I'm missing something. > If I'm right, the only solution is to walk all the markers that point > to the parent buffer and clone them to point to the cloned buffer > (this has to be done in C). By C, do you mean the function `clone-buffer'?