GNU bug report logs - #12500
24.2.50; (search-failed "\n debug(") in debugger

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Mon, 24 Sep 2012 06:37:02 UTC

Severity: normal

Found in version 24.2.50

Done: Marcin Borkowski <mbork <at> mbork.pl>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 12500 <at> debbugs.gnu.org
Subject: bug#12500: 24.2.50; (search-failed "\n  debug(") in debugger
Date: Thu, 06 Dec 2012 23:21:34 -0500
> When stepping, the (search-forward "\n  debug(") in
> debugger-setup-buffer sometimes fails.  To reproduce this 

The patch below seems to fix the problem in your test case; can you
confirm that it fixes your problem?


        Stefan


=== modified file 'lisp/emacs-lisp/debug.el'
--- lisp/emacs-lisp/debug.el	2012-11-13 03:06:56 +0000
+++ lisp/emacs-lisp/debug.el	2012-12-07 04:19:04 +0000
@@ -333,7 +333,7 @@
   (goto-char (point-min))
   (delete-region (point)
 		 (progn
-		   (search-forward "\n  debug(")
+		   (re-search-forward "\n. debug(")
 		   (forward-line (if (eq (car args) 'debug)
                                      ;; Remove debug--implement-debug-on-entry
                                      ;; and the advice's `apply' frame.





This bug report was last modified 9 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.