From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: e and pi Date: Sat, 18 Sep 2010 12:50:22 +0200 Organization: Organization?!? Message-ID: <87bp7v8gwh.fsf@lola.goethe.zz> References: <8739t9xpt2.fsf@stupidchicken.com> <874odoweqm.fsf@stupidchicken.com> <83hbhnz7z2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284807076 24130 80.91.229.12 (18 Sep 2010 10:51:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 10:51:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 12:51:14 2010 Return-path: Envelope-to: ged-emacs-devel@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 1Owv0a-00069I-30 for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 12:51:13 +0200 Original-Received: from localhost ([127.0.0.1]:51270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owv0R-0005Kc-5S for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 06:50:55 -0400 Original-Received: from [140.186.70.92] (port=49854 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owv0C-0005F4-JX for emacs-devel@gnu.org; Sat, 18 Sep 2010 06:50:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Owv04-0004Ql-7H for emacs-devel@gnu.org; Sat, 18 Sep 2010 06:50:33 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50270) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Owv04-0004QL-1K for emacs-devel@gnu.org; Sat, 18 Sep 2010 06:50:32 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Owv02-0005v4-L8 for emacs-devel@gnu.org; Sat, 18 Sep 2010 12:50:30 +0200 Original-Received: from p508edaf8.dip.t-dialin.net ([80.142.218.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 12:50:30 +0200 Original-Received: from dak by p508edaf8.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Sep 2010 12:50:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508edaf8.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kMeRU9I6wNnt9A6cY0V19v2CoZ8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130391 Archived-At: Eli Zaretskii writes: >> From: Helmut Eller >> Date: Fri, 17 Sep 2010 18:18:25 +0200 >> >> > (defun froob (argv) >> > (lambda (f) (cons f argv))) >> > >> > and have that fail, because "argv" is a defvar defined in startup.el. >> >> I once had a function with an argument called system-name. Suddenly >> Emacs started to complain that some files are locked by some other user. >> How many people now that system-name is a global variable and used by >> the file-locking code? The lesson is that Emacs should not pre-define >> global variables with names that are likely candidates for local >> variables. > > What you describe as a big surprise is actually known to every C/C++ > programmer: some names are "reserved by the implementation" and should > not be used by the application code. For a function argument? I beg to differ. The only way to get a conflict is using extern declarations. And identifiers reserved by the implementation start with two underlines. -- David Kastrup