From: Nikolaj Schumacher <me@nschum.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Setting auto-indentation of braces
Date: Thu, 05 Mar 2009 10:20:12 +0100 [thread overview]
Message-ID: <m2k574e377.fsf@nschum.de> (raw)
In-Reply-To: <9BErl.299$l83.30@read4.inet.fi> (Juha Nieminen's message of "Wed, 04 Mar 2009 23:59:01 GMT")
Juha Nieminen <nospam@thanks.invalid> wrote: > Juha Nieminen
wrote: >> Juha Nieminen wrote: >>> Kevin Rodgers kirjoitti: >>>>
(global-set-key (kbd "M-7") "{") >>> (global-set-key "M-7" "{")
seems to work as well. >>> >> New problem: When I do that, and
then press ctrl-s to start a search >> and press the key
combination in question, rather than inserting { in >> the search
area at the bottom of the window, it instead cancels the >> search
and inserts the { in the current buffer, as if I hadn't started a
>> search at all. >> >> Why is it doing that?
I think I can tell you why. isearch is a mode, and it terminates
itself automatically on every command it doesn't recognize.
Assigning keys that way is the same as using a keyboard macro,
which inserts an additional command in the queue, causing isearch
to exit.
Here's my work-around:
(defun do-what-backspace-does () (interactive) (call-interactively
(key-binding (kbd "<backspace>")))) (global-set-key "\C-h"
'do-what-backspace-does)
I think it should work in your case, too. regards, Nikolaj
Schumacher
PS: If you'd use a real email address (even if you don't read it),
you'd save me the trouble of getting my emails returned to me as
undeliverable. Thanks.
next prev parent reply other threads:[~2009-03-05 9:20 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 10:10 Setting auto-indentation of braces Juha Nieminen
2009-02-10 16:02 ` Tiago Pierezan Camargo
2009-02-10 16:46 ` Alan Mackenzie
[not found] ` <mailman.328.1234283149.31690.help-gnu-emacs@gnu.org>
2009-02-11 15:28 ` Juha Nieminen
2009-02-16 9:50 ` Juha Nieminen
2009-02-18 8:44 ` Juha Nieminen
2009-02-18 19:00 ` Peter Dyballa
2009-02-19 4:07 ` Kevin Rodgers
[not found] ` <mailman.1146.1235016448.31690.help-gnu-emacs@gnu.org>
2009-02-23 9:47 ` Juha Nieminen
2009-02-23 11:24 ` Teemu Likonen
2009-02-24 4:56 ` Kevin Rodgers
[not found] ` <mailman.1617.1235451361.31690.help-gnu-emacs@gnu.org>
2009-02-24 17:22 ` Juha Nieminen
2009-02-25 16:14 ` Juha Nieminen
2009-03-04 23:59 ` Juha Nieminen
2009-03-05 9:20 ` Nikolaj Schumacher [this message]
[not found] ` <mailman.2415.1236244816.31690.help-gnu-emacs@gnu.org>
2009-03-09 9:45 ` Juha Nieminen
2009-03-12 5:15 ` Kevin Rodgers
[not found] ` <mailman.2991.1237105197.31690.help-gnu-emacs@gnu.org>
2009-03-23 7:56 ` Juha Nieminen
2009-03-23 16:07 ` Peter Dyballa
[not found] ` <mailman.3832.1237824475.31690.help-gnu-emacs@gnu.org>
2009-03-23 18:53 ` Juha Nieminen
2009-03-27 7:15 ` Juha Nieminen
[not found] ` <mailman.1097.1234983644.31690.help-gnu-emacs@gnu.org>
2009-02-18 23:43 ` Juha Nieminen
2009-02-19 9:40 ` Peter Dyballa
2009-02-18 12:57 ` tyler
[not found] ` <mailman.1065.1234961877.31690.help-gnu-emacs@gnu.org>
2009-02-18 18:00 ` Juha Nieminen
2009-02-19 11:31 ` Miles Bader
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2k574e377.fsf@nschum.de \
--to=me@nschum.de \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.