emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Towards a cleaner build: erc.el


From: Stefan Monnier
Subject: Re: Towards a cleaner build: erc.el
Date: Thu, 13 Jun 2019 12:21:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> The problem here is that `str' is in the public calling convention on
> `erc-pre-send-hook': 
[...]
> That's a quite, er, uhm, strange way of doing it, but...  The
> traditional way is to offer a filter function that can alter the string.

I typically use (with-no-warnings (defvar str)) within the function
(but before the run-hook) for that.

> Would a way forward here be to obsolete this hook variable and add a new
> function along those lines?

I haven't looked in detail, but an erc-pre-send-function that filters the
string sounds good, yes.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]