From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel,gmane.emacs.cedet Subject: Re: cedet-called-interactively-p hangs on emacs 24.3.50.1 Date: Thu, 20 Dec 2012 15:47:05 +0100 Message-ID: References: <87obhsxz7s.fsf@fimbulvetr.bsc.es> <87623x1yv8.wl%andres.ramirez@kipuamutay.com> <87bodou8c3.fsf_-_@fimbulvetr.bsc.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356014860 29273 80.91.229.3 (20 Dec 2012 14:47:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Dec 2012 14:47:40 +0000 (UTC) Cc: Alex Ott , =?iso-8859-1?Q?Llu=EDs?= , "andres.ramirez" , CEDET Devel , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 20 15:47:53 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TlhPc-0000CG-DR for ged-emacs-devel@m.gmane.org; Thu, 20 Dec 2012 15:47:52 +0100 Original-Received: from localhost ([::1]:55107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlhPO-0005jK-Mn for ged-emacs-devel@m.gmane.org; Thu, 20 Dec 2012 09:47:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlhPH-0005iB-8i for emacs-devel@gnu.org; Thu, 20 Dec 2012 09:47:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlhPB-0002cK-Sx for emacs-devel@gnu.org; Thu, 20 Dec 2012 09:47:31 -0500 Original-Received: from mx2.bahnhof.se ([213.80.101.12]:51376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlhPB-0002c2-MY for emacs-devel@gnu.org; Thu, 20 Dec 2012 09:47:25 -0500 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx2-reinject (Postfix) with ESMTP id 74C5FD4C98; Thu, 20 Dec 2012 15:47:23 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF4) Original-Received: from mf4.bahnhof.se ([127.0.0.1]) by localhost (mf4.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uM0ZhHIT5dNS; Thu, 20 Dec 2012 15:47:22 +0100 (CET) Original-Received: from mta.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf4.bahnhof.se (Postfix) with ESMTP id 7F493E43457; Thu, 20 Dec 2012 15:47:21 +0100 (CET) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id 2C9C04E0D59; Thu, 20 Dec 2012 14:47:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AASY0z8x5g29; Thu, 20 Dec 2012 15:47:06 +0100 (CET) Original-Received: from chopper.vpn.verona.se (unknown [192.168.201.18]) by mta.verona.se (Postfix) with ESMTP id 298674E0CEC; Thu, 20 Dec 2012 15:47:06 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Thu, 20 Dec 2012 09:25:37 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 213.80.101.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155686 gmane.emacs.cedet:6218 Archived-At: Stefan Monnier writes: >> Emacs 24.2.1 with the same CEDET version was working properly. > > Please make it a bug-report, and include a backtrace (obtained with > "Options => Enter Debugger on Quit/C-g", assuming that works). > > > Stefan > I tried to make this a bug report, but it doesnt seem to have shown up yet, or somehing. I have the exact same issue and I think I now understand the problem. For an ugly fix, try this: (defmacro internal--called-interactively-p--get-frame (n) ;; `sym' will hold a global variable, which will be used kind of like C's ;; "static" variables. (let ((sym (make-symbol "base-index"))) `(progn (defvar ,sym (let ((i 1)) (while (not (or (eq (nth 1 (backtrace-frame i)) 'called-interactively-p) (eq (nth 1 (backtrace-frame i)) 'cedet-called-interactively-p))) (setq i (1+ i))) i)) ;; (unless (eq (nth 1 (backtrace-frame ,sym)) 'called-interactively-p) ;; (error "called-interactively-p: %s is out-of-sync!" ,sym)) (backtrace-frame (+ ,sym ,n))))) so, the problem seems to be a change in emacs core for called-interactively-p. It wont complete if one alias the definition of called-interactively-p as Cedet does. So the ugly test fix is to check for this particular alias. Obviously a correct fix needs to be made. -- Joakim Verona