GNU bug report logs -
#72229
(setq overriding-terminal-local-map nil) in isearch-done
Previous Next
Full log
Message #8 received at 72229 <at> debbugs.gnu.org (full text, mbox):
Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs <at> gnu.org> writes:
> exiting isearch always explicitly sets `overriding-terminal-local-map'
> to nil. This will interfere with any other users of
> `overriding-terminal-local-map', including any active transient maps.
>
> Wouldn't a less radical means suffice? If isearch really must _set_,
> i.e., completely override that variable, why not restore the original
> value?
Juri, what's your opinion on this?
A little more forward looking:
In such situations I often get this thought: if the variable was
replaced with a function accepting zero arguments, then we could use
`add-function' and `remove-function' to control the return value of the
"binding".
I know the advice mechanism has the reputation of only being suitable
for end user customization/hacks, but in cases like this one we could
make the modification of the value more explicit and controllable.
Dealing with interferences would be forced to be taken into account more
directly , and we would get some useful mechanisms like priorities or
looking at the context out of the box.
We could also invent some even better mechanism, maybe. But in this
case binding variables doesn't look like an optimal approach at least.
Michael.
This bug report was last modified 1 year and 29 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.