|
From: | Peter Dyballa |
Subject: | Re: GNU Emacs 22.0.50 fails to find ä in different ISO Latin encodings |
Date: | Fri, 22 Sep 2006 12:55:12 +0200 |
Am 22.09.2006 um 12:31 schrieb Miles Bader:
Peter Dyballa <address@hidden> writes:C-s C-q 245 in ISO 8859-16 does not find ``„´´ (U+201E) – mini- buffer tells me that ``¥´´ (\245 in ISO 8859-1) cannot be found.That's because the numeric code following C-q is _not_ a unicode code point, it's an Emacs character code. In Emacs 22 those two things arevery different (in Emacs 23, I guess they are the same, as Emacs 23 usesunicode for its internal codes). You can see the "Emacs character code" of a character by hitting C-x = on top of that character in a buffer.E.g., C-x = says that ``„´´ has Emacs code 1234576, and indeed entering`C-s C-q 1234576 RET' successfully searches for „ ! Similarly, the Emacs code for ¥ is 4245, and that also works correctly following C-q.
This might be the correct way in a GNU Emacs way, but not in the way an Emacs user would use it. Or can I type C-q 4245 RET to input ¥ in some file? (Well, it actually works ...) Having to use other numbers than the well-known three digits wide ones is not the usual user experience. The so-called character code is a known quantity and supported by some operating systems. (There is also the option to change the 'base' of the character code notation from 8 to 16, to be able to input the Unicode slot number. This should work also IMO.)
-- Greetings Pete Basic, n.: A programming language. Related to certain social diseases in that those who have it will not admit it in polite company.
[Prev in Thread] | Current Thread | [Next in Thread] |