[Top][All Lists]

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

Re: Splitting image-dired.el into smaller files

From: Eli Zaretskii
Subject: Re: Splitting image-dired.el into smaller files
Date: Sun, 21 Aug 2022 18:20:30 +0300

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Sun, 21 Aug 2022 08:11:08 -0700
> Cc: emacs-devel@gnu.org, mathias.dahl@gmail.com
> Eli Zaretskii <eliz@gnu.org> writes:
> > Remove the "image-dired-" part?
> Do you mean naming the files like this?
>     image-dired/compat.el
>     image-dired/dired.el
>     image-dired/external.el
>     image-dired/gallery.el
>     image-dired/tags.el
>     image-dired/util.el
>     image-dired/image-dired.el


> How would I then require them, is it like this?
>     (require 'image-dired/compat)
> If that works, it does sound a bit neater.

It does work: we use it in cedet/ subdirectories.

> > And maybe leave the -util.el part inside the main file?
> That's not very easy to do without introducing circular dependencies,
> unfortunately.

How come, when all the code now lives on the same file and we don't
have any problems?  Maybe your factoring between the files needs

reply via email to

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