From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: eval-buffer with debug-on-error t
Date: Sat, 09 Jul 2005 00:21:14 -0400 [thread overview]
Message-ID: <E1Dr6q2-0007bx-3W@fencepost.gnu.org> (raw)
In-Reply-To: <42CD314E.7050709@student.lu.se> (message from Lennart Borgman on Thu, 07 Jul 2005 15:42:38 +0200)
I have debug-on-error set to t. When I do an eval-buffer and there is an
undefined function:
(this-is-no-fun)
I get the error "Wrong type argument: stringp, nul
Does this fix it? (I installed a more elaborate patch.)
*** debug.el 05 Jul 2005 00:45:47 -0400 1.90
--- debug.el 09 Jul 2005 00:05:50 -0400
***************
*** 315,322 ****
(while (re-search-forward "^ eval-buffer(" nil t)
(end-of-line)
(insert (format "\n ;;; Reading at buffer position %d"
! (with-current-buffer (nth 2 (backtrace-frame (debugger-frame-number)))
! (point))))))
(debugger-make-xrefs))
(defun debugger-make-xrefs (&optional buffer)
--- 315,325 ----
(while (re-search-forward "^ eval-buffer(" nil t)
(end-of-line)
(insert (format "\n ;;; Reading at buffer position %d"
! (with-current-buffer
! (or (nth 2 (backtrace-frame (debugger-frame-number)))
! debugger-old-buffer)
! (point))))
! ))
(debugger-make-xrefs))
(defun debugger-make-xrefs (&optional buffer)
next prev parent reply other threads:[~2005-07-09 4:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-07 13:42 eval-buffer with debug-on-error t Lennart Borgman
2005-07-09 4:21 ` Richard M. Stallman [this message]
2005-07-09 10:23 ` Johan Bockgård
2005-07-10 5:19 ` Richard M. Stallman
2005-07-09 10:41 ` Lennart Borgman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Dr6q2-0007bx-3W@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).