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: Debugger output: where to look for its explanation? Date: Sun, 29 Mar 2015 00:03:55 +0100 Message-ID: <874mp4iv1g.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427583878 28897 80.91.229.3 (28 Mar 2015 23:04:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 23:04:38 +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 00:04:30 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 1Ybzm7-0005z6-W1 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Mar 2015 00:04:20 +0100 Original-Received: from localhost ([::1]:55460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybzm6-0002yv-MH for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Mar 2015 19:04:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybzlw-0002xe-5j for help-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:04:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ybzlt-0001RJ-Eu for help-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:04:08 -0400 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:33531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybzlt-0001Qx-8R for help-gnu-emacs@gnu.org; Sat, 28 Mar 2015 19:04:05 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id A4B1F5B5C2 for ; Sun, 29 Mar 2015 00:04:02 +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 DfXXeIkAF1Gj for ; Sun, 29 Mar 2015 00:04:02 +0100 (CET) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 4002C5B5C0 for ; Sun, 29 Mar 2015 00:04:02 +0100 (CET) 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:103416 Archived-At: Hi all, so I got this as a *Backtrace*: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (scan-error "Containing expression ends prematurely" 2959 2959) scan-sexps(2980 -3) forward-sexp(-3) backward-sexp(3) (let ((beg-string (nth 8 (syntax-ppss))) (current-line (line-number-at-pos))) (goto-char beg-string) (backward-sexp 3) (if (and (member (symbol-at-point) symbols-with-docstrings) (looking-back "^(")) (progn (goto-char beg-string) (forward-sexp) (or (> (line-number-at-pos) current-line) (is-current-line-comment-only-p))))) (if (and (eq major-mode (quote emacs-lisp-mode)) (nth 3 (syntax-ppss))) (let ((beg-string (nth 8 (syntax-ppss))) (current-line (line-number-at-pos))) (goto-char beg-string) (backward-sexp 3) (if (and (member (symbol-at-point) symbols-with-docstrings) (looking-back "^(")) (progn (goto-char beg-string) (forward-sexp) (or (> (line-number-at-pos) current-line) (is-current-line-comment-only-p)))))) (save-excursion (skip-syntax-forward "\"-") (if (and (eq major-mode (quote emacs-lisp-mode)) (nth 3 (syntax-ppss))) (let ((beg-string (nth 8 (syntax-ppss))) (current-line (line-number-at-pos))) (goto-char beg-string) (backward-sexp 3) (if (and (member (symbol-at-point) symbols-with-docstrings) (looking-back "^(")) (progn (goto-char beg-string) (forward-sexp) (or (> (line-number-at-pos) current-line) (is-current-line-comment-only-p))))))) is-current-line-docstring-p() eval((is-current-line-docstring-p) nil) eval-expression((is-current-line-docstring-p) nil) funcall-interactively(eval-expression (is-current-line-docstring-p) nil) call-interactively(eval-expression nil nil) command-execute(eval-expression) --8<---------------cut here---------------end--------------->8--- etc. I grepped both the Emacs manual and the Elisp reference for "Lisp error", but couldn't find specific info. What do the 2959 2959 mean? (I assume they are some positions in the buffer; I found out that they correspond to the beginning of the line where the error manifested itself - but what are they exactly?) I'm rather confident that the numbers in parens after function names are their arguments. OTOH, some of these lines contain forms and not functions. Why? Why is my function ("is-current-line-docstring-p") "split" into forms (save-excursion, if and let) and other functions are not? Some of the function names are clickable and some are not. Why? (I would assume that the Elisp ones are clickable and the C ones are not. Correct?) TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University