GNU bug report logs - #17952
Compatability for eieio between 24.4 and 24.3

Previous Next

Package: emacs;

Reported by: Matthew Fidler <matthew.fidler <at> gmail.com>

Date: Sun, 6 Jul 2014 04:35:01 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17952 in the body.
You can then email your comments to 17952 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17952; Package emacs. (Sun, 06 Jul 2014 04:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthew Fidler <matthew.fidler <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Jul 2014 04:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matthew Fidler <matthew.fidler <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Compatability for eieio between 24.4 and 24.3
Date: Sat, 5 Jul 2014 23:34:46 -0500
[Message part 1 (text/plain, inline)]
The object-set-name-string function of eieio has changed to
eieio-object-set-name-string, at one point my
code (ergoemacs-mode) depended on that function, so I had to use a macro to
pick the right version for different versions of emacs.

You may keep it or change it as you wish.  Today ergoemacs-mode no longer
uses this function.

Just an FYI, prompted by Stefan.

Matt
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17952; Package emacs. (Sun, 06 Jul 2014 08:50:03 GMT) Full text and rfc822 format available.

Message #8 received at 17952 <at> debbugs.gnu.org (full text, mbox):

From: David Engster <deng <at> randomsample.de>
To: Matthew Fidler <matthew.fidler <at> gmail.com>
Cc: 17952 <at> debbugs.gnu.org
Subject: Re: bug#17952: Compatability for eieio between 24.4 and 24.3
Date: Sun, 06 Jul 2014 10:49:15 +0200
Matthew Fidler writes:
> The object-set-name-string function of eieio has changed to
> eieio-object-set-name-string, at one point my code (ergoemacs-mode) depended on
> that function, so I had to use a macro to pick the right version for different
> versions of emacs. 

The usual way for renaming a function in Emacs is to mark it as
deprecated and make it an alias for the new name, and after a few more
Emacs releases remove it altogether. So if you want to stay compatible
with older Emacsen, simply continue to use `object-set-name-string' for
the time being. You will get a warning on byte-compilation, but just
ignore it (or turn off the deprecation warning if it bothers you too
much).

-David




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17952; Package emacs. (Sun, 06 Jul 2014 12:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 17952 <at> debbugs.gnu.org (full text, mbox):

From: Matthew Fidler <matthew.fidler <at> gmail.com>
To: David Engster <deng <at> randomsample.de>
Cc: 17952 <at> debbugs.gnu.org
Subject: Re: bug#17952: Compatability for eieio between 24.4 and 24.3
Date: Sun, 6 Jul 2014 07:24:43 -0500
[Message part 1 (text/plain, inline)]
Thanks David

I don't believe object-set-name-string was marked as a depreciated
function. I may have not been running against the trunk, but I believe my
compile failed instead of issued a warning.

I think the authors intent is that people access the object name with
eieio-named so using this function directly was not supported.

I have changed my code to solely use eieio-named, so compile warnings on
either 24.3 or 24.4 are not issued.

Matt
On Jul 6, 2014 3:49 AM, "David Engster" <deng <at> randomsample.de> wrote:

> Matthew Fidler writes:
> > The object-set-name-string function of eieio has changed to
> > eieio-object-set-name-string, at one point my
> code (ergoemacs-mode) depended on
> > that function, so I had to use a macro to pick the right version for
> different
> > versions of emacs.
>
> The usual way for renaming a function in Emacs is to mark it as
> deprecated and make it an alias for the new name, and after a few more
> Emacs releases remove it altogether. So if you want to stay compatible
> with older Emacsen, simply continue to use `object-set-name-string' for
> the time being. You will get a warning on byte-compilation, but just
> ignore it (or turn off the deprecation warning if it bothers you too
> much).
>
> -David
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17952; Package emacs. (Sun, 06 Jul 2014 18:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 17952 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Matthew Fidler <matthew.fidler <at> gmail.com>
Cc: 17952 <at> debbugs.gnu.org, David Engster <deng <at> randomsample.de>
Subject: Re: bug#17952: Compatability for eieio between 24.4 and 24.3
Date: Sun, 06 Jul 2014 14:01:40 -0400
emacs-24.3.92 -Q -l eieio

C-h f object-set-name-string

    object-set-name-string is an alias for `eieio-object-set-name-string'
    in `eieio.el'.

    (object-set-name-string OBJ NAME)

    This function is obsolete since 24.4;
    use `eieio-object-set-name-string' instead.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17952; Package emacs. (Sun, 06 Jul 2014 18:05:02 GMT) Full text and rfc822 format available.

Message #17 received at 17952 <at> debbugs.gnu.org (full text, mbox):

From: Matthew Fidler <matthew.fidler <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17952 <at> debbugs.gnu.org, David Engster <deng <at> randomsample.de>
Subject: Re: bug#17952: Compatability for eieio between 24.4 and 24.3
Date: Sun, 6 Jul 2014 13:03:52 -0500
[Message part 1 (text/plain, inline)]
My misunderstanding.
On Jul 6, 2014 1:01 PM, "Glenn Morris" <rgm <at> gnu.org> wrote:

>
> emacs-24.3.92 -Q -l eieio
>
> C-h f object-set-name-string
>
>     object-set-name-string is an alias for `eieio-object-set-name-string'
>     in `eieio.el'.
>
>     (object-set-name-string OBJ NAME)
>
>     This function is obsolete since 24.4;
>     use `eieio-object-set-name-string' instead.
>
[Message part 2 (text/html, inline)]

Added tag(s) notabug; removed tag(s) moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 06 Jul 2014 18:09:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17952 <at> debbugs.gnu.org and Matthew Fidler <matthew.fidler <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 06 Jul 2014 18:09:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Aug 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.