From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10102: emacs 24 read-file-name bug? Date: Mon, 21 Nov 2011 23:33:01 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1321936442 23405 80.91.229.12 (22 Nov 2011 04:34:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Nov 2011 04:34:02 +0000 (UTC) Cc: 10102@debbugs.gnu.org To: Lachlan Deck Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 22 05:33:58 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RSi3Q-0004PP-H6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Nov 2011 05:33:56 +0100 Original-Received: from localhost ([::1]:36779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSi3Q-0001yg-32 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Nov 2011 23:33:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSi3N-0001yL-3f for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2011 23:33:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSi3F-0004s4-Ms for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2011 23:33:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSi3E-0004pY-Hn for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2011 23:33:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RSi4T-0004x9-Lo for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2011 23:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2011 04:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10102 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible Original-Received: via spool by 10102-submit@debbugs.gnu.org id=B10102.132193646218972 (code B ref 10102); Tue, 22 Nov 2011 04:35:01 +0000 Original-Received: (at 10102) by debbugs.gnu.org; 22 Nov 2011 04:34:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RSi3p-0004vw-F2 for submit@debbugs.gnu.org; Mon, 21 Nov 2011 23:34:22 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RSi3n-0004vo-OM for 10102@debbugs.gnu.org; Mon, 21 Nov 2011 23:34:20 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RSi2X-0006nu-GL; Mon, 21 Nov 2011 23:33:01 -0500 X-Spook: analyzer Al Jazeera Glock basement diwn HAMASMOIS JUWTF X-Ran: 6btZ$RVQcTlhGbqR;QWnG@2lO`+/gFya.E?AUdR\r?fO@*mO}b)%eE:;?+'UP`J;%f#jT! X-Hue: yellow X-Attribution: GM In-Reply-To: (Lachlan Deck's message of "Tue, 22 Nov 2011 14:59:11 +1100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 21 Nov 2011 23:35:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54151 Archived-At: Lachlan Deck wrote: > In emacs 24 the following 'message' produces the empty string if you > just hit enter at the mini-buffer prompt. In emacs 23, the 'guess' > variable is printed as expected. > > Is this a known bug? > > (let* ((default-directory "~/path/to/project/") > (guess (concat default-directory ".foo")) > (file (read-file-name > "Foo: " > (file-name-directory guess) > guess > nil > (file-name-nondirectory guess) > ))) > > (message file)) Works for me with the current trunk on GNU/Linux. "Emacs 24" covers a multitude of sins - what do you mean by it? (M-x report-emacs-bug gives this information.)