From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Proposal: stack traces with line numbers Date: Sat, 14 Oct 2017 23:20:15 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1508037632 26508 195.159.176.226 (15 Oct 2017 03:20:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Oct 2017 03:20:32 +0000 (UTC) Cc: John Williams , Emacs developers To: raman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 15 05:20:26 2017 Return-path: Envelope-to: ged-emacs-devel@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 1e3ZTN-000539-1c for ged-emacs-devel@m.gmane.org; Sun, 15 Oct 2017 05:20:17 +0200 Original-Received: from localhost ([::1]:55939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3ZTU-0001Lc-IJ for ged-emacs-devel@m.gmane.org; Sat, 14 Oct 2017 23:20:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3ZTO-0001LQ-Kh for emacs-devel@gnu.org; Sat, 14 Oct 2017 23:20:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3ZTN-0005Ns-FE for emacs-devel@gnu.org; Sat, 14 Oct 2017 23:20:18 -0400 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:52979) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3ZTN-0005Nb-8d for emacs-devel@gnu.org; Sat, 14 Oct 2017 23:20:17 -0400 Original-Received: by mail-wm0-x22c.google.com with SMTP id k4so27903075wmc.1 for ; Sat, 14 Oct 2017 20:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=SPwBEVgiJUins4cYLyx5twGLo4xcsos45yI5R6aozcs=; b=K9jGS9KBozl7BJAKjvJLV6PVI0+WNZRjcUHhqtuamuVGZiVdW/aO0PhHGnHkpM5vSS c2KvqxNqRzyuvFCqZaAnSzyNKm6TlWfoIFGKpvr9YXV0/+QZJejEC8saDoKUgpxA9cgV BZPX9z5TryvfH8hfA4HO++dAkHpN83Pj5MzoiJS9U/jePiji/zIuhc2Y+RRlrNEOfayU ZM0Vw8bzRt9ji1YWL8t7siDS7/1yqLeVAhzzDl0O0FRYQHHnnzscdTqZ9cD7uOVfKjQ5 3utNmz/URxI4BmwcpybcUgfyRvGORwt+ov5J9dTIhxNK9UCOsJGQjydF5mrx8TJrhS8f /itA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=SPwBEVgiJUins4cYLyx5twGLo4xcsos45yI5R6aozcs=; b=UNV79hUAnJDxgkyQCBFmlb9szO0xXX+tRJDLs2lj9W/dD733S4NTJezOwe3uFc+wQo uagN1n9CsbRyFrOqkVO1jPW2A9ZNI4jcjiS/jJirA65VCSfw9w2eVtfsqOoFlrBFmS5m UzjRpllq9CBa/Mg231OfdaaHkK3hsZ23FygaYVjRWP1Liqd6XHw23sNV2A+RWg+ZvJC8 VEesO1/qVZ7SaR7UV3FRc3Q7Ao3gQiuS91w6ks07erzQxcsVO0bKocYwhS9jzb0N1oOB WtJ/gJJtsJmqmHY7BgsEs51DucjvrJyKNg19bqosVmJl/Vsz2vcwDLDqxm2ecTKyoOom sAGg== X-Gm-Message-State: AMCzsaUcrWNlqrYpbyh10voo01/OscAZ+GTq1/yLTnx4XQUR9Zfwx3kL S2/mhYVmC8DJpqCmp2TXDN6Jr+hFt9KO8QfuHtA= X-Google-Smtp-Source: ABhQp+Q8EgMFEJo0xeFN3qhKWvHw+3LBzojQsHqSKgWS0SCGI1z5YQ3qHOlatcr0ztJgB9Lrtrl0H+ULtWeavHX6WHE= X-Received: by 10.28.133.2 with SMTP id h2mr4077991wmd.67.1508037616099; Sat, 14 Oct 2017 20:20:16 -0700 (PDT) Original-Received: by 10.223.146.193 with HTTP; Sat, 14 Oct 2017 20:20:15 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: -FmJ32oXp0K1kkDl_IT67dCa97I X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219540 Archived-At: On Sat, Oct 14, 2017 at 10:42 PM, raman wrote: > Actually pressing enter on a line in the backtrace buffer jumps to the > appropriate source code -- what more would line numbers give us? Well, jumping to a particular line might be more useful than just jumping to the beginning of a function. In practice, I find the current behaviour of jumping to the function is generally good enough. Apropos line numbers, there is also the long-standing issue of inaccurate line numbers in byte compile errors & warnings (Bug#2681), I think Alan was working on it, but perhaps it's stalled since I don't recall any mention of it since July [1]. At any rate, since both these things involve changes to the reader, probably some coordination is in order. In particular, the shortcut of only taking line numbers for the head of list might not be sensible if we want to solve the error/warning line numbering problem too. Stefan had some ideas about a "real" solution in [2]. [Bug#2681]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=2681 [1]: https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00653.html [2]: https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00729.html