all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Debugger output: where to look for its explanation?
Date: Sun, 29 Mar 2015 00:03:55 +0100	[thread overview]
Message-ID: <874mp4iv1g.fsf@wmi.amu.edu.pl> (raw)

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



             reply	other threads:[~2015-03-28 23:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-28 23:03 Marcin Borkowski [this message]
2015-03-29  1:01 ` Debugger output: where to look for its explanation? Drew Adams
2015-03-29 13:03   ` Marcin Borkowski
2015-03-30  7:00 ` Nicolas Richard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874mp4iv1g.fsf@wmi.amu.edu.pl \
    --to=mbork@wmi.amu.edu.pl \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.