[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Towards a cleaner build: erc.el
From: |
Lars Ingebrigtsen |
Subject: |
Re: Towards a cleaner build: erc.el |
Date: |
Thu, 13 Jun 2019 02:04:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
In erc-send-input:
erc/erc.el:5462:9:Warning: global/dynamic var `str' lacks a prefix
The problem here is that `str' is in the public calling converion on
`erc-pre-send-hook':
---
(defcustom erc-send-pre-hook nil
"Hook called first when some text is sent through `erc-send-current-line'.
It gets called with one argument, STRING.
To change the text that will be sent, set the variable `str' which is
used in `erc-send-current-line'.
---
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.
Would a way forward here be to obsolete this hook variable and add a new
function along those lines?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Towards a cleaner build: other output, (continued)
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/17
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/18
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/18
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/18
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/18
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/18
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/18
- Re: Towards a cleaner build: viper-ex, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build: project.el, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build: obsolete/cl-compat.el, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build: erc.el,
Lars Ingebrigtsen <=
- Re: Towards a cleaner build: calendar, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: cedet, Noam Postavsky, 2019/06/13
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: cedet, Noam Postavsky, 2019/06/13
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: cedet, Stefan Monnier, 2019/06/13