From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87prnfllez.fsf@cyd.mit.edu> <200805121823.m4CINPxA021854@quartzville.wv.mentorg.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1220821508-10698-0" X-Trace: ger.gmane.org 1220821747 31299 80.91.229.12 (7 Sep 2008 21:09:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 21:09:07 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 07 23:10:02 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KcRWD-0004WE-G6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Sep 2008 23:10:01 +0200 Original-Received: from localhost ([127.0.0.1]:32982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcRVD-0007VZ-NB for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Sep 2008 17:08:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcRTw-0005Zl-M4 for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 17:07:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcRTt-0005TQ-Lv for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 17:07:38 -0400 Original-Received: from [199.232.76.173] (port=35245 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcRTs-0005Sq-HT for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 17:07:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38339) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcRTr-0006sP-HE for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 17:07:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87L7W7v011905; Sun, 7 Sep 2008 14:07:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m87L58vd010745; Sun, 7 Sep 2008 14:05:08 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 227 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20322 Archived-At: This is a multi-part message in MIME format... ------------=_1220821508-10698-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 com= bine to make 'read-file-name return a subdirectory when user enters the par= ent has caused the Emacs bug report #227, regarding partial-completion-mode and completion-ignore-case combine to mak= e '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.) --=20 227: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D227 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1220821508-10698-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.9 required=4.0 tests=FOURLA,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 12 May 2008 18:23:35 +0000 Received: from mx10.gnu.org (mail.gnu.org [199.232.76.166]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4CINTU0003660 for ; Mon, 12 May 2008 11:23:31 -0700 Received: from relay1.mentorg.com ([192.94.38.131]:45359) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvcgL-0002z7-CM for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 14:23:29 -0400 Received: from em-wv03.wv.mentorg.com ([147.34.98.30]) by relay1.mentorg.com with esmtp id 1JvcgI-0001kE-8I from tjackson@wv.mentorg.com for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 11:23:26 -0700 Received: from quartzville.wv.mentorg.com ([147.34.37.95]) by em-wv03.wv.mentorg.com (8.8.8/CF5.40R) Received: from quartzville.wv.mentorg.com (localhost [127.0.0.1]) by quartzville.wv.mentorg.com (8.13.1/8.13.1) with ESMTP id m4CINP4i021857 for ; Mon, 12 May 2008 11:23:25 -0700 Received: (from tjackson@localhost) by quartzville.wv.mentorg.com (8.13.1/8.13.1/Submit) id m4CINPxA021854; Mon, 12 May 2008 11:23:25 -0700 Date: Mon, 12 May 2008 11:23:25 -0700 Message-Id: <200805121823.m4CINPxA021854@quartzville.wv.mentorg.com> From: Trey Jackson To: bug-gnu-emacs@gnu.org Subject: partial-completion-mode and completion-ignore-case combine to make 'read-file-name return a subdirectory when user enters the parent X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-GNU-Loop: 1 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: C-p C-p C-p C-p C-p C-p C-p C-p C-p C-e C-b 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 / ( 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 / 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 / M-x e m a r e p o o r 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 ------------=_1220821508-10698-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 227-done) by emacsbugs.donarmstrong.com; 7 Sep 2008 20:59:27 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87KxOU9007920 for <227-done@emacsbugs.donarmstrong.com>; Sun, 7 Sep 2008 13:59:25 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 64A2157E355; Sun, 7 Sep 2008 17:02:12 -0400 (EDT) From: Chong Yidong To: Trey Jackson Cc: 227-done@emacsbugs.donarmstrong.com 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 Message-ID: <87prnfllez.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 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. ------------=_1220821508-10698-0--