unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthew Fidler <matthew.fidler@gmail.com>
To: David Engster <deng@randomsample.de>
Cc: 17952@debbugs.gnu.org
Subject: bug#17952: Compatability for eieio between 24.4 and 24.3
Date: Sun, 6 Jul 2014 07:24:43 -0500	[thread overview]
Message-ID: <CAOmN8O5g-ZMAUOWffiqM7L0qqu=UcSw1VqCUTJiE4N_RLeYTEw@mail.gmail.com> (raw)
In-Reply-To: <874myuj2ic.fsf@engster.org>

[-- Attachment #1: Type: text/plain, Size: 1255 bytes --]

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@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
>

[-- Attachment #2: Type: text/html, Size: 1639 bytes --]

  reply	other threads:[~2014-07-06 12:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06  4:34 bug#17952: Compatability for eieio between 24.4 and 24.3 Matthew Fidler
2014-07-06  8:49 ` David Engster
2014-07-06 12:24   ` Matthew Fidler [this message]
2014-07-06 18:01     ` Glenn Morris
2014-07-06 18:03       ` Matthew Fidler

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAOmN8O5g-ZMAUOWffiqM7L0qqu=UcSw1VqCUTJiE4N_RLeYTEw@mail.gmail.com' \
    --to=matthew.fidler@gmail.com \
    --cc=17952@debbugs.gnu.org \
    --cc=deng@randomsample.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).