[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "fall-through" generic function args plus &context
From: |
Eric Abrahamsen |
Subject: |
Re: "fall-through" generic function args plus &context |
Date: |
Thu, 29 Dec 2016 11:04:45 -0800 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Perhaps fundamental-mode should work, but I intuitively tried (&context
>> (major-mode nil)) and (&context (major-mode t)).
>
> By "should" I meant that it's a bug that neither works.
Right, I got that. I'll open a bug report.
>> Also, so far as I can tell, the correct function signature for the
>> defgeneric should be (&context (major-mode t)), is that correct?
>> At least, that didn't raise any errors.
>
> cl-defgeneric doesn't actually pay attention to the signature you provide.
Heartbreaking!
Thanks,
Eric
- "fall-through" generic function args plus &context, Eric Abrahamsen, 2016/12/26
- Re: "fall-through" generic function args plus &context, Eric Abrahamsen, 2016/12/26
- Re: "fall-through" generic function args plus &context, Stefan Monnier, 2016/12/27
- Re: "fall-through" generic function args plus &context, Eric Abrahamsen, 2016/12/27
- Re: "fall-through" generic function args plus &context, Stefan Monnier, 2016/12/28
- Re: "fall-through" generic function args plus &context, Eric Abrahamsen, 2016/12/29
- Re: "fall-through" generic function args plus &context, Stefan Monnier, 2016/12/29
- Re: "fall-through" generic function args plus &context,
Eric Abrahamsen <=
- Re: "fall-through" generic function args plus &context, Stefan Monnier, 2016/12/30
Re: "fall-through" generic function args plus &context, Stefan Monnier, 2016/12/26