[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Search for chars requiring "Alt Gr" keyboard modifier
From: |
Kevin Rodgers |
Subject: |
Re: Search for chars requiring "Alt Gr" keyboard modifier |
Date: |
Mon, 31 Jan 2005 09:43:24 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Enrique Perez-Terron wrote:
> I want to use the incremental search command (bound to ^S) to search
> for a string starting with the "@" character. On my Norwegian
> keyboard, this character requires the key combination "Alt Gr" + "2".
> (By "Alt Gr" I mean the key that was formerly known as "Mode Switch",
> currently I think it is called ISO-Level-2 or something similar. I
> have a GNU/Linux system -- Fedora Core 3 -- running on an AMD K6-2 (i586
> clone).)
>
> But as soon as I press the "Alt Gr" key, the "Search:" prompt
> disappears from the message line, and it appears that the Search
> command has been terminated, just like when I press e.g., an
> arrow key. When I subsequently type hit the "2" key, I get the message
> "Buffer is read-only", indicating that Emacs is running the self-insert
> command instead of incremental search.
>
> Eventually I was able to do the search because I located the first
> occurrence manually, and used the ^S ^W keys to have Emacs search for
> the next occurrence, but when I subsequently moved to another buffer
> and needed to find the "@" character there, there was no way to do it,
> short of typing the search string in a scratch buffer, searching for
> it using ^S ^W, and then repeating the search in the target buffer (^S
> ^S).
Since @ is character 64 in ASCII, ISO 8859-N, and Unicode, I'm sure you
can search for it via its octal code: C-s C-q 100 RET
But you could try setting search-exit-option to nil, or binding the
AltGr key to somthing (nil, or perhaps its global binding) in
isearch-mode-map.
--
Kevin Rodgers