unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to warn about obsolete file in ELPA package
@ 2021-02-06 12:19 Basil L. Contovounesios
  2021-02-06 13:17 ` Basil L. Contovounesios
  2021-02-06 15:03 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Basil L. Contovounesios @ 2021-02-06 12:19 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-07  3:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-06 12:19 How to warn about obsolete file in ELPA package Basil L. Contovounesios
2021-02-06 13:17 ` Basil L. Contovounesios
2021-02-06 15:03 ` Stefan Monnier
2021-02-06 17:50   ` Basil L. Contovounesios
2021-02-06 18:25     ` Stefan Monnier
2021-02-06 18:40       ` Basil L. Contovounesios
2021-02-06 19:36   ` Philipp
2021-02-07  3:54     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).