help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Disabling M-q


From: Yuri Khan
Subject: Re: Disabling M-q
Date: Thu, 16 May 2013 09:59:26 +0700

On Wed, May 15, 2013 at 10:31 PM, Cecil Westerhof <Cecil@decebal.nl> wrote:
> A friend asked how to disable M-q. My first thought was:
>     (local-unset-key (kbd "\M-q"))
> or
>     (local-set-key (kbd "M-q") nil)

You need to unset the key in the map that sets it, or override it with
another function in a higher-priority map (as you do below with the
empty string, which is not a proper function).

> But both did not work. I am now using:
>     (local-set-key (kbd "M-q") "")
>
> and this works. Is this the best way, or is there a better way?

You could bind the `ignore' function discussed recently on this list.



reply via email to

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