From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Gauthier_=D6stervall?= Newsgroups: gmane.emacs.help Subject: sending function arguments to recursive function calls Date: Sat, 4 May 2013 15:01:27 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1367679599 32242 80.91.229.3 (4 May 2013 14:59:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 May 2013 14:59:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 04 16:59:58 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UYdwF-0003sC-Oo for geh-help-gnu-emacs@m.gmane.org; Sat, 04 May 2013 16:59:51 +0200 Original-Received: from localhost ([::1]:47531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYdwF-0000zQ-Ak for geh-help-gnu-emacs@m.gmane.org; Sat, 04 May 2013 10:59:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYc63-0008O3-8R for help-gnu-emacs@gnu.org; Sat, 04 May 2013 09:01:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYc60-0001am-SK for help-gnu-emacs@gnu.org; Sat, 04 May 2013 09:01:51 -0400 Original-Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:50994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYc60-0001aa-La for help-gnu-emacs@gnu.org; Sat, 04 May 2013 09:01:48 -0400 Original-Received: by mail-wg0-f47.google.com with SMTP id e11so2372015wgh.14 for ; Sat, 04 May 2013 06:01:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=1pFkq5QSA7uVNwiqCXPuHm4Hmx2iIz9IEHfRNMvMFrU=; b=NXugIA4TDvvAFm3qgyWSJIYqoQZX9NafzbIWcrBr2vSlmz22cy56AEH7+HToy1hqfU 1BWg6dcnuki8I06ApMbWKJJLwujKaN/HX3TmynEgdg16chj0AS51B4ORJEhNCbCeDBAu TL5hCFD69y0ts/FgUp3tJPvoLjxiixNNs25AJfmkBv0BSUNDh1kyZaf+mCqCN4Wz1kmU Vb+2JRzfiPbW5B9/1B2lRhaXfyRpwJnW9GbMFKkEnCvDlZc2jK17ZIe3oj8TKxzMjqp/ P+tNq1j1AKasPqbWB0MuAQXzL/Cs6Lc32mYPV50N12pRMxff1WRM5Ksb++xAoL38adkC C5xQ== X-Received: by 10.194.5.196 with SMTP id u4mr18217339wju.54.1367672507259; Sat, 04 May 2013 06:01:47 -0700 (PDT) Original-Received: by 10.180.11.74 with HTTP; Sat, 4 May 2013 06:01:27 -0700 (PDT) X-Originating-IP: [83.248.165.178] X-Gm-Message-State: ALoCoQnN8UqBUKi9PT78I51lpnSQ6+YqQALKz1gmmev1/Iou0qZTldef6EVXpR8aiqfyKLGwF0gF X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22f X-Mailman-Approved-At: Sat, 04 May 2013 10:59:32 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90469 Archived-At: I am very new to e-lisp and lisp, and I expect the answer to my question to be quite obvious when I see it. I am puzzled by the function text-scale-adjust in lisp/face-remap.el. The function takes (inc) as input parameter, and calls and passes this (inc) to itself. If I copy this function to *scratch* and evaluate the defun with C-x C-e, I expect not to have broken anything. What happens instead is that the function's call to itself breaks. The line (lambda () (interactive) (text-scale-adjust (abs inc)))))) complains that inc is not defined: "Symbol's value as variable is void: inc" If I return to the original function in face-remap.el and evaluate the defun there again with C-x C-e, the function starts working again. What is the difference between the defun in face-remap.el, and its copied version in *scratch*, that makes the propagation of inc work in the first case but not in the second? I vaguely suspect it has to do with autoloads, but mainly because this is what is most obscure to me at this point.