I just sent the below missive to the OS X Emacs mailing list.
How hard would it be to include mac-code-convert-string from mac.c in
Emacs.app?
Gruesse, Carsten
My biggest usability problem so far is Umlauts in file names.
These are stored in decomposed form in Mac HFS+ (and, while this is
hard to believe, actually delivered up to the system call interface
in this form).
Emacs is not very good in displaying characters of this form, and it
is rather non-intuitive to look at a file "Grüße.txt" in dired and
not being able to search for the ü in it.
Carbon Emacs includes a nice hack utf-8m.el that defines a new file-
name-coding-system utf-8m which fixes up Mac filenames in this respect.
Unfortunately, it is Emacs 22 (< 23) specific and relies on mac-code-
convert-string (mac.c), which is not available in Emacs.app.
So I whipped up a really ugly little hack of a previous version of
utf-8m.el, which did not use mac-code-convert-string.
(Unfortunately, this also means it only handles the most likely [for
me] cases of decomposed characters. I'd rather have mac-code-convert-
string, as this is a Mac-inflicted problem, and should be solved with
Mac tools. Anyway.)
You can download this hack at
http://www.viele-koeche.org/utf-8m-23.el
and use it in your .emacs like this:
(load "~/el/utf-8m-23") ; or whereever you put it
(set-file-name-coding-system 'utf-8m)
I know way too little about Emacs internals (and much less about
Emacs 23 internals) to say whether this is kosher, the right way to
do etc.
WORKSFORME(TM), though -- I now can use Emacs.app for everyday work.
While we are waiting for someone to come up with a real solution,
enjoy...
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-