emacs-devel
[Top][All Lists]
Advanced

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

Re: modularity, code for yourself and possibly others


From: Emanuel Berg
Subject: Re: modularity, code for yourself and possibly others
Date: Tue, 02 Apr 2019 00:22:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Tadeus Prastowo wrote:

> Why not firing `whitespace-cleanup' instead?

OK, I didn't know about it. Thank you. But it
doesn't change the general situation.

> Why don't you put that function in another
> file other than edit.el? You are basically
> dealing with a common problem in software
> engineering that can be solved
> by refactoring.

All my stuff are already sorted into files
according to what they do. E.g.,
for Emacs-w3m [1], I have


    bookmarks.el
    dl.el
    history.el
    search.el
    w3m-keys.el
    w3m-my.el
    w3m-tabs.el
    w3m-unisearch.el


so it is all neatly sorted. But hardly none of
it is/can be used independently.

Moving one function from edit.el to some other
file would require the user to `require' that
file instead, and that file would `require' yet
another file(s), and so on. How would that be
any different?

In the extreme case, for someone else to use
a single of my .el files, s/he would have to
use my entire Elisp system!


[OFF TOPIC] Hint: RFC 3676, section 4.3 (Usenet
Signature Convention)
https://www.ietf.org/rfc/rfc3676.txt


[1] http://user.it.uu.se/~embe8573/emacs-init/w3m/

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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