emacs-devel
[Top][All Lists]
Advanced

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

Re: [External] : Re: [NonGNU ELPA] Package suggestion: yeetube


From: Thanos Apollo
Subject: Re: [External] : Re: [NonGNU ELPA] Package suggestion: yeetube
Date: Wed, 04 Oct 2023 19:26:54 +0300
User-agent: mu4e 1.10.7; emacs 29.1.50


Drew Adams <drew.adams@oracle.com> writes:

How old?  Emacs 20?  What minimal version
does that package itself require?  Does
it, itself, need some compat support...?

Philip will give you a more concrete answer, but according to the documentation:

```
Requires: ((emacs "24.4") (compat "29.1.4.2"))

There is no need to depend on ‘emacs 24.4’ specifically. One can choose any newer version, if features not provided by Compat necessitate
it, for example bug fixes or UI improvements.

  In any file where compatibility forms are used, a

    (require 'compat)

should be added early on. In packages which are part of Emacs itself and which want to take advantage of Compat, the ‘noerror’ flag should be specified: ‘(require 'compat nil 'noerror)’. In the future a minimal
version of Compat may be added to the Emacs core, such that the
‘noerror’ flag will not be necessary anymore.
```

Not sure, but maybe something like this is a valid use case?

``` emacs-lisp
(compat-call defvar-keymap yeetube-mode-map
             :doc "Keymap for yeetube commands"
             "RET" #'yeetube-play
            ...
```

--
Thanos Apollo
https://thanosapollo.com



reply via email to

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