From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6997: Loading w32-fns under X11 signals an error Date: Mon, 13 Sep 2010 17:29:19 +0200 Message-ID: <83hbht4q7k.fsf@gnu.org> References: <8362ya5cwu.fsf@gnu.org> <831v8x6fb2.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284392460 3520 80.91.229.12 (13 Sep 2010 15:41:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Sep 2010 15:41:00 +0000 (UTC) Cc: 6997@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 13 17:40:59 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OvB9O-0007mC-D7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 17:40:58 +0200 Original-Received: from localhost ([127.0.0.1]:48827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvB9N-00017z-HN for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 11:40:57 -0400 Original-Received: from [140.186.70.92] (port=59103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvB8x-0000tc-9M for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 11:40:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvB8v-0007j2-Nw for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 11:40:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55206) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvB8v-0007iy-K5 for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 11:40:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvAws-0004vE-8C; Mon, 13 Sep 2010 11:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Sep 2010 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6997 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6997-submit@debbugs.gnu.org id=B6997.128439163418912 (code B ref 6997); Mon, 13 Sep 2010 15:28:02 +0000 Original-Received: (at 6997) by debbugs.gnu.org; 13 Sep 2010 15:27:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvAw6-0004uz-Ht for submit@debbugs.gnu.org; Mon, 13 Sep 2010 11:27:14 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvAw3-0004uu-RW for 6997@debbugs.gnu.org; Mon, 13 Sep 2010 11:27:12 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0L8O00200Y491I00@a-mtaout23.012.net.il> for 6997@debbugs.gnu.org; Mon, 13 Sep 2010 17:29:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.81.53]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8O001LWZ0VMGE0@a-mtaout23.012.net.il>; Mon, 13 Sep 2010 17:29:20 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 13 Sep 2010 11:28:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40135 Archived-At: > From: Stefan Monnier > Cc: 6997@debbugs.gnu.org > Date: Mon, 13 Sep 2010 16:51:20 +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. > It's been policy > for a long time now that loading files should be harmless, so many files > were changed so that (load "foo") doesn't enable foo-mode any more, but > instead just defines foo-mode (and then foo-mode is marked auto-loaded > so the user can just call (foo-mode 1) rather than (load "foo") in his > .emacs). > Clearly, load foo.el will make changes in that it will define new > functions and variables, may add things to debug-ignored-errors and > whatnot. 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. 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? > > That's rather a narrow need. Sounds like lots of labor to gain very > > little (why does it matter to have symbols that begin with a `w32-'?). > > Yes, it's a lot of work for fairly little gain. Note that I bumped into > it because my code couldn't care less that "w32-" is special, not > because I specifically wanted to have symbols starting with "w32-". How about teaching your code not to load any file that has w32 (or dos, or ns, for that matter) in its name? Or perhaps we should have a list of platform-specific .el files that are not "safe" for loading on other platforms? Maybe that will be easier than modifying all those to make them "Stefan-harmless"?