all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Serghei Iakovlev <egrep@protonmail.ch>
Cc: GNU Emacs Developers <emacs-devel@gnu.org>
Subject: Re: esup byte compile warnings
Date: Fri, 24 Jan 2020 16:55:06 -0500	[thread overview]
Message-ID: <jwviml0o73k.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <15aa1d01-dcff-34c0-0232-141edf1b3739@protonmail.ch> (Serghei Iakovlev's message of "Fri, 24 Jan 2020 20:48:00 +0000")

> There are `esup' [1] byte compile warnings I would like avoid to.
> Some of them seems trivial to me.  However, I don't quite understand
> slots related warnings.

The the slots, usually it's just that code that uses EIEIO seems to
misuse a weird feature of EIEIO, so they use the initval keyword instead
of the slot name when accessing the slot.  For example, often code will
do

    (slot-value x :file)

where the slot's name is not `:file` but `file`, so the correct usage is

    (slot-value x 'file)

This odd usage does work for historical reasons but is deprecated, hence
the warning.


        Stefan




  reply	other threads:[~2020-01-24 21:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-24 20:48 esup byte compile warnings Serghei Iakovlev
2020-01-24 21:55 ` Stefan Monnier [this message]
2020-01-29 12:56   ` Serghei Iakovlev
2020-01-29 14:32     ` Stefan Monnier
2020-01-29 14:42       ` Serghei Iakovlev

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=jwviml0o73k.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=egrep@protonmail.ch \
    --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.