From: Dima Kogan <dima@secretsauce.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 19363@debbugs.gnu.org
Subject: bug#19363: Acknowledgement (24.4.1; Notifications can make ERC unusable)
Date: Sun, 04 Jan 2015 13:26:15 -0800 [thread overview]
Message-ID: <87mw5ykyl8.fsf@secretsauce.net> (raw)
In-Reply-To: <jwvppau9vp1.fsf-monnier+emacsbugs@gnu.org>
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> If we have some (eval-after-load 'erc ...) stuff then by the time this
>> (defvar) is evaluated, the list may already have a value, so the defvar
>> then does NOT add its value to the list. The patch explicitly changes
>> the (defvar list default) idiom to
>> (defvar list nil) (add-to-list 'list default) and thus the default value
>> always appears in the list.
>
> But I do wonder: if the function *has* to be on that hook for ERC to
> work correctly, then maybe that function's place is not in the hook but
> right at those places where the hook is run (i.e. hard-coded).
> Could you (or someone who understands the code better than I do) take
> a look to see if such a change would be even better?
Hi. I suspect that hard-coding this would be a very big and unwelcome
change in this case because there's some indirection here. Each ERC
"response handler" has a hook such as this. The (defvar ...)
(add-to-list ...) happens in the macro that defines a response handler:
define-erc-response-handler, and the hooks are invoked in a general way
for all server responses in erc-handle-parsed-server-response.
So the bug I was seeing was due specifically to missing PRIVMSG response
handlers, but the patch fixes all response handlers generically.
next prev parent reply other threads:[~2015-01-04 21:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-13 6:32 bug#19363: 24.4.1; Notifications can make ERC unusable Dima Kogan
[not found] ` <handler.19363.B.141845239213530.ack@debbugs.gnu.org>
2014-12-31 8:34 ` bug#19363: Acknowledgement (24.4.1; Notifications can make ERC unusable) Dima Kogan
2014-12-31 8:59 ` Dima Kogan
2014-12-31 15:47 ` Dima Kogan
2015-01-04 19:52 ` Stefan Monnier
2015-01-04 21:26 ` Dima Kogan [this message]
2015-01-05 1:54 ` Stefan Monnier
2015-01-07 0:38 ` Dima Kogan
2014-12-31 17:46 ` Dima Kogan
2015-01-14 22:07 ` bug#19363: Close debbugs #19363 Kelvin White
2015-01-14 23:17 ` Kelvin White
2015-01-15 18:15 ` Glenn Morris
2015-01-15 23:41 ` Kelvin White
2015-01-16 13:27 ` bug#19363: Kelvin White
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=87mw5ykyl8.fsf@secretsauce.net \
--to=dima@secretsauce.net \
--cc=19363@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.