bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6997: Loading w32-fns under X11 signals an error


From: Juanma Barranquero
Subject: bug#6997: Loading w32-fns under X11 signals an error
Date: Sat, 11 Sep 2010 23:41:46 +0200

> The title says it.  It probably also messes with things, additionally to
> signalling an error.  Of course, you will say "don't do that", but
> remember that files may be loaded for all kinds of reasons, so they
> should be harmless.

You can avoid the warning with judicious application of

  (when (fboundp 'set-message-beep)
    ...)

and

 (when (boundp 'w32-charset-info-alist)
  ...)

but making the loading harmless will likely need some more uglifying
of the code.

Perhaps these really-specific modules should just have protection guards:

(when (eq system-type 'windows-nt)
  ;;; rest of the file
  )
(provide 'xxx)

    Juanma





reply via email to

[Prev in Thread] Current Thread [Next in Thread]