bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#227: marked as done (partial-completion-mode and completion-ignore-


From: Emacs bug Tracking System
Subject: bug#227: marked as done (partial-completion-mode and completion-ignore-case combine to make 'read-file-name return a subdirectory when user enters the parent)
Date: Sun, 7 Sep 2008 14:05:08 -0700

Your message dated Sun, 07 Sep 2008 17:02:12 -0400
with message-id <87prnfllez.fsf@cyd.mit.edu>
and subject line Re: partial-completion-mode and completion-ignore-case combine 
to make 'read-file-name return a subdirectory when user enters the parent
has caused the Emacs bug report #227,
regarding partial-completion-mode and completion-ignore-case combine to make 
'read-file-name return a subdirectory when user enters the parent
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
227: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=227
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: partial-completion-mode and completion-ignore-case combine to make 'read-file-name return a subdirectory when user enters the parent Date: Mon, 12 May 2008 11:23:25 -0700
scenario:  you have a directory (/scratch2/rfn-bug) that contains some number 
of files, and one sub-directory (/scratch2/rfn-bug/frog).
You are prompted for a file name via 'read-file-name, you enter 
"/scratch2/rfn-bug" and that is properly returned, you enter 
"/scratch2/rfn-bug/" and what is returned is "/scratch2/rfn-bug/frog"

To reproduce:

in a shell:
  mkdir /scratch2/rfn-bug
  touch /scratch2/rfn-bug/a
  touch /scratch2/rfn-bug/b
  mkdir /scratch2/rfn-bug/frog

Run emacs, and then evaluate:

   (setq read-file-name-completion-ignore-case t)
   (require 'complete)
   (partial-completion-mode t)
   (read-file-name prompt dir dir 'must-match nil 'file-directory-p)

When you enter "/scratch2/rfn-bug", you'll get back "/scratch2/rfn-bug"
When you enter "/scratch2/rfn-bug/", you'll get back "/scratch2/rfn-bug/frog"

If read-file-name-completion-ignore-case is nil, this problem does not happen.
If there are more than one subdirectory, this problem does not happen.
If the single subdirectory is a link, you get the same behavior.
Running on linux (as seen below).

I built this version of Emacs myself, but did nothing custom, just the
standard ./configure, gmake, gmake install.  This bug was reproduced running 
emacs w/out an initialization file.



thanks,

TJ



In GNU Emacs 22.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-06-13 on quartzville
Windowing system distributor `The X.Org Foundation', version 11.0.60802000
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: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  partial-completion-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:
<down-mouse-2> <mouse-2> <down-mouse-2> <mouse-2> C-p 
C-p C-p C-p C-p C-p C-p C-p C-p C-e C-b <backspace> 
<backspace> <backspace> t C-e C-j C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-e C-p C-e C-j / <return> <help-echo> 
( r e q u i r e SPC ' c o m p l e t e ) C-j C-p C-p 
C-p C-p C-e C-j / <return> C-n C-n C-n C-n ( p a r 
t i a l - c o m p l e t i o n - m o d e SPC t ) C-j 
C-p C-p C-p C-p C-p C-p C-p C-p C-e C-j / <return> 
<help-echo> M-x e m a <backspace> <backspace> <backspace> 
r e p o <tab> <backspace> o r <tab> <return>

Recent messages:
("emacs" "-q")
For information about the GNU Project and its goals, type C-h C-p. [2 times]
Mark set
prompt here after complete/scratch2/rfn-bug/
Loading advice...done
prompt here after complete/scratch2/rfn-bug/
prompt here after complete/scratch2/rfn-bug/frog/
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done



--- End Message ---
--- Begin Message --- Subject: Re: partial-completion-mode and completion-ignore-case combine to make 'read-file-name return a subdirectory when user enters the parent Date: Sun, 07 Sep 2008 17:02:12 -0400
>   mkdir /scratch2/rfn-bug
>   touch /scratch2/rfn-bug/a
>   touch /scratch2/rfn-bug/b
>   mkdir /scratch2/rfn-bug/frog
>
> Run emacs, and then evaluate:
>
>    (setq read-file-name-completion-ignore-case t)
>    (require 'complete)
>    (partial-completion-mode t)
>    (read-file-name prompt dir dir 'must-match nil 'file-directory-p)
>
> When you enter "/scratch2/rfn-bug/", you'll get back
> "/scratch2/rfn-bug/frog"

I've checked in a fix into CVS.  Thanks for the bug report.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]