all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Alex Ott" <alexott@gmail.com>, Lluís <xscript@gmx.net>,
	"andres.ramirez" <andres.ramirez@kipuamutay.com>,
	"CEDET Devel" <cedet-devel@lists.sourceforge.net>,
	emacs-devel@gnu.org
Subject: Re: cedet-called-interactively-p hangs on emacs 24.3.50.1
Date: Thu, 20 Dec 2012 15:47:05 +0100	[thread overview]
Message-ID: <m3zk18wzkm.fsf@chopper.vpn.verona.se> (raw)
In-Reply-To: <jwv8v8sssww.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 20 Dec 2012 09:25:37 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> 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



  reply	other threads:[~2012-12-20 14:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87obhsxz7s.fsf@fimbulvetr.bsc.es>
     [not found] ` <CALV1_=+T-2tJbyFQn-9o2LtoazQRk9p_5K5BY=4CRkXdULYFsA@mail.gmail.com>
     [not found]   ` <87623x1yv8.wl%andres.ramirez@kipuamutay.com>
2012-12-20 14:06     ` cedet-called-interactively-p hangs on emacs 24.3.50.1 Lluís
2012-12-20 14:25       ` Stefan Monnier
2012-12-20 14:47         ` joakim [this message]
2012-12-20 14:58           ` Lluís
2012-12-20 16:03           ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3zk18wzkm.fsf@chopper.vpn.verona.se \
    --to=joakim@verona.se \
    --cc=alexott@gmail.com \
    --cc=andres.ramirez@kipuamutay.com \
    --cc=cedet-devel@lists.sourceforge.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=xscript@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.