unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 6997@debbugs.gnu.org
Subject: bug#6997: Loading w32-fns under X11 signals an error
Date: Tue, 14 Sep 2010 11:32:56 +0200	[thread overview]
Message-ID: <jwvsk1csnmz.fsf-monnier+inbox@gnu.org> (raw)
In-Reply-To: <83hbht4q7k.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Sep 2010 17:29:19 +0200")

>> I'm not sure exactly what you're trying to argue here.
> I'm not trying to argue at all, just trying to understand what you
> want to be done about w32-fns.el.

I'd like w32-fns.el to be harmless even on platforms where it's normally
not loaded.  I understand it's not a very high priority item.

> But many .el files have top-level expressions other than defun and
> defvar.  These don't just define functions and variables, they
> actually change the behavior.

Actually, very few have toplevel expressions that modify the behavior,
nowadays.  The main remaining ones are the preloaded files, so the real
problematic ones are most likely the files that are preloaded on some
configs and not on others.

> w32-fns.el does that as well, but it is not the only one.
> I understand that you want all these top-level expressions be
> conditioned by w32?

They can be conditioned on system-type, yes, tho it doesn't have to be
a toplevel test: the way w32-convert-standard-filename does it is fine
as well.

> How about teaching your code not to load any file that has w32 (or
> dos, or ns, for that matter) in its name?

Of course, that's pretty much the workaround I'm using right now, but
it's still just a workaround.  I may very well want to complete w32-*
names under GNU/Linux after all.

> Or perhaps we should have a list of platform-specific .el files that
> are not "safe" for loading on other platforms?

Actually, we should be aiming towards a code-base where Emacs can be
built with w32 and X11 and ns backends at the same time (after all w32
platforms can run X11 apps as well and GNUstep works on top of X11).
This is longish term and I don't necessarily want you to start working
on it, but rather it should be used as a guide for how best to solve
problems we encounter.


        Stefan





  reply	other threads:[~2010-09-14  9:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08  9:33 bug#6997: Loading w32-fns under X11 signals an error Stefan Monnier
2010-09-11 21:41 ` Juanma Barranquero
2010-09-13  7:18 ` Eli Zaretskii
2010-09-13  9:27   ` Stefan Monnier
2010-09-13 11:41     ` Eli Zaretskii
2010-09-13 14:51       ` Stefan Monnier
2010-09-13 15:29         ` Eli Zaretskii
2010-09-14  9:32           ` Stefan Monnier [this message]
2010-09-14 11:59             ` Juanma Barranquero
2017-12-15  2:21 ` Glenn Morris

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=jwvsk1csnmz.fsf-monnier+inbox@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=6997@debbugs.gnu.org \
    --cc=eliz@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).