From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6997: Loading w32-fns under X11 signals an error Date: Mon, 13 Sep 2010 11:27:30 +0200 Message-ID: References: <8362ya5cwu.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284371674 3398 80.91.229.12 (13 Sep 2010 09:54:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Sep 2010 09:54:34 +0000 (UTC) Cc: 6997@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 13 11:54:33 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 1Ov5k7-0003EH-Ow for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 11:54:32 +0200 Original-Received: from localhost ([127.0.0.1]:51896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov5k6-0007iU-Oi for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 05:54:30 -0400 Original-Received: from [140.186.70.92] (port=41376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov5jr-0007gH-SM for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 05:54:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ov5WU-0005fs-Tz for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 05:40:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42869) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov5WU-0005fo-Sj for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 05:40:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ov5IX-00016T-Rj; Mon, 13 Sep 2010 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier 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 09:26:01 +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.12843699474231 (code B ref 6997); Mon, 13 Sep 2010 09:26:01 +0000 Original-Received: (at 6997) by debbugs.gnu.org; 13 Sep 2010 09:25:47 +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 1Ov5II-00016C-NW for submit@debbugs.gnu.org; Mon, 13 Sep 2010 05:25:46 -0400 Original-Received: from impaqm2.telefonica.net ([213.4.138.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov5IG-000166-7a for 6997@debbugs.gnu.org; Mon, 13 Sep 2010 05:25:45 -0400 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm2.telefonica.net with bizsmtp id 67Yf1f00i2h2L9m3M9TZHd; Mon, 13 Sep 2010 11:27:33 +0200 Original-Received: from ceviche.home ([83.61.39.212]) by IMPmailhost3.adm.correo with BIZ IMP id 69TW1f00U4aeRwb1j9TXx6; Mon, 13 Sep 2010 11:27:33 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 8B5B26637B; Mon, 13 Sep 2010 11:27:30 +0200 (CEST) In-Reply-To: <8362ya5cwu.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Sep 2010 09:18:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 13 Sep 2010 05:26:01 -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:40121 Archived-At: >> 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. > "Harmless" in what sense? That Emacs works as well after loading the file than before. You know, like language extensions: they do change the semantics of the language but in a way that's usually accepted as "harmless": it only gives meaning to things which earlier were errors. > Should they do nothing at all? Probably > not, or else you wouldn't be loading them, right? They can define new functions and variables, as well as load other files, and even set a few things up but only to *add* behavior, not to *change* behavior. > Even in your specific use-case, did you want the w32-fns functions to > end up in the obarray or not? Of course, that was the whole point since I wanted to complete on function names. > IOW, can you come up with a general enough definition of the reason(s) > for loading w32-fns on non-w32 systems? The same reason why I might want to load diff-mode.el without ever wanting to use that mode. E.g. to complete function/variable names, or to browse customize data, ... Stefan