From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Need help with ad-do-it, it loops Date: Fri, 8 May 2009 22:13:06 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241813607 24935 80.91.229.12 (8 May 2009 20:13:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 May 2009 20:13:27 +0000 (UTC) Cc: =?UTF-8?Q?R=C3=A9mi_Letot?= , Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 08 22:13:17 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M2WRY-00029U-7u for ged-emacs-devel@m.gmane.org; Fri, 08 May 2009 22:13:16 +0200 Original-Received: from localhost ([127.0.0.1]:42619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2WRX-0001Ff-EI for ged-emacs-devel@m.gmane.org; Fri, 08 May 2009 16:13:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2WRT-0001Ez-Hu for emacs-devel@gnu.org; Fri, 08 May 2009 16:13:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2WRP-0001BG-My for emacs-devel@gnu.org; Fri, 08 May 2009 16:13:11 -0400 Original-Received: from [199.232.76.173] (port=37669 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2WRP-0001B4-I2 for emacs-devel@gnu.org; Fri, 08 May 2009 16:13:07 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:49915) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2WRP-0006G6-73 for emacs-devel@gnu.org; Fri, 08 May 2009 16:13:07 -0400 Original-Received: by fxm17 with SMTP id 17so1677089fxm.42 for ; Fri, 08 May 2009 13:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/dymCpB9Hqybn+WVa51rxiXr32/ieQ1v6dYRZVP3pPM=; b=pTEq+8mHL+cCviG1SbISNNJGW2zxgpy6IbLbdi1CpeUoctmW4GbPJuirjrxXp9tre+ +6pjAWXtPIVK4zZSLzjXKjUgM1Eeix77lYLjEWzkxjBxi2m+pO/tq3DmULjUCGNmZg6p lbflqX7o3nKWSQmzaOokIO3dnj+h/2Op3LlBI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=T1Fp0XM1fo1Dlo8VzmJJzITAel5hHLSxXmXsdzjyTXfVsg4S6IU2eZ4T/lqcXESnln //4euiJhlZ3Lj6c/ijVf7+ujRBVHhspgSq/EWsqSjPQtVdQNNda4IQvPnWlsCgkThOHz ImAiTL8XWCQIP6Uk99l5ENEuK7LhSTZwa3S1U= Original-Received: by 10.223.115.193 with SMTP id j1mr2416364faq.98.1241813586469; Fri, 08 May 2009 13:13:06 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110782 Archived-At: On Fri, May 8, 2009 at 9:30 PM, Stefan Monnier w= rote: >>>> I have a strange case of looping in MuMaMo/nXhtml. One user (R=C3=A9mi= ) has >>>> this problem on Debian. This happens after starting from "emacs -Q" >>>> and just loading nXhtml and pressing RET in the scratch buffer. The >>>> output from the debugger says >>> >>>> Debugger entered--Lisp error: (error "Lisp nesting exceeds >>>> `max-lisp-eval-depth'") >>>> =C2=A0 ad-Orig-syntax-ppss-flush-cache(192 192) >>>> =C2=A0 apply(ad-Orig-syntax-ppss-flush-cache 192 192) >>>> =C2=A0 ... >>>> =C2=A0 ad-Orig-syntax-ppss-flush-cache(192 192) >>>> =C2=A0 apply(ad-Orig-syntax-ppss-flush-cache 192 192) >>>> =C2=A0 syntax-ppss-flush-cache(192 192) >>>> =C2=A0 self-insert-command(1) >>>> =C2=A0 newline(nil) >>>> =C2=A0 call-interactively(newline nil nil) >>> [...] >>>> I can't understand how this can loop. Any suggestions? >>> >>> Well, since you carefully hid the answer in "...", we can't >>> really answer. > >> It just looping with the output > > So ad-Orig-syntax-ppss-flush-cache is now a function that calls > ad-Orig-syntax-ppss-flush-cache rather than being the original function > bound to syntax-ppss-flush-cache. =C2=A0This shouldn't happen. > To see it, try M-: (symbol-function 'ad-Orig-syntax-ppss-flush-cache). > > It means that it's either a bug in advice.el or that the function was > manipulated in odd ways which confused advice, or something like that. I have asked R=C3=A9mi to check this. It looks like this problem disappears when he compiles Emacs himself from CVS.