I suspect something like this might be the problem: QUOTE %L is long file names. %1 is long file names IF * Explorer can find the exe file (it does not look very hard) AND * The file header says it is Win 95 aware Win16 exe, or * It is a 32 bit program Else %1 will be a short name.
ENDQUOTE (http://74.125.155.132/search?q=cache:OZ4PxlXS9zUJ:www.eggheadcafe.com/forum archives/Windows2000cmdpromptadmin/Sep2005/post23540199.asp+ftype+short+file +name&cd=12&hl=en&ct=clnk) So, this is probably not an EMACS problem, but rather a problem with the file association, or with a helper problem used to invoke EMACS. So, try replacing '%1' in 'ftype txtfile' with '%L'. Michael H. -----Original Message----- From: help-emacs-windows-bounces+michael=hotchin....@gnu.org [mailto:help-emacs-windows-bounces+michael=hotchin....@gnu.org] On Behalf Of Gayard, Leonel Sent: Thursday, May 21, 2009 7:10 AM To: help-emacs-windows@gnu.org Subject: [h-e-w] EmacsW32 renames buffers with old Windows shortened filenames. I've just installed the patched version of EmacsW32 from http://ourcomments.org/Emacs/EmacsW32.html I find it very nice that .txt files are associated wth Emacs, so that when you click on one, emacsclient opens it in the running instance of Emacs. Problem is, for some reason, the buffer is renamed with the old-style shortened file names, so, for example, the buffer with file "activities-2008.txt" is renamed to "ACTIV~1.TXT", which I don't like. How do I get EmacsW32 not to rename the buffer, and use the whole file name as the buffer name instead ? BTW: I've asked this same exact question on stackoverflow.com, but I guess that this mailing list might yield better results. Anyway, feel free to post your answer there as well, I'll gladly vote it up. http://stackoverflow.com/questions/892934/ Leonel Aguilar Gayard ---------------------------------------- GFT Iberia Solutions Sorocaba, São Paulo - Brazil