From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: The new "pp" command in gud is no longer so dangerous... Date: Thu, 10 Nov 2005 14:03:30 +1300 Message-ID: <17266.40034.490774.167992@kahikatea.snap.net.nz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1131584704 14792 80.91.229.2 (10 Nov 2005 01:05:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2005 01:05:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 10 02:05:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ea0qh-0000zh-7f for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2005 02:03:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ea0qg-0003jd-LQ for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2005 20:03:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ea0qS-0003gj-QT for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:03:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ea0qR-0003eU-AX for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:03:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ea0qR-0003eI-58 for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:03:15 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ea0qQ-0005M2-NN for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:03:15 -0500 Original-Received: from kahikatea.snap.net.nz (p141-tnt1.snap.net.nz [202.124.110.141]) by viper.snap.net.nz (Postfix) with ESMTP id 9FBD47311BF; Thu, 10 Nov 2005 14:03:11 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 0B3848402; Thu, 10 Nov 2005 14:03:30 +1300 (NZDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45650 Archived-At: ...but living on the edge is half the fun! > Also, I have added new commands to print the value of lisp variables, > e.g. > pv debug-on-error > > There is also a command pv1 which could be used as the command > to execute when user presses the "pp" toolbar button over a symbol > in a *.el file. Someone wants to work on that? How would that work? The variable tool-bar-map is set locally in gud-minor-mode so, as soon as you place the cursor in a buffer where gud-minor-mode is nil e.g on an expression in a lisp file, the tool bar reverts to the global one. I could define it using gud-def so that it has a global binding e.g. (gud-def gud-pv "pv1 %e" "\C-v" "Print the value of the lisp variable.") so that it's on C-x C-a C-v. Is that any good? Nick