From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: 550@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org
Subject: bug#550: 23.0.60; A case where file-truename ignores case on w32
Date: Sat, 12 Jul 2008 00:46:49 +0200 [thread overview]
Message-ID: <4877E2D9.7080303@gmail.com> (raw)
In-Reply-To: <4877D5A9.3060107@gnu.org>
Jason Rumney wrote:
> Lennart Borgman (gmail) wrote:
>> I got a bug report from a user concerning nXhtml. The problem seems to
>> be that Emacs ignores case in an existing directory name.
>
> Only when the file does not exist. In that case, w32-long-file-name
> returns nil and the original string that was passed in to file-truename
> is used. The solution is probably to recursively descend the directory
> heirarchy until we find a directory that exists, and call
> w32-long-file-name on that.
I suggest replacing
(or (w32-long-file-name filename) filename)))
in `true-filename' with
(let ((w32-filename (w32-long-file-name filename))
(root filename)
w32-root)
(while (not w32-filename)
(when (eq ?/ (car (last (append root nil))))
(setq root (substring root 0 -1)))
(setq root (file-name-directory root))
(if (not root)
(setq w32-filename filename)
(setq w32-root (w32-long-file-name root))
(when w32-root
(setq w32-filename
(concat w32-root
(substring filename (length w32-root)))))))
w32-filename)
next prev parent reply other threads:[~2008-07-11 22:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-11 21:16 bug#550: 23.0.60; A case where file-truename ignores case on w32 Lennart Borgman (gmail)
2008-07-11 21:50 ` Jason Rumney
2008-07-11 22:46 ` Lennart Borgman (gmail) [this message]
2008-07-11 23:23 ` Jason Rumney
2008-07-11 23:49 ` Lennart Borgman (gmail)
2008-07-11 23:30 ` bug#550: marked as done (23.0.60; A case where file-truename ignores case on w32) Emacs bug Tracking System
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=4877E2D9.7080303@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=550@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=jasonr@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).