emacs-devel
[Top][All Lists]
Advanced

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

Re: Why is touch-screen.el preloaded?


From: Eli Zaretskii
Subject: Re: Why is touch-screen.el preloaded?
Date: Sun, 26 Nov 2023 07:43:48 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Sun, 26 Nov 2023 10:02:57 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I thought this library is only relevant to touch-screen devices, but I
> > see that we are preloading it unconditionally.  Why?
> >
> > The comment in loadup.el says:
> >
> >   ;; touch-screen.el is tiny and is used liberally throughout the button
> >   ;; code etc, so it may as well be preloaded everywhere.
> >
> > But touch-screen.el is not "tiny": it's more than 2K lines.
> >
> > Can we please avoid preloading it, except when the build supports
> > touch-screen devices?
> 
> Its functions are called from other preloaded functions, such as those
> in subr.el and minibuffer.el.

Those calls could be made conditional on some fboundp or similar.

> Besides, we plan to support touch screen devices on all builds in due
> course.

In due course we will think about preloading it, then.  For now,
please make it not preloaded.  (And in the future, please bring up any
additional file you'd like to preload.)

Thanks.



reply via email to

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