Subject: bug#2413: file-directory-p reports incorrect value for ftp root files

From: Gabe Black <[email-masked]>
Date: Fri, 20 Feb 2009 13:05:34 -0600

I have a file on a ftp location 10.0.42.141 called ph_exec.  In emacs 
22.2.1 this code works correctly.

(setq ange-ftp-dumb-unix-host-regexp ".*")
(file-directory-p "/[email-masked]:/ph_exec.exe")

however in 22.3.1 it does not work and incorrectly reports ph_exec as 
being a directory

In GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
 of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

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
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Apropos

Minor modes in effect:
  shell-dirtrack-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-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
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
l o a d <tab> l i <tab> <return> a n g e - f <tab> 
t <backspace> <return> C-x b <return> C-x C-e <up> 
C-x C-e <down> C-x C-e C-g C-g <f1> q C-g C-g q C-e 
C-x C-e <down-mouse-1> <mouse-1> M-x v e r s o p m 
<return> <backspace> <backspace> <backspace> i o n 
<return> M-x a n g e <tab> l <tab> <tab> <backspace> 
<tab> a d <tab> d u <tab> <return> 1 0 . 0 . 4 2 . 
1 4 1 <return> C-x C-e M-x a n g e <tab> <tab> n s 
<tab> <return> 1 0 . 0 . 4 2 . 1 4 1 <return> C-x C-e 
M-x a n <tab> g <tab> r e <tab> r e <tab> <return> 
C-x C-e M-x v e r s o p m <return> <backspace> <backspace> 
<backspace> i o n <return> <down-mouse-1> <mouse-1> 
<return> ( s e t q SPC t r a m p - d e f a u l t - 
m e t h o d SPC " f t p " ) <up> C-a C-SPC <down> <down> 
<down> M-w C-x C-s C-g C-g C-g <up> C-x C-e <down> 
C-e C-x C-g C-g C-x C-e <down> <down-mouse-1> <mouse-1> 
C-x b <return> <next> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <down-mouse-1> <mouse-1> 
M-x a n g <backspace> <backspace> <backspace> e m <tab> 
C-g M-x a p r <tab> <return> b u g <return> <help-echo> 
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <wheel-down> 
<double-wheel-down> <wheel-down> <double-wheel-down> 
<wheel-down> <double-wheel-down> <wheel-down> <wheel-down> 
<double-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <wheel-down> <wheel-down> <double-wheel-down> 
<wheel-down> <wheel-down> <double-wheel-down> <help-echo> 
<down-mouse-1> <mouse-2> <help-echo> <help-echo> <help-echo> 
<down-mouse-1> <mouse-1> M-x r e p o r t - e m <tab> 
<return>

Recent messages:
Mark activated
Quit [3 times]
"ftp"
Quit
t
Making completion list...
Quit
Loading apropos...done
Type C-x 4 C-o RET to restore the other window. 
Loading emacsbug...done

Thanks,
Gabe Black | National Instruments | System Software | 512.683.8761