From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul R Newsgroups: gmane.emacs.help Subject: Re: equivalent of make-local-variable for defun? Date: Mon, 03 Nov 2008 18:16:52 +0100 Message-ID: <87vdv4pw57.fsf@gmail.com> References: <1d3363bf-4c06-4424-832a-5abe06f560a0@z6g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225733029 19677 80.91.229.12 (3 Nov 2008 17:23:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2008 17:23:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: jrwats Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 18:24:50 2008 connect(): Connection refused 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.50) id 1Kx3AG-0005qi-Jw for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 18:24:32 +0100 Original-Received: from localhost ([127.0.0.1]:35669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx399-0001bk-NO for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 12:23:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kx32z-000574-Gz for help-gnu-emacs@gnu.org; Mon, 03 Nov 2008 12:17:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kx32x-00056G-3w for help-gnu-emacs@gnu.org; Mon, 03 Nov 2008 12:17:00 -0500 Original-Received: from [199.232.76.173] (port=60354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx32w-000564-Jf for help-gnu-emacs@gnu.org; Mon, 03 Nov 2008 12:16:58 -0500 Original-Received: from gv-out-0910.google.com ([216.239.58.187]:65037) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kx32w-00020q-G0 for help-gnu-emacs@gnu.org; Mon, 03 Nov 2008 12:16:58 -0500 Original-Received: by gv-out-0910.google.com with SMTP id i36so327087gve.17 for ; Mon, 03 Nov 2008 09:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=tKYuHAB2rfvfEM2iHVoUw8dZBYZvfBVXb3ER98UDpPM=; b=Y5L8ouqHmvTogS3dQ0dnWnmkyYXIxr2O8YkFV9rd56c2Nb2HDl1hWncROXsGQg3e+i okFg5ti0/ss1SiHsn/4CyWcsadXQVdtU/cL3fPBFVYcmB9ClG0fJfuJSWJQ5tFQvGX8P rZaJ7JZZMPvgavn/RpOqjMsdyEXIddJ7XHl4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=BobiBSQoVgkJAvh7uZSEUkDi8bKHIMp4Qmxj2b4v0EE4ESITUFHgDXv/AMA70pSwC1 2BiAp1bSp+GfcfnfrBdkFcFgKHvJjfrrTrjgLmTSCd2R+5HW9WrV73fVx7kqEAh033IR 1lph2xc63n01LnmjTyGfSw1j7yDOheeaZO2iU= Original-Received: by 10.103.251.3 with SMTP id d3mr163913mus.90.1225732615465; Mon, 03 Nov 2008 09:16:55 -0800 (PST) Original-Received: from ubuT42 (pdc35-1-82-242-132-111.fbx.proxad.net [82.242.132.111]) by mx.google.com with ESMTPS id j10sm9297209mue.17.2008.11.03.09.16.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Nov 2008 09:16:55 -0800 (PST) In-Reply-To: <1d3363bf-4c06-4424-832a-5abe06f560a0@z6g2000pre.googlegroups.com> (jrwats@gmail.com's message of "Mon, 3 Nov 2008 08:18:16 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59398 Archived-At: jrwats> Is there a way to define a function but local to the current jrwats> buffer as when you define a local variable in jrwats> make-local-variable? I don't know very well how buffer-local variables work, but I don't think you can locally bind an elisp function. A workaround can be to use a local variable, then set it to a lambda expression, then call the function with funcall. -- Paul