all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: strange error from global-ede-mode
Date: Fri, 11 Sep 2015 14:47:48 -0500	[thread overview]
Message-ID: <86vbbgzqjf.fsf@stephe-leake.org> (raw)
In-Reply-To: <86zj0szydf.fsf@stephe-leake.org> (Stephen Leake's message of "Fri, 11 Sep 2015 11:58:36 -0500")

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> Enabling debug-on-error does not catch the error.
>>
>> Have you tried debug-on-signal?
>
> No help.
>
>> If that still doesn't help, try running in GDB, then putting a break
>> point on maybe_call_debugger and then look at "xbacktrace".
>
> Also no help.
>
> I traced thru x-create-frame in gdb; the error occurs in
> initialize_frame_menubar.
>
> I get the same error message by activating the menubar with F10 in the
> files.el buffer in the initial fraem. But debug-on-error is still no
> help. So I'm off to study the menu init code; I'm guessing it's
> something in the EDE "Development" menu.

Found the problem; it's from ede-project-forms-menu, operating on the
EDE Emacs project.

The code walks up the class hierarchy, collecting the class default
value from the menu slot at each level.

To reproduce the error from Emacs master -Q:

(require 'ede/emacs)
(setq prj
    (ede-emacs-project
    :name "Emacs"
    :version "25.0.50"
    :directory "/Projects/emacs/master"
    :file "/Projects/emacs/master/src/emacs.c"))

(setq class (eieio-object-class prj))
(oref-default class menu) ;; no error
(setq parent (eieio-class-parent class))
(oref-default parent menu) ;; error

The error is from:

    (cl-check-type obj (or eieio-object class))

I'm not familiar enough with cl stuff to figure out what's wrong here.

-- 
-- Stephe



  reply	other threads:[~2015-09-11 19:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10 19:52 strange error from global-ede-mode Stephen Leake
2015-09-10 23:47 ` Stefan Monnier
2015-09-11 16:58   ` Stephen Leake
2015-09-11 19:47     ` Stephen Leake [this message]
2015-09-12  0:26       ` Stefan Monnier
2015-09-13 13:45         ` Stephen Leake
2015-09-15 17:23           ` Stefan Monnier
2015-09-12  0:27     ` Stefan Monnier

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=86vbbgzqjf.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=emacs-devel@gnu.org \
    /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.