bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Monnier
Subject: bug#12500: 24.2.50; (search-failed "\n debug(") in debugger
Date: Thu, 06 Dec 2012 23:21:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]