bug#13921: 24.2; Misbehavior of expand-file-name on Cygwin with Emacs 24
From:
Barry OReilly
Subject:
bug#13921: 24.2; Misbehavior of expand-file-name on Cygwin with Emacs 24.2
Date:
Sun, 10 Mar 2013 22:03:31 -0400
When I attempted to build CEDET from their bzr trunk (revno 8498), the build failed due to expand-file-name function returning an incorrect "d:" prefix. Under other conditions expand-file-name returns the correct "c:" prefix. Some command line IO will illustrate:
Comparing the backtrace above with the source code, it's evident expand-file-name prepended the "d:" to the filename to get: "d:/home/epich/sw/cedet/lisp/cedet/loaddefs.el".
However, when I evaluate (expand-file-name "/home/epich/sw/cedet/lisp/cedet") in the the scratch, I get "c:/home/epich/sw/cedet/lisp/cedet". I edited CEDET's Emacs command above to exclude -f batch-update-autoloads and added a debug statement:
In GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-28 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include'
Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t
Major mode: Text
Minor modes in effect: shell-dirtrack-mode: t global-whitespace-mode: t evil-mode: t evil-local-mode: t global-undo-tree-mode: t undo-tree-mode: t show-paren-mode: t
delete-selection-mode: t global-auto-revert-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t
auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t