[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25294: 26.0.50; Allow more catch-all values for cl-defmethod's &cont

From: Eric Abrahamsen
Subject: bug#25294: 26.0.50; Allow more catch-all values for cl-defmethod's &context plus major-mode specializer
Date: Wed, 13 Dec 2017 16:06:39 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Noam Postavsky <address@hidden> writes:

> Eric Abrahamsen <address@hidden> writes:
>> +Generic functions provide a new argument-list keyword,
> The way you phrased this might lead me to think that the &context
> keyword should go in the cl-defgeneric form (maybe it's not so bad when
> seeing in context under cl-defmethod, in patch form it's a bit
> disconnected).

Maybe so, yes. I'll look at it in context and see if I can't make that a
little clearer.

>> address@hidden&context}, which can be used to introduce extra specializers
>> +that test the general environment in which the method is run.  This
>> +keyword should appear after the list of required arguments, but before
>> +any @code{&rest} or @code{&optional} keywords.
> I wonder if it would be clearer to add this to the @defmac header?
>     @defmac cl-defmethod name [qualifier] arguments [&context (expr 
> spec)@dots{}] &rest [docstring] body
> Hmm, maybe that ends up being too long.

I never found those things very helpful, and that does look a little long...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]