From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Backtrace mode Date: Wed, 1 Aug 2018 16:58:03 -0400 Message-ID: References: <871sboqvx1.fsf@runbox.com> 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 1533156976 24399 195.159.176.226 (1 Aug 2018 20:56:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2018 20:56:16 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 22:56:12 2018 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 1fkyAF-0006E0-R3 for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2018 22:56:11 +0200 Original-Received: from localhost ([::1]:42884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkyCM-0006Bq-KK for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2018 16:58:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkyC9-0006AV-Mc for emacs-devel@gnu.org; Wed, 01 Aug 2018 16:58:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkyC6-00006o-M8 for emacs-devel@gnu.org; Wed, 01 Aug 2018 16:58:09 -0400 Original-Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]:41476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkyC6-00006J-HP for emacs-devel@gnu.org; Wed, 01 Aug 2018 16:58:06 -0400 Original-Received: by mail-qt0-x235.google.com with SMTP id e19-v6so21518732qtp.8 for ; Wed, 01 Aug 2018 13:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Wj1YPwbkJVcZdTpqa0F+5m0qd1bUjTNwvHET7CwCPsI=; b=cXG79UaWfDA8KJEzxVF/jethuOCE559cbPefeKN8g0npWz44mVXD9b+k1UgmJ+PJpU F+kvAYLhh3l9GuAScpshcjoMYjUZPVwsWX1sH0E5JWQfXD0dUNuCdJRcPgcmnJtX5g8/ yWKkFn8kopyovyla6oT+wgG5XboiEmeligg26jD4KY5qIGFg6d+D2Prvc+B2Z4DacplX Hz7DQKfYalolekSes4YiXchO+iK5L/2VajQyLsk4LMvsdAJ/kGj28epEAyegzzTSPp8k tsuZ+ITx7xkuCfTkOlX1IBJuJ9rBUpjwZaY2Vi1qWKFYlrnsMC2BwvRTRTb7HdHtg1WC 6Ysg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Wj1YPwbkJVcZdTpqa0F+5m0qd1bUjTNwvHET7CwCPsI=; b=gkn8OG3M7Ehnse9ZbGensecn+wN6FPjATxaFYPL3IPpXl1weZoPI4ev3J500j1r9v3 w6UTjfgGc5SinqSTb+h8QJXyDO2a2sPrsKqywHrAv00o+3inySr0zdtg7PAyOL9S8dLn TPAeQU2wjGS5BGz30TZPxPt/R0pKUBNB3kgaUbRjtaz9NXRWD2qH3bAJMtaBrvGfqfrN tJ4B4c9aPRTrsu2ivEanOlvpy5UHBPCtvsku6M/YEM730NoH9XgnT1kLnN054bG3vMHV l+nFzw0gNHOtho9rDb8bsicG+ti06S5MVpJ+hDHDCNlLHyVVI5Ajr9vJfolMnKmlxdab OjHA== X-Gm-Message-State: AOUpUlF4D7M6FNrkgmI8lpUe5B5MR8hba8QLpMM3cONtgaNviFEL8rAo agu7TDasca44l2vUsex6uMBIHvwj X-Google-Smtp-Source: AAOMgpfWqdZB2xUbnhlHJhLhOtxHCBHb28XhYNdnczEvGus50n4k2DeXCncyzYaoVvCaYDj9TjN09Q== X-Received: by 2002:ac8:19ab:: with SMTP id u40-v6mr27033035qtj.101.1533157085776; Wed, 01 Aug 2018 13:58:05 -0700 (PDT) Original-Received: from [10.8.0.6] (c-73-126-99-55.hsd1.ma.comcast.net. [73.126.99.55]) by smtp.gmail.com with ESMTPSA id y8-v6sm14241055qta.42.2018.08.01.13.58.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 13:58:05 -0700 (PDT) In-Reply-To: <871sboqvx1.fsf@runbox.com> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::235 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:228095 Archived-At: Hi Gemini, I just gave the new code a try. This is really neat! Thanks a lot :) Did you consider using V instead of C-u v to toggle all locals? Clément. On 2018-07-27 16:13, Gemini Lasswell wrote: > Hi All, > > I've finished everything I set out to add to Backtrace mode, and have > pushed it to scratch/backtrace-mode. Documentation, NEWS and tests are > all done, so please have a look at it and let me know if you find > anything that should be fixed before I merge it. > > Notable changes: > > - It's now possible to toggle both local variable display and printing > with 'print-circle' for the entire buffer instead of just the current > frame, using the C-u prefix with 'v' and '#' respectively. > > - C functions in backtraces now get links to their source code. Links > are also created for the reading position of 'eval-buffer' and > 'eval-region'. > > - I've added a new function 'cl-print-to-string-with-limit' to > cl-print.el, which tries to get a printed representation to fit in a > specified number of characters using 'print-length' and 'print-level'. > Backtrace mode is using it and I plan to use it for results printing > in Edebug, the Lisp Debugger and ERT, hopefully putting an end to > performance problems caused by excessively long lines in those modes. > > - You can now expand all the '...'s in a backtrace frame at once using > backtrace-expand-ellipses, bound to '.' and with the C-u prefix expand > them without putting a limit on the expansion. > > - In Edebug backtraces, three new commands are available. > backtrace-goto-source, bound to 's', works on frames in > Edebug-instrumented code, which are marked with a '>' on the left side. > I've also added edebug-backtrace-show-instrumentation and > edebug-backtrace-hide-instrumentation, to show and hide Edebug's > functions in the backtrace. > > - The function 'backtrace' now uses Backtrace mode's printing and is now > located in backtrace.el instead of subr.el. The functions > 'backtrace-frame' and 'backtrace-frames' remain in subr.el so that > Backtrace mode doesn't have to be loaded for programmatic access to the > backtrace from Lisp. > >