From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Adding a sublist to a list on startup Date: Thu, 16 Dec 2010 06:52:29 -0800 Message-ID: References: <87zks9o3bw.fsf@guruji.demimonde><08AABBED9C6F4D2A9644BD0B620685CD@us.oracle.com><87vd2xnyvf.fsf@guruji.demimonde><97015EFD9EC74A7DA045CCE24E99D2BE@us.oracle.com> <87mxo5akqf.fsf@guruji.demimonde> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292511249 28645 80.91.229.12 (16 Dec 2010 14:54:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 14:54:09 +0000 (UTC) To: "'Tyler Smith'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 16 15:54:02 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTFDV-0003zr-Hu for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 15:54:02 +0100 Original-Received: from localhost ([127.0.0.1]:47763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTFDV-0000RL-6o for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 09:54:01 -0500 Original-Received: from [140.186.70.92] (port=58107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTFCz-0000Qe-LN for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 09:53:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTFCy-0000Kz-Kk for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 09:53:29 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:43623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTFCy-0000Kl-Fn for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 09:53:28 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBGErN5c026925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 16 Dec 2010 14:53:24 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBGEguMM029237; Thu, 16 Dec 2010 14:53:22 GMT Original-Received: from abhmt012.oracle.com by acsmt355.oracle.com with ESMTP id 880872161292511152; Thu, 16 Dec 2010 06:52:32 -0800 Original-Received: from dradamslap1 (/10.159.220.11) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 16 Dec 2010 06:52:32 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcudKH9K4gOO/OoQQj6YJWSKEp4JCwAB5n6g In-Reply-To: <87mxo5akqf.fsf@guruji.demimonde> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77591 Archived-At: > > M-x debug-on-entry RET my-LaTeX-hook RET > > > > Then use `d' to step through the function. You can use `e' > > at any time to evaluate something (e.g. `LaTeX-env-item'). That should > > show you what the problem is. > > Finally got round to trying this. I can use e to evaluate items, but d > gives me an error at the top of the buffer: > > Debugger entered--Lisp error: (error "Cannot return from the > debugger in an error") > Which I take to mean there is some error in the hook? That error message is shown if you try to hit `d' or `c' _after_ an error has already occurred. If it happens for the _first_ `d' or `c' you hit in the debugger, then you should already see an error message (at the top) upon entry. In that case, look up the backtrace stack (i.e. down the buffer) to see which function raised the error, and debug that function instead (`debug-on-entry'). The point is that you can use `d' to step through a function, but once you hit an error you can no longer step (where would it step?).