all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: (require ...) and file dependencies.
Date: Sat, 03 Jan 2015 16:30:37 +0200	[thread overview]
Message-ID: <87sifs9bsi.fsf@gavenkoa.example.com> (raw)
In-Reply-To: jwvk31cfx3w.fsf-monnier+gnu.emacs.help@gnu.org

On 2014-12-28, Stefan Monnier wrote:

>> They may fixed by:
>>
>>   (eval-when-compile
>>     (defvar ...))
>
> No, it's fixed with
>
>     (defvar <foo>)
>
> Siuch (defvar <foo>) declarations (i.e. without an initial value) are
> annotations for the *compiler*, so you don't want to pas them to the
> `eval'uator (hence you don't want to wrap them in `eval-when-compile').
> The fact that they also work when wrapped in `eval-when-compile' is an
> accident which might get fixed at any point.

I check if (defvar <foo>) pollute `load-history` and it is not!

So any can safely load libraries with fake `(defvar <foo>)` and then load
original library and `<foo>` will refer to place where value or/and doc-string
provided!

Seems that docs have no any direct words about defvar and load-history.

-- 
Best regards!




  parent reply	other threads:[~2015-01-03 14:30 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 [this message]
2015-01-03  2:12 ` Emanuel Berg
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=87sifs9bsi.fsf@gavenkoa.example.com \
    --to=gavenkoa@gmail.com \
    --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.