emacs-devel
[Top][All Lists]
Advanced

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

Re: Adding the `prescient` packages to NonGNU ELPA?


From: Stefan Monnier
Subject: Re: Adding the `prescient` packages to NonGNU ELPA?
Date: Mon, 19 Dec 2022 22:10:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> Would you please explain why one would want to use `add-function`
> instead of directly setting `corfu-sort-function`, since setting the
> variable is the intended use? Do you think that storing the old value is
> insufficient?

Two main reasons:
- It's simpler (less code).
- It has a chance of working correctly if some other package also comes
  and installs its own function there.

> Also, you suggest using `message` to warn that `corfu` isn't found.
> Would use of the function `user-error` be incorrect for this?

Either way seems fine.


        Stefan




reply via email to

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