From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Edebug: avoid messages on 'f' command Date: Thu, 5 May 2016 13:10:10 +0000 Message-ID: <20160505131010.GC1950@acm.fritz.box> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1462453868 14777 80.91.229.3 (5 May 2016 13:11:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 May 2016 13:11:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 05 15:11:01 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 1ayJ3Q-00032p-Rf for ged-emacs-devel@m.gmane.org; Thu, 05 May 2016 15:10:57 +0200 Original-Received: from localhost ([::1]:53537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayJ3M-0004BJ-Im for ged-emacs-devel@m.gmane.org; Thu, 05 May 2016 09:10:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayJ34-0003yN-5I for emacs-devel@gnu.org; Thu, 05 May 2016 09:10:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayJ2s-0007NI-05 for emacs-devel@gnu.org; Thu, 05 May 2016 09:10:28 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:37888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayJ2r-0007L4-Nh for emacs-devel@gnu.org; Thu, 05 May 2016 09:10:21 -0400 Original-Received: (qmail 91012 invoked by uid 3782); 5 May 2016 13:10:12 -0000 Original-Received: from acm.muc.de (p548C62E6.dip0.t-ipconnect.de [84.140.98.230]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 05 May 2016 15:10:10 +0200 Original-Received: (qmail 13655 invoked by uid 1000); 5 May 2016 13:10:10 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 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:203604 Archived-At: 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).