help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: "fall-through" generic function args plus &context


From: Stefan Monnier
Subject: Re: "fall-through" generic function args plus &context
Date: Mon, 26 Dec 2016 20:27:50 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> I need a catch-all method, for default behavior when we're in other
> modes that aren't targeted by an existing method.
>
> I've tried things like:
>
> (&context _major-mode)
> (&context (major-mode t))
> (&context (major-mode nil))
> (&context (major-mode (eql _nuthin))

You could try

    ()
or
    (&context (major-mode fundamental-mode))


-- Stefan




reply via email to

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