unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: smerge fix
Date: Fri, 23 Aug 2002 20:32:50 -0600 (MDT)	[thread overview]
Message-ID: <200208240232.g7O2WoY11599@wijiji.santafe.edu> (raw)
In-Reply-To: <rzqy9b0cd0u.fsf@albion.dl.ac.uk> (message from Dave Love on 21 Aug 2002 18:55:29 +0100)

Using defvar inside eval-when-compile is rather a nuisance.
Whatever we recommend for preventing warnings about unknown
variables, it should be more convenient than that.

What we actually recommend for the purpose is a plain defvar.

Whatever we recommend for preventing warnings about unknown variables,
it should not cause anything to happen when the file is unloaded.

So either we should change unloading of packages to ignore
defvars that didn't specify a value,
or we should recommend something other than defvar
as the way to say it's ok to reference a certain variable
without defining it.

The easiest thing to do is to say that simple (defvar foo)
does not count as a definition.  Deleting the following code
in Fdefvar seems to be enough:

  else
    /* A (defvar <var>) should not take precedence in the load-history over
       an earlier (defvar <var> <val>), so only add to history if the default
       value is still unbound.  */
    if (NILP (tem))
      LOADHIST_ATTACH (sym);

There was another bug report saying that unloading a file
would do makunbound on the function names defined in the file.
That is not right either.  I decided to fix them both.

       reply	other threads:[~2002-08-24  2:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <rzqy9b0cd0u.fsf@albion.dl.ac.uk>
2002-08-24  2:32 ` Richard Stallman [this message]
2002-08-29 22:52   ` smerge fix Dave Love
2002-08-30  6:11     ` Richard Stallman
2002-08-31 17:40       ` Dave Love

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=200208240232.g7O2WoY11599@wijiji.santafe.edu \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 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).