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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12500 in the body.
You can then email your comments to 12500 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12500; Package emacs. (Mon, 24 Sep 2012 06:37: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. (Mon, 24 Sep 2012 06:37:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50; (search-failed "\n  debug(") in debugger
Date: Mon, 24 Sep 2012 08:34:29 +0200
When stepping, the (search-forward "\n  debug(") in
debugger-setup-buffer sometimes fails.  To reproduce this 

1. eval this

  (progn
   (defun foo ()
     (debug nil 1)
     (debug nil 2))
   (setq toggle-debug-on-error t)
   (foo))

2. The debugger pops up with the message:
   Debugger entered: (1)
     foo()

3. At the line with foo(), press d (i.e. debugger-step-through).

4. Now the buffer starts with:
   Debugger entered--beginning evaluation of function call form:
   * (debug nil 2)

5. Now press c (i.e. debugger-continue) on the line with the *.

6. The debugger enters recursively with the error:
   Debugger entered--Lisp error: (search-failed "\n debug(")



In GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2012-09-22 on ix
Bzr revision: 110128 cyd <at> gnu.org-20120922032937-yf6yua64ed45tzap
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Configured using:
 `configure '--with-jpeg=no' '--with-gif=no' '--with-tiff=no''





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12500; Package emacs. (Fri, 07 Dec 2012 04:22:01 GMT) Full text and rfc822 format available.

Message #8 received at 12500 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 12500 <at> debbugs.gnu.org
Subject: Re: 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.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12500; Package emacs. (Fri, 29 Jan 2016 18:21:02 GMT) Full text and rfc822 format available.

Message #11 received at 12500 <at> debbugs.gnu.org (full text, mbox):

From: Marcin Borkowski <mbork <at> mbork.pl>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12500 <at> debbugs.gnu.org, Helmut Eller <eller.helmut <at> gmail.com>
Subject: Re: bug#12500: 24.2.50; (search-failed "\n  debug(") in debugger
Date: Fri, 29 Jan 2016 19:20:29 +0100
On 2012-12-06, at 23:21, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:

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

Just wondering: should this bug be closed?  It's apparently been fixed
more than 3 years ago, and there are no further reports.  What is the
right course of action?

Best,

-- 
Marcin Borkowski
http://mbork.pl/en




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12500; Package emacs. (Fri, 29 Jan 2016 18:38:02 GMT) Full text and rfc822 format available.

Message #14 received at 12500 <at> debbugs.gnu.org (full text, mbox):

From: Helmut Eller <eller.helmut <at> gmail.com>
To: Marcin Borkowski <mbork <at> mbork.pl>
Cc: 12500 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#12500: 24.2.50; (search-failed "\n  debug(") in debugger
Date: Fri, 29 Jan 2016 19:37:31 +0100
On Fri, Jan 29 2016, Marcin Borkowski wrote:

>> The patch below seems to fix the problem in your test case; can you
>> confirm that it fixes your problem?
>
> Just wondering: should this bug be closed?

Closing it is ok with me.

Helmut




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12500; Package emacs. (Fri, 29 Jan 2016 19:12:02 GMT) Full text and rfc822 format available.

Message #17 received at 12500 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Marcin Borkowski <mbork <at> mbork.pl>
Cc: 12500 <at> debbugs.gnu.org, eller.helmut <at> gmail.com, monnier <at> iro.umontreal.ca
Subject: Re: bug#12500: 24.2.50; (search-failed "\n  debug(") in debugger
Date: Fri, 29 Jan 2016 21:10:49 +0200
> From: Marcin Borkowski <mbork <at> mbork.pl>
> Date: Fri, 29 Jan 2016 19:20:29 +0100
> Cc: 12500 <at> debbugs.gnu.org, Helmut Eller <eller.helmut <at> gmail.com>
> 
> On 2012-12-06, at 23:21, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
> 
> >> 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?
> 
> Just wondering: should this bug be closed?

Yes, please.

Thanks.




Reply sent to Marcin Borkowski <mbork <at> mbork.pl>:
You have taken responsibility. (Fri, 29 Jan 2016 19:13:02 GMT) Full text and rfc822 format available.

Notification sent to Helmut Eller <eller.helmut <at> gmail.com>:
bug acknowledged by developer. (Fri, 29 Jan 2016 19:13:02 GMT) Full text and rfc822 format available.

Message #22 received at 12500-done <at> debbugs.gnu.org (full text, mbox):

From: Marcin Borkowski <mbork <at> mbork.pl>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 12500-done <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#12500: 24.2.50; (search-failed "\n  debug(") in debugger
Date: Fri, 29 Jan 2016 20:12:40 +0100
On 2016-01-29, at 19:37, Helmut Eller <eller.helmut <at> gmail.com> wrote:

> On Fri, Jan 29 2016, Marcin Borkowski wrote:
>
>>> The patch below seems to fix the problem in your test case; can you
>>> confirm that it fixes your problem?
>>
>> Just wondering: should this bug be closed?
>
> Closing it is ok with me.

As you wish. ;-)

> Helmut

Thanks, and best regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 Feb 2016 12:24:03 GMT) Full text and rfc822 format available.

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.