From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17893: 24.4.50; (error "Marker does not point anywhere") Date: Sun, 26 Nov 2017 18:07:40 +0200 Message-ID: <83d1456n1v.fsf@gnu.org> References: <8facd635-be88-4990-8e7d-538db19c3e1a@default> <04af8576-c419-4d35-9c6e-7170828ac949@default> <83h8tpdkd4.fsf@gnu.org> <83o9nwd77g.fsf@gnu.org> <83shd38l86.fsf@gnu.org> <837eue8hrd.fsf@gnu.org> <5A1A96D5.7050706@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1511712561 13085 195.159.176.226 (26 Nov 2017 16:09:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2017 16:09:21 +0000 (UTC) Cc: 17893@debbugs.gnu.org, charles@aurox.ch, monnier@IRO.UMontreal.CA To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 26 17:09:17 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 1eIzUV-0002Ry-J2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 17:09:11 +0100 Original-Received: from localhost ([::1]:57113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIzUZ-0004EP-Lo for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 11:09:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIzUR-0004EG-Gw for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 11:09:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIzUO-0004Jx-BP for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 11:09:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIzUO-0004Jq-7Z for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 11:09:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIzUL-0001OJ-WD for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 11:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2017 16:09:01 +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.15117124875284 (code B ref 17893); Sun, 26 Nov 2017 16:09:01 +0000 Original-Received: (at 17893) by debbugs.gnu.org; 26 Nov 2017 16:08:07 +0000 Original-Received: from localhost ([127.0.0.1]:59508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIzTS-0001N9-R8 for submit@debbugs.gnu.org; Sun, 26 Nov 2017 11:08:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIzTR-0001Mg-Ei for 17893@debbugs.gnu.org; Sun, 26 Nov 2017 11:08:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIzTL-0003vI-6z for 17893@debbugs.gnu.org; Sun, 26 Nov 2017 11:08:00 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIzTG-0003sC-Bz; Sun, 26 Nov 2017 11:07:54 -0500 Original-Received: from [176.228.60.248] (port=4943 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eIzTF-0001fO-Qt; Sun, 26 Nov 2017 11:07:54 -0500 In-reply-to: <5A1A96D5.7050706@gmx.at> (message from martin rudalics on Sun, 26 Nov 2017 11:26:29 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:140418 Archived-At: > Date: Sun, 26 Nov 2017 11:26:29 +0100 > From: martin rudalics > CC: 17893@debbugs.gnu.org, monnier@IRO.UMontreal.CA > > > What is missing is a way of methodically walking all the markers > > reachable from the cloned buffer's local variables, and changing each > > marker to point to the cloned buffer instead of the parent buffer. > > Have `clone-buffer' record the parent buffer somewhere and when we > encounter a marker referring a dead buffer that is the same as the > recorded parent buffer redirect the marker on the fly to the cloned > buffer. Not overly clean but what could we lose? When a buffer is deleted, all the markers that point to it get their buffer wiped out, so I think the above method cannot work, unless you replace all NULL buffer pointers with the cloned buffer -- which will probably be too much. And remember that markers without any buffer do not get adjusted, so their position will quickly become incorrect or even outside the cloned buffer's text, and then such markers will become useless. So we cannot delay this until the marker is accessed by some Lisp.