Subject: bug#9462: 24.0.50; Initial point in debugger

From: Helmut Eller <[email-masked]>
Date: Sat, 10 Sep 2011 20:13:14 +0200

* 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."