all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 15692@debbugs.gnu.org, Leo Liu <sdl.web@gmail.com>
Subject: bug#15692: 24.3.50; rcirc activity mode-line indicator gets cleared automatically
Date: Wed, 23 Oct 2013 16:00:31 +0200	[thread overview]
Message-ID: <878uxk9jeo.fsf@tsdh.uni-koblenz.de> (raw)
In-Reply-To: <jwvy55kyx3k.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Wed, 23 Oct 2013 08:46:42 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> 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 [<something>] 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





  reply	other threads:[~2013-10-23 14:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23  8:18 bug#15692: 24.3.50; rcirc activity mode-line indicator gets cleared automatically Tassilo Horn
2013-10-23  8:39 ` Leo Liu
2013-10-23  9:13   ` Tassilo Horn
2013-10-23 12:46     ` Stefan Monnier
2013-10-23 14:00       ` Tassilo Horn [this message]
2013-10-23 15:09         ` Tassilo Horn
2013-10-25  1:12           ` Stefan Monnier
2013-10-25  6:54             ` Tassilo Horn
2013-10-23 20:10         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878uxk9jeo.fsf@tsdh.uni-koblenz.de \
    --to=tsdh@gnu.org \
    --cc=15692@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.