From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#15692: 24.3.50; rcirc activity mode-line indicator gets cleared automatically Date: Wed, 23 Oct 2013 16:00:31 +0200 Message-ID: <878uxk9jeo.fsf@tsdh.uni-koblenz.de> References: <87hac89z83.fsf@tsdh.uni-koblenz.de> <87d2mw9wov.fsf@tsdh.uni-koblenz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382536883 11931 80.91.229.3 (23 Oct 2013 14:01:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2013 14:01:23 +0000 (UTC) Cc: 15692@debbugs.gnu.org, Leo Liu To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 16:01:26 2013 Return-path: Envelope-to: geb-bug-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 1VYyzv-0000VC-3Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 16:01:19 +0200 Original-Received: from localhost ([::1]:49554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYyzu-0002Ea-NF for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 10:01:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYyzl-00027g-D3 for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 10:01:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYyzf-0001Iq-HG for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 10:01:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYyzf-0001Ik-CP for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 10:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VYyze-0007Q3-Lg for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2013 10:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2013 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15692-submit@debbugs.gnu.org id=B15692.138253684428495 (code B ref 15692); Wed, 23 Oct 2013 14:01:02 +0000 Original-Received: (at 15692) by debbugs.gnu.org; 23 Oct 2013 14:00:44 +0000 Original-Received: from localhost ([127.0.0.1]:37846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYyzL-0007PW-Fa for submit@debbugs.gnu.org; Wed, 23 Oct 2013 10:00:44 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:37018) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYyzB-0007P9-CU for 15692@debbugs.gnu.org; Wed, 23 Oct 2013 10:00:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 2EFC21A843F; Wed, 23 Oct 2013 16:00:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G4AHX5k-baTR; Wed, 23 Oct 2013 16:00:31 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from tsdh.uni-koblenz.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id A5EA21A843E; Wed, 23 Oct 2013 16:00:31 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Wed, 23 Oct 2013 08:46:42 -0400") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79534 Archived-At: Stefan Monnier writes: >> The only function doing that in rcirc should be >> `rcirc-update-activity-string'. So I've edebugged that, but >> sometimes it occurs that the activity string changes without me being >> put in the debugger. > > Better put a `message' in there, in case the function is called from a > context where debugging is inhibited (e.g. redisplay). Ok, within a few minutes and without ever switching to any of the rcirc buffers, I get Setting rcirc-activity-string from [] to [#git]. Setting rcirc-activity-string from [#git] to []. Setting rcirc-activity-string from [] to [#git]. Setting rcirc-activity-string from [#git] to []. Setting rcirc-activity-string from [] to [#git]. Setting rcirc-activity-string from [#git] to []. Setting rcirc-activity-string from [] to [#git]. Setting rcirc-activity-string from [#git] to []. Setting rcirc-activity-string from [] to [#git]. Setting rcirc-activity-string from [#git] to []. Setting rcirc-activity-string from [] to [#ema]. Setting rcirc-activity-string from [#ema] to [#git,#ema]. Setting rcirc-activity-string from [#git,#ema] to []. The switches from [] to [] should never have happened. Hm, debugging a bit further, the problem is that `rcirc-activity' is already wrong, i.e., it's oftentimes set to nil although there should still be buffers with unseen activity. So then I tried to edebug `rcirc-record-activity', and I got an error about a void-function `pushnew'. I guess that edebugging interprets the function, so pushnew is undefined because cl was only required at compile-time. Ok, now I did (require 'cl)... I also added a message in there plus a (debug) when rcirc-activity turns nil, but of course since I've done that it's working properly for a much too long time... Really strange. Is there any chance that the bug occurs only in compiled code? >> Is there a way to be put into the debugger whenever a variable is >> set, no matter what function does it? > > No. It wouldn't be very hard to add, tho. It's definititely not the first time where I could need something like that. Maybe it could also be a bit more general, e.g., one could add a watcher function to a symbol that's called whenever the symbol-value is set. Bye, Tassilo