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: Tue, 14 Nov 2017 20:56:58 +0100 Message-ID: References: <8facd635-be88-4990-8e7d-538db19c3e1a@default> <04af8576-c419-4d35-9c6e-7170828ac949@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1510689434 16643 195.159.176.226 (14 Nov 2017 19:57:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2017 19:57:14 +0000 (UTC) Cc: 17893@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 14 20:57:09 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 1eEhKU-0003mf-1X for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Nov 2017 20:57:06 +0100 Original-Received: from localhost ([::1]:33382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEhKZ-0003PF-Re for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Nov 2017 14:57:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEhKT-0003Oz-HN for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 14:57:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEhKQ-0006Kg-Eq for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 14:57:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEhKQ-0006KV-68 for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 14:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eEhKP-0001ck-TI for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 14:57:01 -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: Tue, 14 Nov 2017 19:57: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.15106894016215 (code B ref 17893); Tue, 14 Nov 2017 19:57:01 +0000 Original-Received: (at 17893) by debbugs.gnu.org; 14 Nov 2017 19:56:41 +0000 Original-Received: from localhost ([127.0.0.1]:40597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEhK4-0001cB-L4 for submit@debbugs.gnu.org; Tue, 14 Nov 2017 14:56:40 -0500 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:44752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEhK2-0001bx-D0 for 17893@debbugs.gnu.org; Tue, 14 Nov 2017 14:56:38 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id E1B70225BA for <17893@debbugs.gnu.org>; Tue, 14 Nov 2017 19:49:21 +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= content-transfer-encoding:content-type:content-type:mime-version :references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1510688959; x=1511552960; bh=2dLNt/qoA0o3C 4n5LcPS2/x6JgzzjTnfVRWMywRrJ3E=; b=pnxqgQKfPbwdHQzsIh9fJNDhMiidt 3Z8cbN+upHXZYhdf0oevbHgJnqDSD4rIler0HXrgrAS9uJSy8/pmg8tfpTEenEuJ FW5Wwv/1LmAUnGyFREcSpoXUy98jlTCMFK6ihqcx48pcKka3GUxyjLyZm3yEHkxr WIYTAa9rwO4nqo= 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 HIYpL6nmXutF for <17893@debbugs.gnu.org>; Tue, 14 Nov 2017 19:49:19 +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 6455522570; Tue, 14 Nov 2017 19:49:19 +0000 (UTC) In-reply-to: (message from Stefan Monnier on Sun, 12 Nov 2017 16:03:09 -0500) 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:139899 Archived-At: > From: Stefan Monnier > Cc: Drew Adams , 17893@debbugs.gnu.org > Date: Sun, 12 Nov 2017 16:03:09 -0500 > > > The error happens when the marker at the head of the mark ring no > > longer points into a buffer. > > Hmm... mark-ring is buffer-local, so the marks in there should all point > to current-buffer. Can you try and figure out why this is not the case? I was not careful to make sure that the mark-ring contains valid markers, so it may be an error in my code. On the other hand, looking at the definition of `clone-buffer' (which my patch uses), I don't see anything that would update the markers of the mark-ring in the newly cloned buffer to point to the new buffer instead of the old one. Maybe that is also a problem? And it doesn't help that I find my code incredibly hard to read one month on... Drew's problem is probably related to clone-buffer, especially seeing as he saw the issue right after having hit M-n in an Info mode buffer: M-n runs the command clone-buffer (found in Info-mode-map), which is an interactive compiled Lisp function in ‘simple.el’. It is bound to M-n, . (clone-buffer &optional NEWNAME DISPLAY-FLAG) Ah, turns out that's how you replicate this bug. 1. C-h i 2. Click/drag a few times in the *info* buffer to set some marks 3. M-n C-x o C-x k RET 4. Click in the remaining *info*<2> buffer: set-transient-map PCH: (error "Marker does not point anywhere")