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

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

Re: Setting auto-indentation of braces


From: Kevin Rodgers
Subject: Re: Setting auto-indentation of braces
Date: Wed, 11 Mar 2009 23:15:46 -0600
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

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.

  This is exactly what I was looking for. I didn't know you could give
directly a string to global-set-key, rather than a command (as I
mentioned, my knowledge of elisp is next to nil).

  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?

Because when you've typed C-s, the global keymap is not the highest
precedence keymap that has bound M-7: isearch-mode-map is, and it
binds all escape sequences (to which Meta-prefixed characters are
translated) to isearch-other-meta-char.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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