From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Dynamically constructing advice behaves strangely Date: Sun, 14 Feb 2016 16:34:08 +0100 Message-ID: <8760xrb91r.fsf@web.de> References: <87io1r2v89.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455464110 17835 80.91.229.3 (14 Feb 2016 15:35:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Feb 2016 15:35:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 14 16:35:01 2016 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 1aUyhR-0006Ir-Fa for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Feb 2016 16:35:01 +0100 Original-Received: from localhost ([::1]:51425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUyhQ-0000Cg-NH for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Feb 2016 10:35:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUyhC-0000C3-NY for help-gnu-emacs@gnu.org; Sun, 14 Feb 2016 10:34:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUygj-00066t-VC for help-gnu-emacs@gnu.org; Sun, 14 Feb 2016 10:34:46 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUygj-00065b-M2 for help-gnu-emacs@gnu.org; Sun, 14 Feb 2016 10:34:17 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aUygh-0005ts-7a for help-gnu-emacs@gnu.org; Sun, 14 Feb 2016 16:34:15 +0100 Original-Received: from dslb-092-074-178-250.092.074.pools.vodafone-ip.de ([92.74.178.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Feb 2016 16:34:15 +0100 Original-Received: from michael_heerdegen by dslb-092-074-178-250.092.074.pools.vodafone-ip.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Feb 2016 16:34:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-092-074-178-250.092.074.pools.vodafone-ip.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) Cancel-Lock: sha1:Oh07uJGxsT71PQaMC2fc1ZxjnaI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:109164 Archived-At: Marcin Borkowski writes: > This works (i.e., M-: foo-fun properly runs the advice), but I expected > the symbol `advice-for-foo-fun' to have this piece of advice in its > function cell - and it does not. Why? You bind the function to a new uninterned symbol (`make-symbol'), which is not what you want. You want `intern'. Michael.