Re: [PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-28 Thread Max Nikulin
Ihor, I do not like lengthy emacs commands and make functions to generate them. I think, it is better to move such code to a script. A proof of concept is attached, however it is rather rough draft ./epm.el -Q --epm-dir $(emacs_pkgdir)/emacs-%e install compat ./epm.el -Q -L

Re: [PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-20 Thread Ihor Radchenko
Max Nikulin writes: >> Sure. And you will have such option (EFLAGS). >> However, I decided to enable auto-downloading by default to not break >> the previous working compilation instructions. > > For me adding external dependencies is strong enough reason to change > compiling instructions. My

Re: [PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-17 Thread Max Nikulin
On 13/04/2023 19:42, Ihor Radchenko wrote: Max Nikulin writes: My expectation is that make does not attempt to manage dependencies. For me it is OK to type an additional command to install them and to fail otherwise. Sure. And you will have such option (EFLAGS). However, I decided to enable

Re: [PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-13 Thread Ihor Radchenko
Max Nikulin writes: >> +;; Package-Requires: ((emacs "26.1") (compat "29.1.4.1")) > > Is there a way to express (or (compat "29.1.4.1") (emacs "28.1")) to > avoid installing compat in the case of sufficiently new emacs? E.g. > dpkg/apt allows such alternatives. No, AFAIK: D.8 Conventional

Re: [PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-08 Thread Max Nikulin
+;; Package-Requires: ((emacs "26.1") (compat "29.1.4.1")) Is there a way to express (or (compat "29.1.4.1") (emacs "28.1")) to avoid installing compat in the case of sufficiently new emacs? E.g. dpkg/apt allows such alternatives. Early I asked concerning compat-29.1.3. I would prefer to

Re: [PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-08 Thread Ihor Radchenko
Max Nikulin writes: >> I know no other Emacs packages that manage dependencies using make. > > org-ql uses a helper shell script. org-roam and projectile use eldev > that is procedural, not declarative build system. I have not figured out > which way magit handles dependencies. I have no more

Re: [PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-08 Thread Max Nikulin
On 03/04/2023 00:00, Ihor Radchenko wrote: Max Nikulin writes: Ihor, do added makefile rules follow best practices used by other Emacs packages in respect to dependencies? I know no other Emacs packages that manage dependencies using make. org-ql uses a helper shell script. org-roam and

[PATCH v2] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-04-02 Thread Ihor Radchenko
I am attaching a slightly tweaked version of the patch that will make less use of internet connection (use only when really, really necessary), fixes variable expansion to be done once instead of in every make sub-process, and adds some extra info messages. Max Nikulin writes: > Ihor, do added