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: Rant on ... Date: Thu, 17 Nov 2016 22:27:43 -0500 Message-ID: References: <20161117204729.GA3461@acm.fritz.box> <0120c6c0-abe0-4545-acc9-8b170107bd18@default> <87d1htjzu1.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1479439707 12296 195.159.176.226 (18 Nov 2016 03:28:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2016 03:28:27 +0000 (UTC) Cc: Michael Heerdegen , Lars Ingebrigtsen , Emacs Development To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 18 04:28:23 2016 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 1c7Zqf-0001sU-1u for ged-emacs-devel@m.gmane.org; Fri, 18 Nov 2016 04:28:21 +0100 Original-Received: from localhost ([::1]:34420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Zqi-0007xp-5c for ged-emacs-devel@m.gmane.org; Thu, 17 Nov 2016 22:28:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Zq5-0007xZ-NY for emacs-devel@gnu.org; Thu, 17 Nov 2016 22:27:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7Zq4-0003wa-Ta for emacs-devel@gnu.org; Thu, 17 Nov 2016 22:27:45 -0500 Original-Received: from mail-oi0-x242.google.com ([2607:f8b0:4003:c06::242]:34349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7Zq4-0003wB-Or for emacs-devel@gnu.org; Thu, 17 Nov 2016 22:27:44 -0500 Original-Received: by mail-oi0-x242.google.com with SMTP id z62so8787784oiz.1 for ; Thu, 17 Nov 2016 19:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/Oq6xiYHahfvSIn8ECUZVUpkIbcejeQDGTnl5CsVLf0=; b=KljEzYiF+Y0H3ZcAZsdOK/5B7nAlxqOGMdUeRszt4k6S42mmpLP+F9NXdTCa74Gv1X l7priYJmgLjkaAfFrFNeYN3/i1DY+Hb3E+vs0k+oDGckKFjjuDmiKacYAvIXtkdnGkJM MpvRQZ4OKImyd6OtONPMmh/HKo7WOYDNvxH6Z1lrWvm67dygYPzif6XQOMR9Qxa1+cRC 4R4uHE3tRGC9F4fmDdiuw6T5OFSXwMmJIxCiB2KSVDo00/2Xc23lGM6TYaNT8kQPGUn/ zHCWJGBxV1IJ0zUqLxH9cev91txUI9OObi+8ACCkedzkQu6c9v+kG74BNkZ3e2esyCBu +r+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/Oq6xiYHahfvSIn8ECUZVUpkIbcejeQDGTnl5CsVLf0=; b=GzZ/Uu/TAISykp49HlimXaZ4G48VGg4qPdsbQrorRSlOs6LJJfvaOpyE2CRqQ72i+5 yqzWm38eliOtDb/NEnbNw5KgkKE00J9VePjDEbgMeGgOBb82TqSymZdvzwJwOygV5LJX TUbzCFhT18/TtzegJ/4mxJeo1ebPkxW6hZC5kNy4kNzrUNCcnscu/CtTNpbU5q5YnohK oNryW+/2rm0KkXo8a1BzEq7aI64yukkt0jjmu1Mezh8zsqA9j7ki2r8whenek7rshUh9 ugxenqXzgs7pGSwATGDphB0rITYsC7GA2ZhqJ+uGkT3I2Ll7etuWbH/aSJ82cjU7e2TT 7DPQ== X-Gm-Message-State: ABUngvdRlylKXL/vDiliyLy3ISqoD/w93dJwt/spruhPhLVEW8e5P3S/g3z9DsK2RaEPPSgjf9PyixL7No0Ukw== X-Received: by 10.157.17.89 with SMTP id p25mr3590917otp.239.1479439664051; Thu, 17 Nov 2016 19:27:44 -0800 (PST) Original-Received: by 10.157.4.67 with HTTP; Thu, 17 Nov 2016 19:27:43 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 5m4WnGuIc4DHi-cnrOSZ9M-DpZk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::242 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:209469 Archived-At: On Thu, Nov 17, 2016 at 9:56 PM, Drew Adams wrote: >> FWIW, I chose this different solution for my init file: when I hit a >> certain key at any line in the debugger buffer, I get a popup window >> that shows the according (clicked) frame as pretty printed lisp >> expression in emacs-lisp-mode. Having a separate buffer has its >> advantages, since this expression can be really huge. The tricky >> part is to get the correct frame number to pass to `backtrace-frame'. >> >> Another command pops up a buffer containing the whole backtrace as a >> list of lisp expressions. I chose to bind print-circle -> t for >> this, because the frames can share large structures. With print-circle -> nil, the individual frame are better readable, but the whole thing >> gets even huger. > > That too sounds good. Yes, actually I've been wanting something like that, could you post this somewhere? > > Lots of room for improvement in *Backtrace* buffers. For me, > the most important improvements would be (1) getting rid of the > bytecode and (2) being able to toggle expansion/contraction of > `...'. But all the other suggestions made so far sound good too. > > Getting rid of the bytecode is important for communicating by > copying/pasting backtrace text. You cannot copy/paste it all > when some of it is bytecode - you only get the first part of it > - up to some binary character - and the rest is truncated away. I've been thinking we could keep the bytecode, but just print it with the non-text characters escaped. I'll reopen and follow up on the bug thread tomorrow.