Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to disable binding for `zap-up-to-char'?

46 views
Skip to first unread message

david s.

unread,
Sep 4, 2012, 5:55:30 PM9/4/12
to
Hi,
i am running xemacs 21.5.31, and i have this problem:
i hate having C-z bound to `zap-up-to-char' (i have been used for nearly 20 years
to have something else there).
The documentation says that
"The new command `zap-up-to-char' ... is not bound to a key by default."
However it appears that *it is* bound to C-z.
And i cannot unset the binding, i have tried with everything i could think of,
e.g.
(global-unset-key "\C-z")
and similar. Nothing works.
I'd be very grateful for suggestions.
Thanks,
David

Julian Bradfield

unread,
Sep 5, 2012, 2:32:43 AM9/5/12
to
On 2012-09-04, david s. <davide.s...@gmail.com> wrote:
> i am running xemacs 21.5.31, and i have this problem:
> i hate having C-z bound to `zap-up-to-char' (i have been used for nearly 20 years
> to have something else there).
> The documentation says that
> "The new command `zap-up-to-char' ... is not bound to a key by default."
> However it appears that *it is* bound to C-z.
> And i cannot unset the binding, i have tried with everything i could think of,
> e.g.
> (global-unset-key "\C-z")
> and similar. Nothing works.

That's because it's bound in the window-system-only map rather than
the global map.

(define-key global-window-system-map "\C-z" nil)

should do it.

david s.

unread,
Sep 5, 2012, 1:41:11 PM9/5/12
to
That indeed solved my problem. Thanks a lot, Julian for
your prompt and accurate answer!

DS
0 new messages