From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Error: add-to-list cannot use lexical var ... Date: Tue, 14 Aug 2012 10:54:25 +0530 Message-ID: <87mx1yoxkm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344921859 29569 80.91.229.3 (14 Aug 2012 05:24:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2012 05:24:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 14 07:24:20 2012 Return-path: Envelope-to: ged-emacs-devel@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 1T19c3-0003Yj-Oq for ged-emacs-devel@m.gmane.org; Tue, 14 Aug 2012 07:24:19 +0200 Original-Received: from localhost ([::1]:59385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T19c2-0006Os-HR for ged-emacs-devel@m.gmane.org; Tue, 14 Aug 2012 01:24:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T19bz-0006Ob-HD for emacs-devel@gnu.org; Tue, 14 Aug 2012 01:24:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T19bx-0002ew-IR for emacs-devel@gnu.org; Tue, 14 Aug 2012 01:24:15 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:38235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T19bx-0002er-EQ for emacs-devel@gnu.org; Tue, 14 Aug 2012 01:24:13 -0400 Original-Received: by yenl1 with SMTP id l1so1502yen.0 for ; Mon, 13 Aug 2012 22:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=Bb9znHUSlYZBcbqBLVE+12yIg3F4jQyAVOqP+rEsQn8=; b=I5xHE+GfzUNlwDgeB1gzMBRokxmCcpI36xmud6FHsbdKmWbit+UlI1b5bnKRqh9xp1 jRsrSBSzss91NOvT4v/k9juVnVDEBXsQa2R1rYQ/jsDvq+1YfwhtgqmGQFTbNHb7sL8B 3WgOnVMfVpCDY9HxPgJbM8nvRIWu1XYkCtntShQ0CUvK00bM8yI3rIwsooYi1/s13fV+ 3N4HHHZisR9MZzQEWnoO64eqSdvPFeU6iZ6M8sQFhKVF3jGaEjXX87+EAqnfjMVWlwnk 6gtNmHkPw7f1fGSIcAgJds2rdbvl/G9qNJCB/0pgGxuzzylFFu4W7MiEA69rd1lts2dc Ebpg== Original-Received: by 10.66.73.132 with SMTP id l4mr19972383pav.30.1344921852522; Mon, 13 Aug 2012 22:24:12 -0700 (PDT) Original-Received: from debian-6.05 ([101.62.112.242]) by mx.google.com with ESMTPS id oj8sm481890pbb.54.2012.08.13.22.24.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 22:24:11 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152504 Archived-At: I happened to make some modifications to vc-dir.el recently and tried using `add-to-list' as part of these modifications. Add the below snippet somewhere in vc-dir.el and byte-compile it. (let (l) (add-to-list 'l "testing")) You will see an error like. vc-dir.el:54:1:Warning: Unused lexical variable `l' vc-dir.el:54:7:Error: add-to-list cannot use lexical var `l' I should say the results are not along the expected lines. Can someone explain it to me? --