[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Smarter M-x that filters on major-mode
From: |
Lars Ingebrigtsen |
Subject: |
Re: Smarter M-x that filters on major-mode |
Date: |
Sun, 14 Feb 2021 19:53:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
> Yes, but a lexical-binding cookie makes no difference in Emacs 23,
> whereas (interactive nil foo-mode) would be an error.
The code you load in Emacs 23 that's written for lexical binding often
won't work, though. (I.e., if the code uses closures.) So it's not
backwards compatible, just as code that uses "new" macros like
`with-current-buffer' isn't.
Emacs Lisp develops, and newer versions aren't backwards-compatible.
That's just how it is. If you're maintaining code that's out of tree,
you have to avoid using the newest features. There's nothing special
about the new `interactive' signature in that respect. (And as Stefan K
shows, if you still want to use it in an in/out-of-tree package, he's
written a compat macro for that.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Smarter M-x that filters on major-mode, (continued)
- Re: Smarter M-x that filters on major-mode, Stefan Kangas, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Alan Mackenzie, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Stefan Kangas, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Alan Mackenzie, 2021/02/15
- Re: Smarter M-x that filters on major-mode, Stefan Kangas, 2021/02/16
- Re: Smarter M-x that filters on major-mode, Eli Zaretskii, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Basil L. Contovounesios, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Basil L. Contovounesios, 2021/02/14
- Re: Smarter M-x that filters on major-mode,
Lars Ingebrigtsen <=
- Re: Smarter M-x that filters on major-mode, Basil L. Contovounesios, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/14
- RE: [External] : Re: Smarter M-x that filters on major-mode, Drew Adams, 2021/02/15
- Re: Smarter M-x that filters on major-mode, Eric S Fraga, 2021/02/15
- Re: Smarter M-x that filters on major-mode, Óscar Fuentes, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Eli Zaretskii, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Juri Linkov, 2021/02/14
- Re: Smarter M-x that filters on major-mode, Lars Ingebrigtsen, 2021/02/14
- RE: [External] : Re: Smarter M-x that filters on major-mode, Drew Adams, 2021/02/14
- RE: [External] : Re: Smarter M-x that filters on major-mode, Drew Adams, 2021/02/14