From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: File name completion on Mac OS X with German umlauts Date: Mon, 10 Mar 2008 23:49:37 +0100 Message-ID: <7D51AFEB-773A-4529-9D59-4BC5B6D29F66@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1205189549 31425 80.91.229.12 (10 Mar 2008 22:52:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2008 22:52:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Markus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 23:52:56 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JYqrD-0007jB-Nt for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2008 23:52:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYqqf-0005bd-ER for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2008 18:52:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JYqoQ-00048m-ND for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 18:49:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JYqoP-00047u-Vx for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 18:49:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYqoP-00047l-IF for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 18:49:41 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JYqoO-0008Vc-UG for help-gnu-emacs@gnu.org; Mon, 10 Mar 2008 18:49:41 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id F0701D2450C6; Mon, 10 Mar 2008 23:49:39 +0100 (CET) Original-Received: from [195.4.204.11] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JYqoN-0006ZB-00; Mon, 10 Mar 2008 23:49:39 +0100 In-Reply-To: X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+jraN2dHzXIcUo6BoUSX+zgJxVGwHK/uOHEb/v zNSPxNiik/iL1SWzl7AMo3zFUbUZ3NScZ53RnmXmOEiG+aOy1k EXLBsygWw5PDrm0qwUlw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52237 Archived-At: Am 10.03.2008 um 22:25 schrieb Markus: > Err, my mode-line looks like this: 1:-- r=C3=BCckerstattung.txt > > When hovering the 1, the tool tip says: iso-latin-1-unix buffer > > But this tells you about the encoding of the file content, not its =20 > name, I guess! Not really! GNU Emacs reads the contents of the file in cold blood. =20 Then, according to the encoding set or chosen, it *presents* this =20 pile of bytes as a bunch of glyphs taken from the font used. The =20 encoding maps one or more bytes to a single character. Each such =20 character has its distinct character code. According to this the =20 glyph is chosen from the font and displayed. The encoding of the file contents can be "encoded" (better: recorded =20 or saved) in a local variable inside the file ... as an option. A byte \327 (octal, 215 dec, D7 hex) represents in most ISO 8859 =20 encodings (1, 2, 3, 4, 9, 13, 15) the MULTIPLICATION SIGN at U+00D7 =20 (in UTF-8 it's encoded as the two bytes C3 97). The same byte is in ISO 8859-5 the CYRILLIC SMALL LETTER ZE at U+0437 =20= (D0 B7 in UTF-8), in ISO 8859-6 the ARABIC LETTER TAH at U+0637 =20= (D8 B7 in UTF-8), in ISO 8859-7 the GREEK CAPITAL LETTER CHI at U+03A7 =20= (CE A7 in UTF-8), in ISO 8859-11 the THAI CHARACTER SARA UEE at U+0E37 =20= (E0 B8 B7 in UTF-8), in ISO 8859-14 the LATIN CAPITAL LETTER T WITH DOT ABOVE at U+1E6A =20= (E1 B9 AA in UTF-8), in ISO 8859-16 the LATIN CAPITAL LETTER S WITH ACUTE at U+015A =20= (C5 9A in UTF-8). (Continue with Mac, NeXT, MS, ... encodings!) Usually Emacs learns from the shell which encoding is used, or might =20 be preferred. In Mac OS X (as on the NeXT) a different mechanism to =20 launch or create a process is used, without shell interaction. So =20 Cocoa or Carbon applications (Aqua clients?) come up as babies, as =20 mentioned by Tim Buckley in his =E2=80=9CSong To The Siren.=E2=80=9D = Since your =20 shell in Terminal has the proper settings, you could launch *another* =20= Aquamacs Emacs from Terminal as "/Applications/Aquamacs\ Emacs.app/=20 Contents/MacOS/Aquamacs\ Emacs &" or as single application as "open /=20 Applications/Aquamacs\ Emacs.app" =E2=80=93 without &. The variable = process-=20 environment has the environment in which Emacs runs. You could also =20 create a *shell* buffer inside Emacs and check the *shell* buffer's =20 environment. It should be quite the same. If either of these launch methods does not create a ``-u:=C2=B4=C2=B4 = mode-=20 line, then you have some code, probably in your init file, that =20 changes the well derived value to something pre-historic. A (prefer-coding-system 'utf-8) could correct this (or a value of utf-8m, which will help with the =20 decomposed file names). (The Emacs Wiki has nodes related to Mac OS X =20= and its way to create a process with a link to apple documents.) >> And you never tried in Finder, best when you have at least one =20 >> file starting with a or A and at least another one starting with =20 >> =EF=BF=BD or =EF=BF=BD, just to type - not in the search hole! =EF=BF=BD= a or =EF=BF=BD? > > Well, after having replied to your message, I understood what you =20 > meant. So I created a couple of files called ra, rb, rc, ru and r=C3=BC.= =20 > Typing r=C3=BC in Finder selects ru, not r=C3=BC ... Finder ain't = smarter =20 > here. Duh :-( Pressing TAB you can re-search. Try this, too! -- Mit friedvollen Gr=C3=BC=C3=9Fen Pete Encryption, n.: A powerful algorithmic encoding technique employed in the creation of computer manuals.