GNU bug report logs -
#9462
24.0.50; Initial point in debugger
Previous Next
Reported by: Helmut Eller <eller.helmut <at> gmail.com>
Date: Thu, 8 Sep 2011 09:08:02 UTC
Severity: normal
Merged with 6209
Found in versions 23.2, 24.0.50
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9462 in the body.
You can then email your comments to 9462 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9462
; Package
emacs
.
(Thu, 08 Sep 2011 09:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 08 Sep 2011 09:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When entering the debugger, point is placed at seemingly random
positions. E.g. executing this file
(progn
(defun foo (n)
(cond ((zerop n) (debug))
(t (foo (1- n)))))
(foo 100))
with emacs -Q -l foo.el opens a *Backtrace* buffer but the cursor is
somewhere near the end of the buffer. When debugging other code, it's
often somewhere in the middle sometimes at the beginning.
In the old days, point was consistently placed at the first line of the
backtrace (top-of-stack). That was more useful: it was easier to see
the error message; using d was more convenient as the first line is
almost always the most interesting one.
In GNU Emacs 24.0.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
of 2011-09-05 on ix
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure '--enable-asserts' '--enable-checking' '--with-gif=no' '--with-gnutls=no' 'CFLAGS=-g3 -O0''
Merged 6209 9462.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 08 Sep 2011 17:04:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#9462
; Package
emacs
.
(Sat, 10 Sep 2011 18:18:02 GMT)
Full text and
rfc822 format available.
Message #10 received at submit <at> debbugs.gnu.org (full text, mbox):
* Helmut Eller [2011-09-08 09:03] writes:
> When entering the debugger, point is placed at seemingly random
> positions.
I think this would fix the problem:
=== modified file 'lisp/emacs-lisp/debug.el'
--- lisp/emacs-lisp/debug.el 2011-08-22 21:16:46 +0000
+++ lisp/emacs-lisp/debug.el 2011-09-10 18:10:29 +0000
@@ -336,7 +336,8 @@
(with-current-buffer (car tem)
(point))))
(pop tem))))
- (debugger-make-xrefs))
+ (save-excursion
+ (debugger-make-xrefs)))
(defun debugger-make-xrefs (&optional buffer)
"Attach cross-references to function names in the `*Backtrace*' buffer."
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Tue, 13 Sep 2011 21:09:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 13 Sep 2011 21:09:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 9462-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.1
Helmut Eller wrote:
> - (debugger-make-xrefs))
> + (save-excursion
> + (debugger-make-xrefs)))
Thanks for the diagnosis, I installed a similar fix.
This looks like more fallout from "save-excursion + set-buffer ->
with-current-buffer".
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Tue, 13 Sep 2011 21:09:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Uday Reddy" <reddyuday <at> blueyonder.co.uk>
:
bug acknowledged by developer.
(Tue, 13 Sep 2011 21:09:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 12 Oct 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.