From: Lennart Borgman <lennart.borgman@gmail.com>
To: 6435@debbugs.gnu.org
Subject: bug#6435: Go to eval-buffer: Reading at buffer position
Date: Wed, 16 Jun 2010 04:49:21 +0200 [thread overview]
Message-ID: <AANLkTikWzwN_j1cU4GJknvr-Ke6suoN75h-ONyE5UpD-@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
A small patch I have forgotten that lets you more conveniently go to
the position where eval-buffer finds an error.
[-- Attachment #2: debug-eval-goto-0.diff --]
[-- Type: text/x-patch, Size: 1285 bytes --]
=== modified file 'lisp/emacs-lisp/debug.el'
--- trunk/lisp/emacs-lisp/debug.el 2010-01-13 08:35:10 +0000
+++ patched/lisp/emacs-lisp/debug.el 2010-06-16 02:44:54 +0000
@@ -317,12 +317,21 @@
(while (and tem
(re-search-forward "^ eval-\\(buffer\\|region\\)(" nil t))
(end-of-line)
- (insert (format " ; Reading at buffer position %d"
+ (insert " ; Reading at buffer position ")
+ (let* ((buf (car tem))
;; This will get the wrong result
;; if there are two nested eval-region calls
;; for the same buffer. That's not a very useful case.
- (with-current-buffer (car tem)
- (point))))
+ (pos (with-current-buffer buf (point))))
+ (insert-text-button (format "%d" pos)
+ 'buf buf
+ 'pos pos
+ 'action (lambda (btn)
+ (interactive)
+ (let ((buf (button-get btn 'buf))
+ (pos (button-get btn 'pos)))
+ (switch-to-buffer-other-window buf)
+ (goto-char pos)))))
(pop tem))))
(debugger-make-xrefs))
next reply other threads:[~2010-06-16 2:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 2:49 Lennart Borgman [this message]
2018-08-03 19:15 ` bug#6435: Go to eval-buffer: Reading at buffer position Gemini Lasswell
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=AANLkTikWzwN_j1cU4GJknvr-Ke6suoN75h-ONyE5UpD-@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=6435@debbugs.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).