all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: 19564@debbugs.gnu.org
Subject: bug#19564: 24.4; eieio backward compatibility
Date: Tue, 13 Jan 2015 11:37:41 -0500	[thread overview]
Message-ID: <jwvk30q66su.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87oaq2x3gb.fsf@gmail.com> (Thierry Volpiatto's message of "Tue,  13 Jan 2015 13:36:20 +0100")

>> That doesn't explain to me *why* it needs it.
>> Why does Helm need to know the initarg of a slot?
> Helm needs to know the value of each slot in class to convert it to
> alist.

But the initarg is not the slot, so that doesn't explain why you need
the initargs?

> But well I don't see the problem, class-slot-initarg exists and I just
> want to use it, why should I avoid using it ?

As exlained in bug#19552, EIEIO's use of namespaces and
internal/external definitions was terribly messy (and it's still far
from ideal), so you were left having to guess whether you were allowed
to use something.

> Is its use prohibited ? :-)

Well since it's not part of CLOS, I think it should be considered
internal to EIEIO's implementation, and hence I renamed it accordingly
with the "eieio--" prefix (and slightly changed its calling convention).

> I could get rid of class-slot-initarg and now the bug is fixed in helm.

Could you give me a quick description of what you replaced it with?

> The problem is not solved though if some old external program use this.

Indeed.  I can add an obsolete backward-compatible definition to handle
that, but I'd first like to better understand why it was used: maybe it
shouldn't be declared internal after all.

> There is also a problem now with compiled files, emacs-24.4 compiled
> files are not compatibles with emacs-25 compiled files and vice-versa.

Files compiled with Emacs-25 are indeed not expected to work on
Emacs-24, but the other way should work (tho some of the changes in
EIEIO aren't backward compatible at their core, but so far those seemed
not to affect existing .elc files), so if it doesn't please M-x
report-emacs-bug, so we can see if/how we can fix it.


        Stefan





  parent reply	other threads:[~2015-01-13 16:37 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11  8:03 bug#19564: 24.4; eieio backward compatibility Thierry Volpiatto
2015-01-12  5:08 ` Stefan Monnier
2015-01-12  5:41   ` Thierry Volpiatto
2015-01-12  5:36 ` Stefan Monnier
2015-01-12  5:58   ` Thierry Volpiatto
2015-01-12  7:03     ` Dmitry Gutov
2015-01-12  9:59       ` Thierry Volpiatto
2015-01-12 15:02     ` Stefan Monnier
2015-01-13  8:55       ` Thierry Volpiatto
2015-01-13 12:36       ` Thierry Volpiatto
2015-01-13 14:30         ` Ted Zlatanov
2015-01-13 14:50           ` Thierry Volpiatto
2015-01-13 14:54             ` Dmitry Gutov
2015-01-13 15:13               ` Thierry Volpiatto
2015-01-13 15:01             ` Ted Zlatanov
2015-01-13 15:27               ` Ivan Shmakov
2015-01-13 16:37         ` Stefan Monnier [this message]
2015-01-13 18:06           ` Thierry Volpiatto
2015-01-13 19:52             ` Stefan Monnier
2015-01-14  6:06               ` Thierry Volpiatto
2015-01-14 18:04                 ` Stefan Monnier
2015-01-15  5:25                   ` Thierry Volpiatto
2015-01-15 15:09                     ` Stefan Monnier
2015-01-14 18:05                 ` Stefan Monnier
2015-01-15  5:22                   ` Thierry Volpiatto
2015-01-15 15:07                     ` Stefan Monnier
2015-01-14 19:01               ` Stefan Monnier
2015-01-19  8:48           ` Thierry Volpiatto

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=jwvk30q66su.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=19564@debbugs.gnu.org \
    --cc=thierry.volpiatto@gmail.com \
    /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.