all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] emacs-25 526d80c: Port chart.el methods to cl-generic.
       [not found] ` <E1aEi0B-0003t7-R4@vcs.savannah.gnu.org>
@ 2016-01-01 14:14   ` Stefan Monnier
  2016-01-01 16:00     ` Mark Oteiza
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2016-01-01 14:14 UTC (permalink / raw)
  To: emacs-devel; +Cc: Mark Oteiza

>     Port chart.el methods to cl-generic.

Thanks.

>     cl-call-next-method cannot be used inside EIEIO's defmethod.

I don't understand this comment: "call-next-method" doesn't seem to
appear within your patch.

>     * lisp/emacs-lisp/chart.el: Require cl-generic at compile time.

Actually, cl-generic is not a compile-time-only library: the cl-generic
macros expand to run-time calls to cl-generic functions.


        Stefan



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] emacs-25 526d80c: Port chart.el methods to cl-generic.
  2016-01-01 14:14   ` [Emacs-diffs] emacs-25 526d80c: Port chart.el methods to cl-generic Stefan Monnier
@ 2016-01-01 16:00     ` Mark Oteiza
  2016-01-02 18:10       ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Oteiza @ 2016-01-01 16:00 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs-devel

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

On Jan 1, 2016 9:14 AM, "Stefan Monnier" <monnier@iro.umontreal.ca> wrote:
> >     cl-call-next-method cannot be used inside EIEIO's defmethod.
>
> I don't understand this comment: "call-next-method" doesn't seem to
> appear within your patch.

It's the motivation for the patch. cl-call-next-method appears in two
chart-axis-draw methods.

> >     * lisp/emacs-lisp/chart.el: Require cl-generic at compile time.
>
> Actually, cl-generic is not a compile-time-only library: the cl-generic
> macros expand to run-time calls to cl-generic functions.

I see. Alternatively, both cl-defmethod and the function to which
it expands are autoloaded so requiring cl-generic isn't even
necessary.

Lots of libraries in Emacs using generics leave out the require. What do
you think I should do?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] emacs-25 526d80c: Port chart.el methods to cl-generic.
  2016-01-01 16:00     ` Mark Oteiza
@ 2016-01-02 18:10       ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2016-01-02 18:10 UTC (permalink / raw)
  To: Mark Oteiza; +Cc: Emacs-devel

> Lots of libraries in Emacs using generics leave out the require. What do
> you think I should do?

For bundled packages, cl-generic is preloaded, so the `require' is
unneeded tho harmless.  For unbundled packages relying on the
cl-generic.el compatibility library (distributed via GNU ELPA), both the
macros and the functions are supposedly all autoloaded, so again the
require should be unneeded tho harmless.

If the cl-generic.el compatibility library is installed by hand it's likely
that the autoloads aren't properly setup, in which case the `require'
would be needed, both at compile-time and at run-time.


        Stefan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-02 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20151231183107.14911.64511@vcs.savannah.gnu.org>
     [not found] ` <E1aEi0B-0003t7-R4@vcs.savannah.gnu.org>
2016-01-01 14:14   ` [Emacs-diffs] emacs-25 526d80c: Port chart.el methods to cl-generic Stefan Monnier
2016-01-01 16:00     ` Mark Oteiza
2016-01-02 18:10       ` Stefan Monnier

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.