From: Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
Subject: Re: DOS-style filename in emacs 21.1 mode-line
Date: 24 Mar 2003 14:05:07 +0100 [thread overview]
Message-ID: <m37kaosynw.fsf@cicero.benny.turtle-trading.net> (raw)
In-Reply-To: 34defe4d.0303231307.78a54cfa@posting.google.com
Hi John,
jpwoodruff@irisinternet.net (John Woodruff) writes:
> On one occasion only -- when I drag & drop a file onto the Icon of a
> not-started emacs -- the file name is written in the mode-line in
> the old DOS notation of all-caps with 8 chars.
> [...]
> I am running the manufactured emacs from emacs-21.1-fullbin-i386 on
> windows 98.
file-truename does convert from short names to long names, but
plugging it into Emacs in the right place is a problem. Reading the
source, there doesn't seem a convinient hook. I'd suggest patching
the appropriate routine by adding this to your ~/.emacs:
(defadvice command-line-normalize-file-name
(before benny-command-line-normalize-file-name (file) activate)
(setq file (file-truename file)))
This works with 21.2.1 and Win95, I hope it works with 21.1, too.
Hope this helps, benny
next prev parent reply other threads:[~2003-03-24 13:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-23 21:07 DOS-style filename in emacs 21.1 mode-line John Woodruff
2003-03-24 4:28 ` Eli Zaretskii
2003-03-24 13:05 ` Benjamin Riefenstahl [this message]
[not found] ` <mailman.3547.1048480557.21513.help-gnu-emacs@gnu.org>
2003-03-25 4:40 ` John Woodruff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m37kaosynw.fsf@cicero.benny.turtle-trading.net \
--to=benjamin.riefenstahl@epost.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).