From: Cecil Westerhof <Cecil@decebal.nl>
To: help-gnu-emacs@gnu.org
Subject: Re: Disabling M-q
Date: Tue, 21 May 2013 10:13:22 +0200 [thread overview]
Message-ID: <877giswy1p.fsf@Aspire.decebal.nl> (raw)
In-Reply-To: mailman.25881.1368673172.855.help-gnu-emacs@gnu.org
Op donderdag 16 mei 2013 04:59 CEST schreef Yuri Khan:
> 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.
I have tried (I am not using it):
(local-set-key (kbd "M-q") 'ignore)
and it works. I send the improved solution to my friend.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
prev parent reply other threads:[~2013-05-21 8:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-15 15:31 Disabling M-q Cecil Westerhof
2013-05-16 2:59 ` Yuri Khan
2013-05-18 4:43 ` B. T. Raven
2013-05-18 10:26 ` Emanuel Berg
2013-05-18 17:44 ` B. T. Raven
2013-05-21 8:21 ` Cecil Westerhof
2013-05-21 16:44 ` Drew Adams
2013-05-21 16:57 ` B. T. Raven
[not found] ` <mailman.131.1369154672.22516.help-gnu-emacs@gnu.org>
2013-05-21 18:35 ` Cecil Westerhof
2013-05-21 20:29 ` Drew Adams
2013-05-21 20:44 ` B. T. Raven
2013-05-22 14:59 ` Drew Adams
[not found] ` <mailman.25881.1368673172.855.help-gnu-emacs@gnu.org>
2013-05-21 8:13 ` Cecil Westerhof [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877giswy1p.fsf@Aspire.decebal.nl \
--to=cecil@decebal.nl \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).