GNU bug report logs - #9462
24.0.50; Initial point in debugger

Previous Next

Package: emacs;

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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Helmut Eller <eller.helmut <at> gmail.com>
Subject: bug#9462: closed (Re: bug#9462: 24.0.50; Initial point in debugger)
Date: Tue, 13 Sep 2011 21:09:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#9462: 24.0.50; Initial point in debugger

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 9462 <at> debbugs.gnu.org.

-- 
9462: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9462
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 9462-done <at> debbugs.gnu.org
Subject: Re: bug#9462: 24.0.50; Initial point in debugger
Date: Tue, 13 Sep 2011 17:04:22 -0400
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".

[Message part 3 (message/rfc822, inline)]
From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Initial point in debugger
Date: Thu, 08 Sep 2011 11:03:33 +0200
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''



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.