From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.bugs Subject: bug#24753: 26.0.50; Error using Edebug on code that uses cl-defmethod Date: Wed, 26 Apr 2017 14:39:56 -0700 Message-ID: <8760hqvoer.fsf@chinook.i-did-not-set--mail-host-address--so-tickle-me> References: <35640890-0451-771d-578e-666552b141ec@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493243476 15184 195.159.176.226 (26 Apr 2017 21:51:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 21:51:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: Gemini Lasswell , 24753@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 26 23:51:11 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 1d3Uq6-0003nk-Bx for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 23:51:10 +0200 Original-Received: from localhost ([::1]:57303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3UqC-0004Eb-9D for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 17:51:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Uq1-0004B2-OO for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 17:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3Upy-0005OJ-L1 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 17:51:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3Upy-0005O5-DN for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 17:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3Upy-0007zY-6V for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 17:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Apr 2017 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24753 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed patch Original-Received: via spool by 24753-submit@debbugs.gnu.org id=B24753.149324343430687 (code B ref 24753); Wed, 26 Apr 2017 21:51:02 +0000 Original-Received: (at 24753) by debbugs.gnu.org; 26 Apr 2017 21:50:34 +0000 Original-Received: from localhost ([127.0.0.1]:42098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3UpW-0007yt-Ew for submit@debbugs.gnu.org; Wed, 26 Apr 2017 17:50:34 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:54788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Ufc-0007jk-2Y for 24753@debbugs.gnu.org; Wed, 26 Apr 2017 17:40:20 -0400 Original-Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1d3UfZ-0005S8-Jh; Wed, 26 Apr 2017 23:40:17 +0200 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1d3UfN-0002kB-Pq; Wed, 26 Apr 2017 23:40:06 +0200 In-Reply-To: <35640890-0451-771d-578e-666552b141ec@yandex.ru> (Dmitry Gutov's message of "Tue, 11 Apr 2017 15:16:47 +0300") X-Mailman-Approved-At: Wed, 26 Apr 2017 17:50:33 -0400 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:132035 Archived-At: Dmitry Gutov writes: > TBH, I'm not sure what (setf foo) does in the NAME slot. I'm not totally clear on what that example is doing either. I just grabbed it from cl-generic-tests.el because it was short and reproduced the bug. But I think the idea is to let you define a method so that (setf (foo x) y) does something analogous to (setf (cdr x) y). > A similar scenario with existing functions leads to a related problem: Your scenario is another way to reproduce the bug. When Edebug instruments something it attaches a cache of markers to the symbol. So when two methods with the same name are instrumented, the cache of markers pointing into the first method's source is replaced with a cache of markers for the second method. And then if you debug into the first method Edebug sees markers pointing at the wrong method and gets confused. My patch works by making Edebug generate new symbols for each method.