From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57674: 29.0.50; `backtrace-goto-source' function broken. Date: Thu, 08 Sep 2022 15:06:41 +0200 Message-ID: <87bkrq2exq.fsf@gnus.org> References: <87illyvyvi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40076"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57674@debbugs.gnu.org To: Michelangelo Rodriguez Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 15:13:06 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWHL8-000AFa-Dm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 15:13:06 +0200 Original-Received: from localhost ([::1]:59500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWHL6-0002UP-VM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 09:13:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWHFG-0006eg-Ti for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 09:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWHFG-0007Md-Kw for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWHFG-0003Zt-GX for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 09:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2022 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57674 X-GNU-PR-Package: emacs Original-Received: via spool by 57674-submit@debbugs.gnu.org id=B57674.166264241213737 (code B ref 57674); Thu, 08 Sep 2022 13:07:02 +0000 Original-Received: (at 57674) by debbugs.gnu.org; 8 Sep 2022 13:06:52 +0000 Original-Received: from localhost ([127.0.0.1]:57641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHF6-0003ZV-HH for submit@debbugs.gnu.org; Thu, 08 Sep 2022 09:06:52 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:56328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHF4-0003ZB-Bl for 57674@debbugs.gnu.org; Thu, 08 Sep 2022 09:06:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KkxnNTTQKuYc61G1myMtIOC5+Thf7dvAbnjCpL03Id8=; b=DNwdDdnkohBhCzWjLM1BLvzz7N nCeYZ5nbtJqwkhxR5uGwisQu/JKIodDYJ0Co/qLTbQ9EcAGRcXY1lFNdOxMQlhxNS/58J4ESeQlMy P0U/Q0Zf104klZM3Ht8OHMqdkuiZZpJR+cXevNGKYWCgFpde6T6a1ymW3FHTKa8vcMN8=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWHEv-0002b1-Og; Thu, 08 Sep 2022 15:06:43 +0200 In-Reply-To: <87illyvyvi.fsf@gmail.com> (Michelangelo Rodriguez's message of "Thu, 08 Sep 2022 14:23:13 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWXlWNpalDFzrf/ //+6G1XXAAAAAWJLR0QDEQxM8gAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB+YJCAw3Jo99 xAwAAAEDSURBVCjPbdG9boQwDAfwfxCWKqYghb0duvAUQTqWm5wq3ts36XBT99tvaKWKp6zzBQw1 QsoPJ8GJgRQGw6aBf0A4QOQPTCLzkTlDdQKmHQbUnwHs0xZd1eC8vg00ok0j3ZgbDIww27nCBu8r AJEVrqATrZOogCXHNcO5UWIDmV6PsA4F1jtaLgV9WBiMmmGS0Z+gZRc8SQy+og8SVkWXQDehA9+B XlCBaLSyBrH6f99gFFzxPn2INOhQM7ZgTadhh4Ikfr6VDRZ9IkpGQkxj1HJC4ApDd3E75GcwDXCv jrRqzPl6490feLPYga9PTA3b9sDku9yfdOEkyN3WL78oXdz+AJswgvt/SGGhAAAAWmVYSWZNTQAq AAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAAhMA AwAAAAEAAQAAAAAAAAAAAEgAAAABAAAASAAAAAEfUvc0AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIy LTA5LTA4VDEyOjU1OjM4KzAwOjAwWNHXXwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOS0wOFQx Mjo1NTozOCswMDowMCmMb+MAAAAXdEVYdGV4aWY6WUNiQ3JQb3NpdGlvbmluZwAxrA+AYwAAAABJ RU5ErkJggg== X-Now-Playing: Body =?UTF-8?Q?Me=CF=80a's?= _The Work Is Slow_: "Horse Flower Storm-Fabuloso" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241876 Archived-At: Michelangelo Rodriguez writes: > M-x debug-on-entry backtrace-goto-source > M-x backtrace-goto-source > Select a frame. > Press "s" > press "c" in the new backtrace. > It should appears Source code location not known in the echo area. I can reproduce this problem (but adding the debug-on-entry to backtrace-goto-source just makes things more confusing). The problem seems to be that (nth (backtrace-get-index) backtrace-frames) returns a frame without a :source-available entry here: (defun backtrace-goto-source () "If its location is known, jump to the source code for the frame at point." (interactive) (let* ((index (or (backtrace-get-index) (user-error "Not in a stack frame"))) (frame (nth index backtrace-frames)) (source-available (plist-get (backtrace-frame-flags frame) :source-available))) (unless (and source-available (run-hook-with-args-until-success 'backtrace-goto-source-functions)) (user-error "Source code location not known")))) I'm pretty unfamiliar with backtrace.el, but I can't see that slot being added anywhere there? edebug does add it, but isn't involved in any way here. So it looks like something has gotten lost over the years? However, `RET' on a symbol finds the sounds just fine, which is probably why nobody has noticed this problem. I.e., nobody's using the `s' command in *Backtrace* buffers.