all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 19552@debbugs.gnu.org
Subject: bug#19552: 25.0.50; void-function class-slot-initarg with new EIEIO changes
Date: Mon, 12 Jan 2015 10:11:37 -0500	[thread overview]
Message-ID: <jwvvbkc2g44.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87d26k4ikb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 12 Jan 2015 14:30:28 +0800")

>>> The other is the "gh" Github-access package from Melpa: that gives "too
>>> many arguments to defclass".
>> Can you show a backtrace for that error?
> I don't know how to get a proper backtrace for compilation errors...

   (setq debug-on-error t)
   (setq byte-compile-debug t)

And then `M-x byte-compile'.

> Following any of the linked errors leads to the require statements at
> the top of the file in question, and round and round you go.

That's because the error happens while loading the required file.

> I can't actually get to a real error related to defclass. There's
> something odd about the require pattern of this package: gh-auth.el
> ends this way:

> (provide 'gh-auth)
> ;; to avoid circular dependencies...
> (require 'gh-oauth)
> ;;; gh-auth.el ends here

> I don't really understand why. It might be worth getting Yann Hodique to
> comment.

That's usually done because `gh-auth' needs to use functions from
`gh-oauth' and vice-versa, so the author moved the require after the
provide, so that when `gh-oauth' is required from `gh-auth', the
(require 'gh-auth) found in gh-oauth is just skipped (since we just
did (provide 'gh-auth)) rather than causing a recursive load of gh-auth
which would re-require gh-oauth, ...

It's usually not the best solution to recursive dependencies, but
sometimes it's a handy quick-fix, and in this case I don't think it's
the cause of the "Too many arguments to `defclass'" error.


        Stefan





  reply	other threads:[~2015-01-12 15:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-10  1:51 bug#19552: 25.0.50; void-function class-slot-initarg with new EIEIO changes Eric Abrahamsen
2015-01-10 11:33 ` Eli Zaretskii
2015-01-10 19:37   ` Glenn Morris
2015-01-10 20:06     ` Eli Zaretskii
2015-01-10 20:49       ` Eli Zaretskii
2015-01-11  2:44         ` Eric Abrahamsen
2015-01-12  5:06           ` Stefan Monnier
2015-01-12  6:30             ` Eric Abrahamsen
2015-01-12 15:11               ` Stefan Monnier [this message]
2015-01-13 15:18                 ` Stefan Monnier
2015-01-11  2:17       ` Glenn Morris
2015-01-11  3:46         ` Eli Zaretskii
2015-01-10 16:34 ` Wolfgang Jenkner
2015-01-10 17:23   ` Wolfgang Jenkner
2015-01-10 19:45     ` Glenn Morris
2015-01-10 23:15       ` Wolfgang Jenkner
2015-01-11  0:39         ` Wolfgang Jenkner
2015-01-11  2:08 ` Stefan Monnier
2015-01-11  3:25   ` Eric Abrahamsen
2015-01-12  5:05     ` Stefan Monnier
2015-01-12  6:20       ` Eric Abrahamsen
2015-01-12 15:06         ` 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=jwvvbkc2g44.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=19552@debbugs.gnu.org \
    --cc=eric@ericabrahamsen.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.