From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: watching for variable assignment Date: Mon, 10 Mar 2014 17:21:40 +0800 Message-ID: <87lhwih0ij.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394443185 22250 80.91.229.3 (10 Mar 2014 09:19:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2014 09:19:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 10:19:50 2014 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 1WMwN8-0006du-3E for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2014 10:19:46 +0100 Original-Received: from localhost ([::1]:47565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMwN7-0003bD-JO for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2014 05:19:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMwMn-0002aZ-Dh for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 05:19:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMwMg-0006Qv-4p for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 05:19:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMwMf-0006Ql-U3 for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 05:19:18 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WMwMe-0006EI-Eu for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 10:19:16 +0100 Original-Received: from 114.248.1.149 ([114.248.1.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Mar 2014 10:19:16 +0100 Original-Received: from eric by 114.248.1.149 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Mar 2014 10:19:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.1.149 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:f1xkxoNEjy6Mme9FlHrpnBhXxus= 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:96382 Archived-At: I've been fighting gnus recently over mail splitting, trying to keep the variable nnimap-split-fancy set to my preferred value -- as I use gnus, some other part of the code keeps setting it to "nil" and messing up my splits. I'd really like to know what's doing that, so I'm trying to somehow trigger a message or a backtrace whenever that variable's value changes. I tried advising "set" (thinking that set was the most fundamental function for variable assignment), but that doesn't seem to get called. I advised "setq", but that gave me a recursion exception: defadvice probably uses setq itself. What are my other options? How do I figure out who keeps blanking this variable out? Thanks, Eric Using GNU Emacs 24.3.1. Hmm, maybe if I tried emacs from git, and the new add-function stuff...