From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iOYfMFNQZGGQQQAAgWs5BA (envelope-from ) for ; Mon, 11 Oct 2021 16:55:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aLrqKVNQZGEDAgAAbx9fmQ (envelope-from ) for ; Mon, 11 Oct 2021 14:55:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 335BD1A07E for ; Mon, 11 Oct 2021 16:55:15 +0200 (CEST) Received: from localhost ([::1]:54632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZwht-0003nj-3K for larch@yhetil.org; Mon, 11 Oct 2021 10:55:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZwgu-0003nI-Vu for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 10:54:12 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:33391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZwgt-0006Bd-Fh for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 10:54:12 -0400 Received: by mail-pf1-x433.google.com with SMTP id h125so5072311pfe.0 for ; Mon, 11 Oct 2021 07:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:references:user-agent:in-reply-to:message-id :mime-version; bh=Bem0WcFFQJmVr83/kfFe4sVXiyqwPpAmd9A0PQivkmQ=; b=GkleCVQL9Iwmg56GRD1Q/wFVGxRM0S8RvCkLn5H+CT/C6hYnL4NOktNaS0C+c6abVl 5Im4BsZnTiVlmlAyR/kqdQfCHyMElYzjSY0iU0Lia5Dw7XKIQPam0ZaZtmjv5DSRSGRG Ascv3DUjbA48Q8VjnpW9j2jM1ICdgfJI8D78buL4AXMQJYji0a7Zk22etXIJEKOkOgAm 2EJollTkflB/K6KGW9VMCPzMEXFfu2GWNDahDE55LriH+16c29IdGt6wHTkPsq725bde XSVAiamjoUN+edik9XV0xg/vrVawBWBS+DZJeLEKvV9rXAlbKRvSgZR5iLXorbw9G9lH TRjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=Bem0WcFFQJmVr83/kfFe4sVXiyqwPpAmd9A0PQivkmQ=; b=Rt1nRK2BpDI5L0Ik9+uYkpG1cOtKVi8abpJtVQFgXEZWmEJleK+UEPH4Skg7aUo8Wu qOQdIacykPlwPTJrDhhBHxbRu53jxQ/YKlFgSKBzxUZcXqcXY0GWcDn02Wpy3mbBb0ZN z610ijHhR0WQOC6ZtK7egAyTLcYHq075/emap84vOwTuk/PioGhplVzOA2tHEOoGx/if X6i334uFSPRRhfDnoS7kDrzmn+pZuO9u8LcCvPgXCrW2OAd3SsNiPoNt574/dNF4CMR0 0E3a7cysx2HTjv8EH1iW9GW+FIuOnS0DuCTKF+uRLdg9xwC/poKi4cpipNOJUhy17TAe G3aw== X-Gm-Message-State: AOAM533lHd9dITTVq3FOuiisiUB7UgJ1X4ETaNSXOXXxIGrYkLzFHrTc 4mNJLB40xCYF2twIDhi935P5SH/Oe1w= X-Google-Smtp-Source: ABdhPJyZZg4CVm8eepa3N/ryjhio9XKtGdzlkyKfAso+fQKOuDVD7zVLq5IL+KLWOZl7LtpmMKCkjg== X-Received: by 2002:a62:7850:0:b0:44c:5b71:2506 with SMTP id t77-20020a627850000000b0044c5b712506mr26477555pfc.37.1633964049788; Mon, 11 Oct 2021 07:54:09 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id l19sm8019769pff.131.2021.10.11.07.54.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 07:54:09 -0700 (PDT) From: Timothy To: emacs-orgmode@gnu.org Subject: Re: Useful package? Compat.el Date: Mon, 11 Oct 2021 22:40:20 +0800 References: <87sfx7degz.fsf@gmail.com> User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: Message-ID: <87r1crd33m.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633964115; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Bem0WcFFQJmVr83/kfFe4sVXiyqwPpAmd9A0PQivkmQ=; b=InpGlrTZVUVoTcgAgHHfyKoNXCY74WsRFD1W99TdyUTfJ3k/JHXElaihIi50m8P8H+QWbp KU155GjGC4vs5DY2145QFJcyH5aiGOZf+gDPdFnarSkqZgCrWh5oqLxXY0EFOhxjMob4a6 an1nCZa02fK4fAavQ0YVNL7mHBnepjE4X6L7VrDSdrXG9oJNpIxzhzAcKx3U+giFax/q66 uUA3qa66ek7IChNV2xuN9Wlvh6S2abJI1nDVyUsFIMBcF4t8/HQlWhcsnbiHHFVvGEE13V fpxHryCronQJJeVjolAbQg9d3N5ucVwZ75gYwquZr+OAKI5fb2JrqX7W82Rmog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633964115; a=rsa-sha256; cv=none; b=Im0FjEjrH+wmoTCrkUDs4xApXvTme6+PxymG/K8xbrpSTvAuU4B/VDJAoXLJlcHhwo8LEj Rah+KXfcwu4LThqKwvo3NiMJFpTvRZQVpaPFkZJ4gPncdtKXQTAUlayYTR3XyWgXoWFvC8 zyDGYYUQBehcINvkJcj/eTVC/V3+sSbdVjdlMrA/bxEq9kJD6PTpIcM6zou6HiDp2HrVPE vmIGUvAhB5jZiv+oyonOM8xS8l5IprW5FRFT21Pd/vzYNddNapdy8sYpzHm07I8HOLMTTc 5YL5XE4LMMn14PpONHLVHicPNo3qt4Q1YgrYJAHJvKcwt8ZfWQwhwFBtVG+LOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GkleCVQL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GkleCVQL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 335BD1A07E X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: ga0zRm7ha64v --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Russel, > Do you have any examples of where this could shorten code in Org? I don=E2=80=99t have any examples on hand, but Org is already rolling some = compat code for old Emacs versions, and we=E2=80=99ve had issues where people have acci= dentally used functions which are =E2=80=9Ctoo new=E2=80=9D (but a few years old, and so = nobody picked it up till someone raised an issue). I can also personally recall times when I=E2= =80=99ve had to refactor code to make it uglier and more verbose to avoid using newer functions. All of this is why I=E2=80=99m thinking this could be an interes= ting idea. > I believe it=E2=80=99s a tall order to add a dependency, but if it elimin= ates > large chunks of backward compatibility code then maybe that=E2=80=99s > something to consider. I think the way to do this would be as a =E2=80=9Csoft=E2=80=9D dependency,= i.e. not needed for anyone running a recent version of Emacs, but needed if you want to use Org= with an old version of Emacs. Not sure how this would best be done, but if this = were to be useful, this is how I=E2=80=99d imagine it working. All the best, Timothy --=-=-=--