From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Advice on troubleshooting function to "unscroll" Date: Sun, 25 Jan 2015 22:55:02 +0100 Message-ID: <87zj96frux.fsf@wmi.amu.edu.pl> References: <54C5577D.4030700@gmail.com> <874mreh7c5.fsf@wmi.amu.edu.pl> <54C56398.1050404@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422222928 30915 80.91.229.3 (25 Jan 2015 21:55:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2015 21:55:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 22:55:28 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YFV9S-0006xE-8Z for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 22:55:26 +0100 Original-Received: from localhost ([::1]:39053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFV9R-0001vC-QQ for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 16:55:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFV9F-0001uv-Uj for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 16:55:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFV9C-0000Ze-PW for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 16:55:13 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:34517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFV9C-0000ZU-JQ for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 16:55:10 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id E63EE4AC58 for ; Sun, 25 Jan 2015 22:55:09 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5o4R9Rc0bthx for ; Sun, 25 Jan 2015 22:55:09 +0100 (CET) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id A775A4AC4F for ; Sun, 25 Jan 2015 22:55:09 +0100 (CET) In-reply-to: <54C56398.1050404@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102255 Archived-At: On 2015-01-25, at 22:43, Will Monroe wrote: > Marcin, > > Thanks for your quick and friendly response! You're welcome! > Thanks for the advice about Edebug. It's definitely something that is > on my mind. But over the last day or so, I've hesitated from diving > into Edebug because there was no "error" as such. That is, the code > "worked" it just didn't do what I intended. Wasn't sure Edebug would > help in a case like that...but your point is well taken. Thank you! It might. It lets you step through the execution of some part of the code, seeing the result of evaluating each and every expression along the way. It may be very helpful sometimes. And it's easy to just start with it: just define the function with C-u C-M-x ("instrument" it for Edebug), and then -- when the execution gest to it (and pauses) -- use SPC to step through it or `G' to continue without stopping. When you're happy with your understanding what's going on in the code, press C-M-x on the defun again. (There's a lot more to Edebug than this, but it should be enough to get you started.) Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University