all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: (require ...) and file dependencies.
Date: Sat, 03 Jan 2015 03:12:55 +0100	[thread overview]
Message-ID: <87y4pkobmg.fsf@debian.uxu> (raw)
In-Reply-To: mailman.16796.1419723800.1147.help-gnu-emacs@gnu.org

Oleksandr Gavenko <gavenkoa@gmail.com> writes:

> But what to do with: Warning: the function `...' is
> not known to be defined.

Yes, use (require '...) for not only the Emacs stuff
but also everything you do. Put (provide '...) last
and you're all set.

> Seems that proper way to fix issue is by rearranging
> dependency hierarchy by breaking dependency cycles,
> isn't?

You are right, *but*, when you put it that way it
seems like almost some government-backed scientific
endeavor!

It is very simple: just constantly arrange the source
files so that what is similar is close to each other.
E.g., you write A, then you write B, then you write a,
ah, that's close to A, let's put it there, so you have
A, a, and B, you write b - BAM! - time to make two
files: A, a, and B, b.

Just make a habit of doing this constantly: arrange,
break, provide, require.

Don't be afraid to have tons of files, some that might
be very short indeed!

It is not difficult, so I'm not even going to say
"good luck" this time. Or did I...

-- 
underground experts united


  parent reply	other threads:[~2015-01-03  2:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.16796.1419723800.1147.help-gnu-emacs@gnu.org>
2014-12-28  0:22 ` (require ...) and file dependencies Stefan Monnier
2015-01-03 14:04   ` Oleksandr Gavenko
2015-01-03 14:30   ` Oleksandr Gavenko
2015-01-03  2:12 ` Emanuel Berg [this message]
2014-12-27 23:42 Oleksandr Gavenko
2014-12-27 23:59 ` Oleksandr Gavenko
2014-12-28  0:09 ` Dmitry Gutov
     [not found] ` <mailman.16797.1419724814.1147.help-gnu-emacs@gnu.org>
2014-12-28  0:24   ` Stefan Monnier
     [not found] ` <mailman.16798.1419725386.1147.help-gnu-emacs@gnu.org>
2015-01-03  2:14   ` Emanuel Berg
2015-01-03 14:51     ` Oleksandr Gavenko
     [not found]     ` <mailman.17173.1420296692.1147.help-gnu-emacs@gnu.org>
2015-01-03 17:34       ` Emanuel Berg

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4pkobmg.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.