From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.help Subject: questioning let Date: Wed, 24 Feb 2010 11:34:47 +0100 Message-ID: <4B8500C7.3010209@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267007611 7109 80.91.229.12 (24 Feb 2010 10:33:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2010 10:33:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 11:33:27 2010 Return-path: Envelope-to: geh-help-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 1NkEYX-0002cf-Is for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 11:33:25 +0100 Original-Received: from localhost ([127.0.0.1]:59335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkEYX-00087R-18 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 05:33:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkEXu-00087M-9K for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 05:32:46 -0500 Original-Received: from [140.186.70.92] (port=48368 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkEXs-00086r-58 for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 05:32:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkEXr-0000gq-9i for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 05:32:43 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:54961) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkEXq-0000ga-PE for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 05:32:43 -0500 Original-Received: from [192.168.178.27] (p54BE8E35.dip0.t-ipconnect.de [84.190.142.53]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MXEu5-1ODmZB1pi9-00Wy60; Wed, 24 Feb 2010 11:32:40 +0100 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) X-Provags-ID: V01U2FsdGVkX1/p6uz4/Ijuts0M0f2y2kUOyRW1U0YKzuFjATD KzBFcle4DBSGT0ksvLuR0eZTPcMsCiNT9C/kqxPZxLrIKylB51 fXKNlK9v2mq0v+jzM5Ezk0UD7hbKQ4r79sKNpiIswc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72095 Archived-At: Hi, behaviour of the example code below puzzles me. Would expect setting of arg by external function, but inside `let', recognised. But remains `1'. (defun arg-setting () (interactive) (let ((arg 1)) (message "%s" arg) (arg-extern arg) (message "%s" arg))) (defun arg-extern (arg) (setq arg (1- arg))) Any help? Thanks Andreas -- https://code.launchpad.net/~a-roehler/python-mode https://code.launchpad.net/s-x-emacs-werkstatt/