From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: Edebug: avoid messages on 'f' command Date: Fri, 6 May 2016 12:52:13 +0200 Message-ID: References: <20160505131010.GC1950@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1462531989 27993 80.91.229.3 (6 May 2016 10:53:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 May 2016 10:53:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 06 12:53:08 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aydNb-0004PL-Vq for ged-emacs-devel@m.gmane.org; Fri, 06 May 2016 12:53:08 +0200 Original-Received: from localhost ([::1]:57559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aydNX-0001nQ-M5 for ged-emacs-devel@m.gmane.org; Fri, 06 May 2016 06:53:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aydNE-0001bO-LE for emacs-devel@gnu.org; Fri, 06 May 2016 06:52:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aydN2-00072S-JP for emacs-devel@gnu.org; Fri, 06 May 2016 06:52:39 -0400 Original-Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]:34296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aydN1-0006um-BQ for emacs-devel@gnu.org; Fri, 06 May 2016 06:52:32 -0400 Original-Received: by mail-oi0-x244.google.com with SMTP id d139so17727789oig.1 for ; Fri, 06 May 2016 03:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=+BgJVxZWsr2j76QE5furGjE6dnSjKvQ+BgL/0cvhnD8=; b=adUamBzTR2zd+E0olpuLT8HgUR4j7sYToLvf42tREttvBS+UK17QSdSsBKckI8SmTv ziq8lrHoJwxu28MNT8oMFm9oZSTrjd/Jayguze9D3s8YUHZekqbkNiQ1La4y1m0Nb0Y7 yuD9e+QtmgzH90vglKsPlKKnpl5DOg6i3I93NNgouyHfB4jG2BbVHHt13TA78B+U7xFj tD3VJO7QUpuWCxRYMea74CpLf9wfjSHNGgPXqK0BXIZvQHwHfppi+r+O39Sr2VRLicI8 EGDuDcguDbSfMw0jHu1MVb7pu21wqJlj1iA55NUZtQQqwGeiMCEkOzXeJHC59US6ykhD 8GUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=+BgJVxZWsr2j76QE5furGjE6dnSjKvQ+BgL/0cvhnD8=; b=WWmbdspdszILwAymjOeXAgWZqWrwtLs95yemwPV934iibZoPSHC25CKX7l/8mDJUtB xFI6p14yfzcBAlfhDcmR71thM62NfyEr8yKbsownx+D0hISj4m2hdb3sTX/AltYniecs s7eD+//GocgWp8AmImH/p8YrMGKPTUlAnfgWXFacdQnM4syV3/nhaxfJFlvpXscAKqNK dsDqe7IsnEShMSsJ5hyWjAPAvKAMyWNAqfIEA0q6487AoJU9F6qjiKSl9HhZpFe3FYRV y0csVCIrEZwFJgmUfOyfHwjS9piaaBJpdgRw0I+KWInADsp6NhFODxC8J4uv+I92R2JT jCWQ== X-Gm-Message-State: AOPr4FXU6TA4cdZf4Q8xTzZ/s/5ldhhRq0gHDWEMShiXNSObypTa9QVtKeDn7sXUM+bAqIDCPF6HtYSBYwnSqA== X-Received: by 10.157.52.162 with SMTP id g31mr9993448otc.165.1462531933315; Fri, 06 May 2016 03:52:13 -0700 (PDT) Original-Received: by 10.202.235.82 with HTTP; Fri, 6 May 2016 03:52:13 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::244 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:203637 Archived-At: By the way, here are some other things that I miss with Edebug. Maybe you could find time to do something about these. * Highlight breakpoints with overlays and/or on fringe. * When setting a breakpoint in a non-instrumented form, instrument it for me rather than printing an error. * When C-M-x a definition that has breakpoints, try to preserve them, rather than resetting. It's especially annoying to lose conditional breakpoints. Might be hard to implement, though, as it's not clear how to compare old and new definitions to decide where to move breakpoints. * Some way to list active breakpoints. * Add analogue of 'f' (maybe bind to 'F') that temporary disables all breakpoints until its destination is reached. Maybe also add a command to "go to point ignoring all breakpoints". Paul On 5 May 2016 at 23:44, Paul Pogonyshev wrote: > Yes, it works fine for me. Thank you. > > Paul > > On 5 May 2016 at 15:10, Alan Mackenzie wrote: >> Hello, Paul. >> >> On Tue, May 03, 2016 at 08:58:52PM +0200, Paul Pogonyshev wrote: >>> In Edebug 'f' is bound to 'edebug-forward-sexp'. It can be seen as >>> "faster" space key, allowing you to step through function a whole sexp >>> at a time. However, there is an annoyance to it: each time I hit it, >>> echo area displays "Break" for about a second, which is only then >>> replaced by "Result: ...". By comparison, space displays result >>> immediately. >> >> Yes, this irritates me too. >> >>> Request: improve Edebug to not print such intermediate message(s) >>> during 'f' and similar commands. >> >> Would you please try out the following patch. It entirely cuts out the >> one second pause on all "break commands" (whatever they might be). >> Hopefully there aren't any unwanted side effects. >> >> Just set the new customisable variable to nil, and off you go! >> >> The patch is based on today's master branch. >> >> >> >> diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el >> index e8484fa..5d2e4e6 100644 >> --- a/lisp/emacs-lisp/edebug.el >> +++ b/lisp/emacs-lisp/edebug.el >> @@ -233,6 +233,11 @@ edebug-sit-for-seconds >> :type 'number >> :group 'edebug) >> >> +(defcustom edebug-sit-on-break t >> + "Whether or not to pause for `edebug-sit-for-seconds' on reaching a break" >> + :type 'boolean >> + :group 'edebug) >> + >> ;;; Form spec utilities. >> >> (defun get-edebug-spec (symbol) >> @@ -2489,6 +2494,7 @@ edebug--display-1 >> (progn >> ;; Display result of previous evaluation. >> (if (and edebug-break >> + edebug-sit-on-break >> (not (eq edebug-execution-mode 'Continue-fast))) >> (sit-for edebug-sit-for-seconds)) ; Show message. >> (edebug-previous-result))) >> >> >>> Paul >> >> -- >> Alan Mackenzie (Nuremberg, Germany).