help-gnu-emacs
[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: Tadeus Prastowo
Subject: Re: modularity, code for yourself and possibly others
Date: Fri, 29 Mar 2019 11:43:17 +0100

On Fri, Mar 29, 2019 at 1:47 AM Emanuel Berg <moasenwood@zoho.eu> wrote:
> How do I remove all blank lines from a buffer?
> I.e. `delete-blank-lines' en masse?

Why not firing `whitespace-cleanup' instead?

[...]

> But because that is a function of generic value
> and use, I have it in another file [2]. So now
> todo-did.el has to `require' that file. Oh, no!
>
> In todo-did.el, I put it like this:
>
>
>     (require 'edit) ; http://user.it.uu.se/~embe8573/emacs-init/edit.el
>     [...]
>     (delete-all-blank-lines) ; 
> http://user.it.uu.se/~embe8573/emacs-init/edit.el
>
>
> However that really won't help as in edit.el,
> I have
>
>
>     (require 'tabs)
>     (require 'sudo-user-path)
>     (require 'window-new)

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.

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

--
Best regards,
Tadeus



reply via email to

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