Re: question

13 views
Skip to first unread message

David Reitter

unread,
Jun 1, 2017, 7:56:45 AM6/1/17
to Enrico Onofri, Jean-Christophe Helary, aquamacs-devel
Hi Enrico,
Subr-x.el comes with Emacs. You can easily find it as a file. The problem is that it isn’t loaded at the time when e-macs is being built, and this is a problem for the “pre-loading” phase which compiles code, in this case term/ns-win.el, into the emacs binary so that it does not have to be loaded (slowly) at run-time.

I’m cc;’ing the mailing list, which is where we should have discussions so that everybody can learn.

Try out the patch below and let me know if that works for you. It makes sure that subr-x is loaded, and its dependency, p-case. During this load phase, emacs refuses to honor “require” statements. We have to do it manually, for some reason.

- David



diff --git a/lisp/loadup.el b/lisp/loadup.el
index 2af1221785..0df96c57b5 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -294,6 +294,8 @@
;; not be built early enough during bootstrap.
(when (load-history-filename-element "charprop\\.el")
(load "international/ucs-normalize")
+ (load "emacs-lisp/pcase.el")
+ (load "emacs-lisp/subr-x.el")
(load "term/ns-win"))))
(if (fboundp 'x-create-frame)
;; Do it after loading term/foo-win.el since the value of the


> On Jun 1, 2017, at 4:19 AM, Enrico Onofri <eon...@me.com> wrote:
>
> Dear David,
> subr-x.el can be downloaded from internet but i do not know where to insert
> it in the building tree of aquamacs. Some lisp module ‘require subr-x’, how can I
> satisfy the request? Sorry to disturb you, after all a working copy of aquamacs
> is running on my mac since many years, but I would like to learn something. If you
> do not have time now, no problem.
> Best wishes,
>
> Enrico
>
> PS: now retired from my position at the University of Parma.
>

Reply all
Reply to author
Forward
0 new messages