From: Tadeus Prastowo <tadeus.prastowo@unitn.it>
To: Emanuel Berg <moasenwood@zoho.eu>
Cc: help-gnu-emacs@gnu.org, emacs-devel <emacs-devel@gnu.org>
Subject: Re: modularity, code for yourself and possibly others
Date: Fri, 29 Mar 2019 11:43:17 +0100 [thread overview]
Message-ID: <CAN-HRFaApTZS6L3OppJoRPUwGaRcpbikKfpLYpQstg6JevYpYA@mail.gmail.com> (raw)
In-Reply-To: <86wokiqznt.fsf@zoho.eu>
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
next prev parent reply other threads:[~2019-03-29 10:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-29 0:42 modularity, code for yourself and possibly others Emanuel Berg
2019-03-29 10:43 ` Tadeus Prastowo [this message]
2019-04-01 22:22 ` Emanuel Berg
2019-04-02 9:42 ` Tadeus Prastowo
2019-04-04 3:20 ` Emanuel Berg
2019-04-04 8:10 ` Tadeus Prastowo
2019-04-04 22:38 ` Richard Stallman
2019-04-05 3:16 ` Emanuel Berg
2019-04-05 22:31 ` Richard Stallman
2019-04-05 9:57 ` Tadeus Prastowo
2019-04-05 22:33 ` Richard Stallman
2019-04-05 22:48 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN-HRFaApTZS6L3OppJoRPUwGaRcpbikKfpLYpQstg6JevYpYA@mail.gmail.com \
--to=tadeus.prastowo@unitn.it \
--cc=emacs-devel@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).