From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jack-mac Newsgroups: gmane.emacs.help Subject: Re: Help needed with defadvice Date: Sat, 23 Nov 2013 00:35:03 -0800 (PST) Message-ID: <916aff62-b5dc-4d46-9688-fc5811d75813@googlegroups.com> References: <8738mo7w0j.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385195712 26594 80.91.229.3 (23 Nov 2013 08:35:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 08:35:12 +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 Nov 23 09:35:18 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 1Vk8gQ-0001Bz-2D for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 09:35:18 +0100 Original-Received: from localhost ([::1]:42789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vk8gP-0002m1-GL for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 03:35:17 -0500 X-Received: by 10.68.177.226 with SMTP id ct2mr5587750pbc.2.1385195703632; Sat, 23 Nov 2013 00:35:03 -0800 (PST) X-Received: by 10.49.74.134 with SMTP id t6mr32405qev.14.1385195703498; Sat, 23 Nov 2013 00:35:03 -0800 (PST) Original-Path: usenet.stanford.edu!news.glorb.com!y3no11506349pbx.0!news-out.google.com!9ni106qaf.0!nntp.google.com!dz2no2716848qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.12.36.193; posting-account=OWLhBgoAAAD1H7ELDXVfr3-5BJaMOe1v Original-NNTP-Posting-Host: 2.12.36.193 User-Agent: G2/1.0 Injection-Date: Sat, 23 Nov 2013 08:35:03 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:202312 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:94581 Archived-At: Le vendredi 22 novembre 2013 16:50:02 UTC+1, Perry Smith a =E9crit=A0: > On perhaps a side note, the documentation for make-variable-buffer-local= =20 > has this curious sentence: >=20 >> Note that binding the variable with `let',=20 >> does not make the variable buffer-local. >=20 > I think I'm doing the 2nd phrase -- right? I don't think so! They probably mean: >> or setting it while a `let'-style binding OF THIS SAME VARIABLE >> made in this buffer is in effect, Something like: (with-current-buffer (current-buffer) (let ((my-var 'foo)) (set (make-local-variable 'my-var) 'bar) (message "inside let, my-var is %s" my-var)) (message "outside let, my-var is %s" (if (boundp 'my-var) my-var '_undef_= ))) > But then I get confused and > I don't understand why my other example works because it is inside > a let binding a well. Even if I remove my let, I am likely going to be > inside a let but whoever is calling down to the function I am advising. HTH )jack(