From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: How to warn about obsolete file in ELPA package Date: Sat, 06 Feb 2021 12:19:29 +0000 Message-ID: <87ft29o0by.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 06 13:20:23 2021 Return-path: 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 ) id 1l8MZb-0001RE-8W for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 13:20:23 +0100 Original-Received: from localhost ([::1]:52766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8MZa-0008M7-9e for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 07:20:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8MYq-0007qW-VN for emacs-devel@gnu.org; Sat, 06 Feb 2021 07:19:36 -0500 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:54271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8MYo-00035C-Ka for emacs-devel@gnu.org; Sat, 06 Feb 2021 07:19:36 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id j11so8182451wmi.3 for ; Sat, 06 Feb 2021 04:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version; bh=64f6e8Xyf3i8A7Q3PxBeczxUyqT6mlv83s8Sb5YTJY0=; b=0LKVyHudKtfxI4AJ+VmO6pFYukSRDKrBjSZGRHAjb8B8TqPgvjTNBUF70kQTNZ4pNO l+WHngcjvUmn1ED1RPpxCYyBkBr0Ewj38Vn53mlEq5vZBoPqAXXVTpK842CyR8Xh4oRV glurYGo6FBYI4XnfpIbe5br40WlVK5+9TpYAIaiaAWDFR8CRZZivgvOVShJJQsNQ3YlL Ff+daM5jSL3khnafTZcpcuMG98WALEqcAQHtYw7veEkqrLMkoSuiOXbp1gKmYsOjV1+j X+lQ2w0EHz9a9KHLE+WGLrJMf3vwy5NwMV+nn2zDBn11TEshm0FPpwv++dLgNwoJ/GSs bHXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=64f6e8Xyf3i8A7Q3PxBeczxUyqT6mlv83s8Sb5YTJY0=; b=TufNvPHErc/tLXREjsRWDDPP5WFWhPrw7U8uiDiFCqDwlENSAdE3FTDPXLuhpOYavk whqIiDlAu5Orm9qGSsKsaMSXvztKZgLnlswcZfCZQr0WMlElURnkmZFpKQerUExYmt4K YSgP1mqSUuYwR+Hmq3H78QlOSqkSex3Ow3QLiiH88SDMWh5DeTAiYfUpMm3wqCJxzKlV Pr18rZGVZW8kX31NUSPbcnEQWU2gDeJtVJkXQrN2i7pEZojXjF+7w5GyrdUNn8imeYMh 3Yik9bb5RTDHd1IjH2AGBqy+eLt3cV9rBeTgAArJiEQSH2MW2fJ4fpEJkMFGrS2BSZ/8 ++/A== X-Gm-Message-State: AOAM533a2WKlPF6JXpP0Qu8bX9ZhXU1xV/+TQBfZsB6O1cZUc7jbMHDm ng8WNKfV/r+E6Emm45VU0LTvjkckMYGSmQ== X-Google-Smtp-Source: ABdhPJz9avl/sASZkWsLvEW+NLgCA9mEB0aTMTptyvU0lwZgTIzZtSnuCYds8IdLHOE+69zYfySIHA== X-Received: by 2002:a7b:c119:: with SMTP id w25mr7311007wmi.177.1612613971288; Sat, 06 Feb 2021 04:19:31 -0800 (PST) Original-Received: from localhost ([64.43.144.184]) by smtp.gmail.com with ESMTPSA id v11sm1783675wrr.3.2021.02.06.04.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Feb 2021 04:19:30 -0800 (PST) Received-SPF: none client-ip=2a00:1450:4864:20::32c; envelope-from=contovob@tcd.ie; helo=mail-wm1-x32c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:264058 Archived-At: I'm preparing to update the dash package on GNU ELPA and MELPA. One of the planned changes for this upcoming 2.18.0 release is the consolidation of its two constituent files dash.el and dash-functional.el. The latter was split off as a separate file in the past due its reliance on lexical-binding. Since then, dash.el has also come to depend on Emacs 24, so we have agreed to move the definitions in dash-functional.el to dash.el and eventually delete dash-functional.el. The problem is that GNU ELPA has historically bundled both dash.el and dash-functional.el under the dash package, and MELPA has bundled each as a separate package. In either case, a transitional dash-functional.el file/package must be kept around for a while for backward compatibility. We would like to emit an obsoletion warning when dash-functional.el is used, similar to the one for lisp/obsolete/* libraries. Hopefully such a warning will be seen as helpful and actionable rather than annoying. What is the best way to go about this to cover the cases where dash-functional.el is byte-compiled, installed, or loaded? One simple way is a top-level (lwarn 'dash :warning "Foo"), but the message printed during byte-compilation is not recognised in *compilation* buffers as a warning, so I fear the message may go unnoticed. Another option is a top-level (byte-compile-warn "Foo"). This isn't picked up as a warning either, but at least the file name is fontified with font-lock-function-name-face, so it sticks out a bit more. Any suggestions along these or any better lines are most welcome. If you're interested in the relevant discussions, see the following: https://github.com/magnars/dash.el/wiki/Obsoletion-of-dash-functional.el https://github.com/magnars/dash.el/issues/356 TIA, -- Basil