From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: The new "pp" command in gud is no longer so dangerous... Date: Thu, 10 Nov 2005 13:52:12 +0100 Message-ID: References: <17266.40034.490774.167992@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1131628001 27904 80.91.229.2 (10 Nov 2005 13:06:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2005 13:06:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 10 14:06:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EaC5h-0002nC-HG for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2005 14:03:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaC5g-0005LS-80 for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2005 08:03:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EaBvX-0002OD-Rw for emacs-devel@gnu.org; Thu, 10 Nov 2005 07:53:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EaBvV-0002ML-QA for emacs-devel@gnu.org; Thu, 10 Nov 2005 07:53:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaBvV-0002MA-KB for emacs-devel@gnu.org; Thu, 10 Nov 2005 07:53:13 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EaBvV-0001Yz-QB for emacs-devel@gnu.org; Thu, 10 Nov 2005 07:53:13 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 413BA47FED0; Thu, 10 Nov 2005 13:53:09 +0100 (CET) Original-To: Nick Roberts In-Reply-To: <17266.40034.490774.167992@kahikatea.snap.net.nz> (Nick Roberts's message of "Thu, 10 Nov 2005 14:03:30 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:45679 Archived-At: Nick Roberts writes: > > 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? You are right, it can't. > 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? Looks good to me! Let's try it! -- Kim F. Storm http://www.cua.dk