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: Debugger output: where to look for its explanation? Date: Sun, 29 Mar 2015 15:03:54 +0200 Message-ID: <871tk8hs5h.fsf@wmi.amu.edu.pl> References: <874mp4iv1g.fsf@wmi.amu.edu.pl> <90f11922-7559-491a-bff9-b2c99508d6f8@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427634285 32500 80.91.229.3 (29 Mar 2015 13:04:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2015 13:04:45 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 29 15:04:35 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 1YcCtB-0004FG-CJ for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Mar 2015 15:04:29 +0200 Original-Received: from localhost ([::1]:57065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcCtA-0004ot-Nw for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Mar 2015 09:04:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcCsv-0004lf-1F for help-gnu-emacs@gnu.org; Sun, 29 Mar 2015 09:04:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcCsr-0007mN-QE for help-gnu-emacs@gnu.org; Sun, 29 Mar 2015 09:04:12 -0400 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:52477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcCsr-0007la-I6 for help-gnu-emacs@gnu.org; Sun, 29 Mar 2015 09:04:09 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id A73B05B5C6 for ; Sun, 29 Mar 2015 15:04:05 +0200 (CEST) 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 SFL3SSyquyKo for ; Sun, 29 Mar 2015 15:04:05 +0200 (CEST) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 5CEA05B5C2 for ; Sun, 29 Mar 2015 15:04:05 +0200 (CEST) In-reply-to: <90f11922-7559-491a-bff9-b2c99508d6f8@default> 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:103423 Archived-At: On 2015-03-29, at 03:01, Drew Adams wrote: >> so I got this as a *Backtrace*: >> >> Debugger entered--Lisp error: (scan-error "Containing expression ends >> prematurely" 2959 2959) > > No doubt someone will give you interesting details about the info > in the backtrace. I would hope! It seems this is not very well documented in the Emacs manual. > FWIW, whenever I get that error message it's pretty clear what the > problem is, because I was evaluating a sexp (so I know which one is > problematic). It's typically because I forgot a right paren somewhere. Not really in this case -- I was writing a function which analysed the code. More precisely, given that the point was somewhere in a string, the function decides whether it's a docstring or not. (It is part of my SLOC counting library.) But I agree, it *was* clear where the problem was. But thanks anyway! Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University