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

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

bug#2585: marked as done (23.0.90; read-file-name with dialog)


From: Emacs bug Tracking System
Subject: bug#2585: marked as done (23.0.90; read-file-name with dialog)
Date: Mon, 09 Mar 2009 13:40:04 +0000

Your message dated Mon, 09 Mar 2009 21:31:41 +0800
with message-id <49B51A3D.7040101@gnu.org>
and subject line Re: bug#2585: 23.0.90; read-file-name with dialog
has caused the Emacs bug report #2585,
regarding 23.0.90; read-file-name with dialog
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 owner@emacsbugs.donarmstrong.com
immediately.)


-- 
2585: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2585
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
--- Begin Message --- Subject: 23.0.90; read-file-name with dialog Date: Fri, 6 Mar 2009 13:41:10 -0500
When read-file-name is called and uses windows dialog to read a file
name, the 'dir' parameter has to be ended with '/'. It it does not,
the last part of the path name is used as the filename while the
default directory is the stripped 'dir' without last part. This does
not happen in Emacs 22. 

In minibuffer, there is comment that says: 

        ;; If DIR contains a file name, split it.

I'm not sure if that is the right thing to do. At least, it breaks the
compatibility with previous Emacs version. 

Is this an intended change?

Thanks. 

--
In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600)
 of 2009-02-22 on T42
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -I../../GnuWin32/include'




--- End Message ---
--- Begin Message --- Subject: Re: bug#2585: 23.0.90; read-file-name with dialog Date: Mon, 09 Mar 2009 21:31:41 +0800 User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
Stefan Monnier wrote:
;; If DIR contains a file name, split it.
(let ((file (file-name-nondirectory dir)))
(when (and default-filename (not (zerop (length file))))
(setq default-filename file)
(setq dir (file-name-directory dir)))

The third line makes more sense to me as:

(when (and (not default-filename) (not (zerop (length file))))
That seems right to me.  Stefan, you were the one who rewrote
read-file-name; could you verify this?

Yes, it looks right,

OK, I've checked that change in.


--- End Message ---

reply via email to

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