From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic <philipk@posteo.net> Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: [NonGNU ELPA] Package suggestion: yeetube Date: Fri, 06 Oct 2023 08:59:51 +0000 Message-ID: <87v8bk2kjc.fsf@posteo.net> References: <87ttr67rkt.fsf@thanosapollo.com> <m1sf6qy1gi.fsf@yahoo.es> <87zg0yik4f.fsf@thanosapollo.com> <87r0mah0pg.fsf@posteo.net> <SJ0PR10MB54881427A6FF6EE4BE868542F3CBA@SJ0PR10MB5488.namprd10.prod.outlook.com> <87wmw2xs97.fsf@thanosapollo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33030"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Drew Adams <drew.adams@oracle.com>, Daniel =?utf-8?Q?Mart=C3=ADn?= <mardani29@yahoo.es>, "emacs-devel@gnu.org" <emacs-devel@gnu.org> To: Thanos Apollo <public@thanosapollo.com> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 06 11:01:04 2023 Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org> Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>) id 1qoghk-0008Ri-D7 for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Oct 2023 11:01:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <emacs-devel-bounces@gnu.org>) id 1qoggz-00039q-L9; Fri, 06 Oct 2023 05:00:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philipk@posteo.net>) id 1qoggh-00036w-Bu for emacs-devel@gnu.org; Fri, 06 Oct 2023 04:59:59 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philipk@posteo.net>) id 1qogge-00078z-5z for emacs-devel@gnu.org; Fri, 06 Oct 2023 04:59:59 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9169E240106 for <emacs-devel@gnu.org>; Fri, 6 Oct 2023 10:59:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696582792; bh=PWDfEQ1fbOY7lH/nQU8pmagEq3km5ExZnBAPTLR3KjA=; h=From:To:Cc:Subject:Autocrypt:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=R9ygK/sUCtj4lW4Q4OFzUYSfqPuhJ8xCEPswAetz2/U4i9/WBI/ssnQs2Lqa5qb/w GgX+YVz0AYaLttgWVNXjbRlz3ikeFQXHVohD1uMkeX4dfxFBt0B6oeasbDkWUOQHm8 BGJlZU3cIHZnFlZuCGP3Xi5Uu7izqbHKp3b9u09bw5wJX7a1aa88li88HghLTXjjxq 59DHXNdvnOWgSKJojFOoeGU/d1Co1ggQa1j0Y/XMM23hYSk6m+SwE3wei5Yzq8VVTA q4cp0xSQWgizqrpJ7oCP9/c/dJO3HdXzRESW4gyaDhE6zfhxptxy9KesaarnCa6AW3 wpcAz9KzgmRXQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S22S75Rjnz6twY; Fri, 6 Oct 2023 10:59:51 +0200 (CEST) In-Reply-To: <87wmw2xs97.fsf@thanosapollo.com> (Thanos Apollo's message of "Wed, 04 Oct 2023 19:26:54 +0300") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." <emacs-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/emacs-devel> List-Post: <mailto:emacs-devel@gnu.org> List-Help: <mailto:emacs-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=subscribe> Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311321 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/311321> Thanos Apollo <public@thanosapollo.com> writes: > 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...? Emacs 24.4 is the current minimum version. This is currently the oldest version that one can reasonably support without running into too many edge-cases that are beyond the scope of the library, while also being distributed in most supported, popular distributions. > 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 =E2=80=98emacs 24.4=E2=80=99 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 =E2=80=98noerror=E2=80=99= flag should > be > specified: =E2=80=98(require 'compat nil 'noerror)=E2=80=99. In the futu= re a minimal > version of Compat may be added to the Emacs core, such that the > =E2=80=98noerror=E2=80=99 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 > ... There is no need to use compat-call, if the function/macro was introduced in a more recent version than the minimum version of Emacs you wish to support. In other words, the point of `compat-call' is to ensure the compatibility version of function is used, where the signature was updated at some point (e.g. IIRC in Emacs 26.1 `assoc' gained an optional TESTFN argument), but to avoid the complexity of advising the default function with an updated signature, the API of Compat allows/requires for developers to opt-in to new signatures. > ``` -- Thanos Apollo > https://thanosapollo.com