[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Run hook when variable is set
From: |
Kelly Dean |
Subject: |
Re: [PATCH] Run hook when variable is set |
Date: |
Sat, 31 Jan 2015 09:23:07 +0000 |
Richard Stallman wrote:
> Hooks on setting variables is a fundamentally bad idea
> because it means that Lisp code which appears to just bind variables
> can call functions where you did not expect it.
But what if it's documented? For example, it's documented that setting the
variable cursor-type not only sets a variable, but also has the side effect of
changing how the cursor is displayed.
Disabling dynamic-cursor-mode could simply be another documented side effect of
setting cursor-type. And DCM itself should also document that it's disabled
when cursor-type is set, which is why I already included that in the docstring
in the patch I posted.
Besides that, hooks on setting variables would be useful for debugging.
- Re: [PATCH] Proposal to change cursor appearance to indicate region activation, (continued)
- Re: [PATCH] Run hook when variable is set, Stefan Monnier, 2015/01/28
- Re: [PATCH] Run hook when variable is set, Kelly Dean, 2015/01/29
- Re: [PATCH] Run hook when variable is set, Lars Ingebrigtsen, 2015/01/29
- Re: [PATCH] Run hook when variable is set, Stefan Monnier, 2015/01/29
- Re: [PATCH] Run hook when variable is set, Kelly Dean, 2015/01/30
- Re: [PATCH] Run hook when variable is set, Stefan Monnier, 2015/01/30
- Re: [PATCH] Run hook when variable is set, Kelly Dean, 2015/01/31
- Re: [PATCH] Run hook when variable is set, Stefan Monnier, 2015/01/31
- Re: [PATCH] Run hook when variable is set, Richard Stallman, 2015/01/30
- Re: [PATCH] Run hook when variable is set,
Kelly Dean <=
- Re: [PATCH] Run hook when variable is set, Richard Stallman, 2015/01/31
- Re: [PATCH] Run hook when variable is set, Alexis, 2015/01/31
- Re: [PATCH] Run hook when variable is set, Stefan Monnier, 2015/01/31
- Re: [PATCH] Run hook when variable is set, Eli Zaretskii, 2015/01/29
- Re: [PATCH] Run hook when variable is set, Kelly Dean, 2015/01/30
- Re: [PATCH] Run hook when variable is set, Eli Zaretskii, 2015/01/30